styles.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /* hide the folder note file node */
  2. div.is-folder-note {
  3. display: none;
  4. }
  5. /* indicate the folder has note */
  6. div.has-folder-note {
  7. color: var(--text-nav-selected);
  8. }
  9. /*---------------------------------------------
  10. Cute card view
  11. -----------------------------------------------*/
  12. .cute-card-band {
  13. width: 100%;
  14. max-width: 900px;
  15. margin: 0 auto;
  16. margin-top: 15px;
  17. margin-bottom: 5px;
  18. display: grid;
  19. grid-template-columns: 1fr;
  20. grid-template-rows: auto;
  21. grid-gap: 20px;
  22. }
  23. @media (min-width: 30em) {
  24. .cute-card-band {
  25. grid-template-columns: 1fr 1fr;
  26. }
  27. }
  28. @media (min-width: 60em) {
  29. .cute-card-band {
  30. grid-template-columns: repeat(3, 1fr);
  31. }
  32. }
  33. .cute-card-view {
  34. background: var(--background-accent);
  35. text-decoration: none !important;
  36. color: var(--text-normal);
  37. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  38. display: flex;
  39. flex-direction: column;
  40. min-height: 100%;
  41. position: relative;
  42. top: 0;
  43. transition: all 0.1s ease-in;
  44. border-radius: 10px;
  45. }
  46. .cute-card-view:hover {
  47. top: -2px;
  48. box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  49. }
  50. .cute-card-view article {
  51. padding: 15px;
  52. flex: 1;
  53. display: flex;
  54. flex-direction: column;
  55. justify-content: space-between;
  56. }
  57. .cute-card-view h1 {
  58. font-size: 1.2rem;
  59. margin: 0;
  60. color: var(--text-accent);
  61. }
  62. .cute-card-view a {
  63. text-decoration: none !important;
  64. }
  65. .cute-card-view p {
  66. flex: 1;
  67. line-height: 1.0;
  68. }
  69. .cute-card-view span {
  70. font-size: 0.8rem;
  71. font-weight: bold;
  72. color: var(--text-faint);
  73. letter-spacing: 0.05em;
  74. }
  75. .cute-card-view .thumb {
  76. padding-bottom: 60%;
  77. background-size: cover;
  78. background-position: center center;
  79. border-radius: 10px 10px 0px 0px;
  80. }
  81. .cute-card-view .thumb-color {
  82. padding-bottom: 10%;
  83. background-size: cover;
  84. background-position: center center;
  85. border-radius: 10px 10px 0px 0px;
  86. text-transform: uppercase;
  87. font-size: 1.2rem;
  88. font-weight: bold;
  89. text-align: center;
  90. color: #FFFFFF;
  91. padding: 10px;
  92. }
  93. .cute-card-view .thumb-color-folder {
  94. background-color: slateblue;
  95. }
  96. .cute-card-view .thumb-color-note {
  97. background-color: salmon;
  98. }
  99. /*---------------------------------------------
  100. strip card view
  101. -----------------------------------------------*/
  102. .strip-card-band {
  103. width: 100%;
  104. }
  105. .strip-card-view {
  106. width: 100%;
  107. max-width: 100%;
  108. margin-top: 1.0rem;
  109. margin-bottom: 1.0rem;
  110. display: -webkit-box;
  111. display: -webkit-flex;
  112. display: -ms-flexbox;
  113. display: flex;
  114. -webkit-box-orient: horizontal;
  115. -webkit-box-direction: normal;
  116. -webkit-flex-direction: row;
  117. -ms-flex-direction: row;
  118. flex-direction: row;
  119. -webkit-box-align: stretch;
  120. -webkit-align-items: stretch;
  121. -ms-flex-align: stretch;
  122. align-items: stretch;
  123. min-height: 8rem;
  124. -webkit-border-radius: 10px;
  125. border-radius: 10px;
  126. overflow: hidden;
  127. -webkit-transition: all .3s ease;
  128. -o-transition: all .3s ease;
  129. transition: all .3s ease;
  130. -webkit-box-shadow: 0 1px 1px 0 rgba(31, 35, 46, 0.15);
  131. box-shadow: 0 1px 1px 0 rgba(31, 35, 46, 0.15);
  132. /* add by xpgo */
  133. background: var(--background-accent);
  134. text-decoration: none !important;
  135. color: var(--text-normal);
  136. }
  137. .strip-card-view:hover {
  138. -webkit-transform: translate(0px, -2px);
  139. -ms-transform: translate(0px, -2px);
  140. transform: translate(0px, -2px);
  141. -webkit-box-shadow: 0 15px 45px -10px rgba(10, 16, 34, 0.2);
  142. box-shadow: 0 15px 45px -10px rgba(10, 16, 34, 0.2);
  143. }
  144. .strip-card-view .thumb {
  145. width: 20%;
  146. max-width: 100%;
  147. min-height: 9rem;
  148. -webkit-background-size: cover;
  149. background-size: cover;
  150. background-position: 50% 50%;
  151. }
  152. .strip-card-view .thumb-color {
  153. width: 20%;
  154. max-width: 100%;
  155. min-height: 9rem;
  156. -webkit-background-size: cover;
  157. background-size: cover;
  158. background-position: center center;
  159. /* add by xpgo */
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. padding: 10px;
  164. text-transform: uppercase;
  165. font-size: 1.2rem;
  166. font-weight: bold;
  167. text-align: center;
  168. color: #FFFFFF;
  169. }
  170. .strip-card-view .thumb-color-folder {
  171. background-color: slateblue;
  172. }
  173. .strip-card-view .thumb-color-note {
  174. background-color: salmon;
  175. }
  176. .strip-card-view article {
  177. padding: 1rem;
  178. width: 80%;
  179. }
  180. .strip-card-view h1 {
  181. font-size: 1.5rem;
  182. margin: 0 0 10px;
  183. color: var(--text-accent);
  184. }
  185. .strip-card-view a {
  186. text-decoration: none !important;
  187. }
  188. .strip-card-view p {
  189. margin-top: 0;
  190. flex: 1;
  191. line-height: 1.0;
  192. }
  193. .strip-card-view span {
  194. font-size: 0.8rem;
  195. font-weight: bold;
  196. color: var(--text-faint);
  197. letter-spacing: 0.05em;
  198. }