GithubHelp home page GithubHelp logo

anki-theme's Introduction

anki-theme

My Anki card theme.

Font used: Hack

Front

<div class="card-display shadow">
<div class="title">Ion</div>
{{Front}}
</div>

CSS styling

(I really need to clean this up sometime)

.card {
 background: #282a36;
}

.title {
 font-size: 15px;
 color: #ffb86c;
 margin-bottom: 10px;
 margin-top: -10px;
 padding: 5px;
 border-radius: 5px;
 background-color: #282a36;
 display: table;  /* https://stackoverflow.com/questions/7611030/css-display-inline-block-does-not-accept-margin-top */
 margin-left: auto;
 margin-right: auto;
}

.shadow {
 box-shadow: 0 3px 10px black;
}

.card-display {
 margin-top: 40px;
 margin-left: auto;
 margin-right: auto;
 padding: 20px;
 border-radius: 10px;
 width: 40%;
 max-width: 60%;
 height: auto;
 font-family: "Hack";
 font-size: 25px;
 text-align: center;
 color: #ff79c6;
 background: #44475a;
}

.card-display .mobile {
 width: 80%;
 max-width: 80%;
}

.front-display {
 border-radius: 10px 10px 0 0;
}

.answer {
 /*background: #6272a4;*/
 margin-top: 0;
 border-radius: 0 0 10px 10px;
 color: #50fa7b;
}

.mid {
width: calc(40% + 40px);
max-width: calc(60% + 40px);
height: 3px;
background: #6272a4;
margin-left: auto;
margin-right: auto;
}

.mid .mobile {
 width: calc(80% + 40px);
 max-width: calc(80% + 40px);
}

Back

<div class="card-display front-display shadow">
<div class="title">Ion</div>
{{Front}}
</div>
<div class="mid shadow"></div>
<div class="card-display answer shadow">
{{Back}}
</div>

anki-theme's People

Contributors

olliecheng avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.