Advertisement
benkyogo

Custom Anki CSS Customizable Design

Jul 7th, 2020
12,900
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.99 KB | None | 0 0
  1. /*---------------------------------
  2.  
  3. www.benkyogo.co.uk
  4. Custom Anki CSS Customizable Design
  5.  
  6. Check out the benkyogo store: https://www.etsy.com/uk/shop/Benkyogo for Japanese language learning resources!
  7.  
  8. -----------------------------------*/
  9.  
  10. [[FRONT:]]
  11.  
  12. <div id=TopBox>
  13. <span class=expression>{{Expression}}</span></div>
  14.  
  15.  
  16.  
  17.  
  18.  
  19. [[STYLING:]]
  20.  
  21. /*---------------------------------
  22.  
  23. 【BENKYOGO NOTES:BACKGROUND】
  24. ● For a gradient background, replace the details below by copying and replacing the code found at cssgradient.io (unafilliated website). If you're not using an image background, delete the code below where indicated.
  25. ● For an image background, download and save your background image to the collection.media folder in your Anki files on your PC. Then, replace 'bg.jpg' below with the file name. The collection.media folder is found in: Windows: C:\Users\YOUR_USERNAME\AppData\Roaming\Anki2\YOUR_USERNAME\collection.media,    Mac: ~/Library/Application Support/Anki2 (hidden folder).
  26. ● Do not erase the final '}' below, else your backgrounds will not work!
  27. ● Your gradient must always be linear at 90' degrees.
  28.  
  29. -----------------------------------*/
  30.  
  31. .card {
  32. font-family: calibri;
  33. font-size: 14x;
  34. text-align: left;
  35. margin: 60px 60px 60px 60px;
  36.  
  37. /*-----START GRADIENT BACKGROUND -----*/
  38.  
  39. background: rgb(255,255,255);
  40. background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(228,228,228,1) 100%);
  41.  
  42. /*-----END GRADIENT BACKGROUND -----*/
  43.  
  44.  
  45. /*-----START IMAGE BACKGROUND (IF USING A GRADIENT BACKGROUND, DELETE THIS BUT DO NOT DELETE THE "}" BRACKET BELOW! -----*/
  46.  
  47. background: url('bg.jpg') top left fixed;
  48.  
  49. /*-----END IMAGE BACKGROUND -----*/
  50.  
  51.  }
  52.  
  53.  
  54. /*---------------------------------
  55.  
  56. 【BENKYOGO NOTES:  ENCLOSURE】
  57. ● Change the colour of the left & bottom borders by editing the colours '#DDDDDD' and '#AAAAAA'.
  58. ● Change the background gradient of your boxes by replacing the gradient background using cssgradient.io (unafiliated website)
  59. ● Change the radius of the enclosure from 20px to your desired curvature. (border-radius:20px)
  60. ● Change the thickness of the borders by replacing 6px with any number of pixels (border-left: 6px / border-bottom 6px)
  61.  
  62. -----------------------------------*/
  63.  
  64. #TopBox { padding: 35px 35px 24px 30px; background: rgb(212,20,90);
  65. background: linear-gradient(90deg, rgba(212,20,90,1) 0%, rgba(251,176,56,1) 100%); border-radius:20px; overflow:hidden; border-left: 6px solid #DDDDDD;  border-bottom: 6px solid #AAAAAA }
  66.  
  67. #BottomBox { padding: 35px 35px 24px 30px; background: rgb(85,108,241);
  68. background: linear-gradient(90deg, rgba(85,108,241,1) 0%, rgba(24,205,241,1) 100%); border-radius:20px; overflow:hidden; border-left: 6px solid #DDDDDD;  border-bottom: 6px solid #AAAAAA }
  69.  
  70. /*---------------------------------
  71.  
  72. 【BENKYOGO NOTES:  FONTS】
  73. ● Change the text colour hash codes (e.g. color:#FFFFFF) for each font type - expression, pronunciation and meaning.
  74. ● Change the font sizes (font-size: 36px)
  75. ● Remove the 'font-weight: bold' if you want regular thickness.
  76.  
  77. -----------------------------------*/
  78.  
  79. .expression,.sent { font-family: Helvetica; line-height:40px;  font-weight: bold; font-size: 36px; color:#FFFFFF }
  80.  
  81. .pronunciation { font-family: Helvetica; line-height:30px;  font-weight: bold; font-size: 30px; color:#FFFFFF }
  82.  
  83. .meaning {  background:#FFFFFF; color:#389bf1; font-family: "Helvetica"; font-size: 30px; padding:10px 10px 10px 10px; margin: 0 5px 0 -5px; border-radius:15px; line-height:60px; }
  84.  
  85.  
  86. /*---------------------------------
  87.  
  88. 【BENKYOGO NOTES:  OTHER】
  89. ● This customizable ANKI template is produced by BENKYOGO.CO.UK. Check out the website for hints, tips and tricks to self-study Japanese.
  90.  
  91. -----------------------------------*/
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99. [[BACK:]]
  100.  
  101. <div id=TopBox>
  102. <span class=expression>{{Expression}}</span></div>
  103. <br>
  104. <br>
  105. <div id=BottomBox><span class=pronunciation>{{Pronunciation}}
  106. <hr><span class=meaning>{{Meaning}}</span></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement