Skip to content

Styling for Anki #99

Jul 29, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

sure! here's the Anki CSS behind my cards for

basic
.card {
  font-family: fira code;
  font-size: 20px;
  text-align: center;
  color: #ebdbb2 !important;
  background-color: #282828 !important;
}
#spacer, #answer {
background-image: linear-gradient(to right, #282828, #d65d0e, #282828);
}

#spacer, #answer {
  margin-block-start: 4em;
  margin-block-end: 4em;
  border: none;
  height: 1px;
}

#spacer::after, #answer::after {
  content: 'ᛟ';
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  padding: 0.5rem;
  color: #689d6a;
  background-color: #282828;
}
close deletion
.cloze {
 font-weight: bold;
 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@alcopuro
Comment options

@tallguyjenks
Comment options

Answer selected by tallguyjenks
Comment options

You must be logged in to vote
1 reply
@tallguyjenks
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants