style.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. ---
  2. ---
  3. $breakpoint: 50rem;
  4. $primary: #206bc4;
  5. $border: #eeeeee;
  6. $muted: #aaaaaa;
  7. $dark: #354052;
  8. $light: #fafbfc;
  9. $btn-form-height: 2rem;
  10. $hover: rgba(0, 0, 0, .04);
  11. * {
  12. box-sizing: border-box;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. html {
  17. font-size: 16px;
  18. font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  19. }
  20. body {
  21. background: #fafbfc;
  22. font-size: .9375rem;
  23. color: $dark;
  24. -webkit-font-smoothing: antialiased;
  25. -moz-osx-font-smoothing: grayscale;
  26. @media print {
  27. color: #000;
  28. }
  29. }
  30. a {
  31. color: $primary;
  32. text-decoration: none;
  33. &:hover {
  34. text-decoration: underline;
  35. }
  36. }
  37. .container {
  38. max-width: 60rem;
  39. margin: 0 auto;
  40. padding: 1rem;
  41. @media (max-width: #{$breakpoint}) {
  42. padding: 0;
  43. }
  44. @media print {
  45. padding: 0;
  46. max-width: 100%;
  47. }
  48. }
  49. .row {
  50. display: flex;
  51. flex-direction: column;
  52. @media (min-width: #{$breakpoint}) {
  53. flex-direction: row;
  54. }
  55. }
  56. .col {
  57. flex: 1;
  58. }
  59. .col-aside {
  60. width: 15rem;
  61. margin-top: 2rem;
  62. display: flex;
  63. flex-direction: column;
  64. @media (min-width: #{$breakpoint}) {
  65. margin-top: 0;
  66. margin-left: 2rem;
  67. }
  68. }
  69. .box {
  70. padding: 2rem;
  71. background: #ffff;
  72. box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .1);
  73. page-break-before: always;
  74. margin-bottom: 2rem;
  75. @media (max-width: #{$breakpoint}) {
  76. padding: .5rem;
  77. box-shadow: none;
  78. }
  79. @media print {
  80. padding: 0;
  81. box-shadow: none;
  82. margin-bottom: 0;
  83. }
  84. }
  85. .icon-title {
  86. font-size: 1.25rem;
  87. line-height: 1;
  88. margin: 0 0 3rem;
  89. font-weight: 600;
  90. }
  91. .icon-subtitle {
  92. font-size: 1rem;
  93. line-height: 1;
  94. margin: 0 0 1rem;
  95. font-weight: 600;
  96. }
  97. .category-subtitle {
  98. font-size: .9rem;
  99. line-height: 1;
  100. margin: 1rem 0 .5rem;
  101. font-weight: 600;
  102. }
  103. .icon-preview-wrap {
  104. position: relative;
  105. &:before {
  106. content: '';
  107. padding-top: 100%;
  108. display: block;
  109. }
  110. }
  111. .icon-preview {
  112. position: absolute;
  113. width: 100%;
  114. height: 100%;
  115. top: 0;
  116. left: 0;
  117. right: 0;
  118. bottom: 0;
  119. background: url(bg.svg) no-repeat center/100%;
  120. svg {
  121. width: 100%;
  122. height: 100%;
  123. opacity: .8;
  124. + svg {
  125. stroke-width: .08;
  126. opacity: 1;
  127. stroke: red;
  128. position: absolute;
  129. left: 0;
  130. top: 0;
  131. pointer-events: none;
  132. stroke-dasharray: 0 !important;
  133. * {
  134. stroke-dasharray: 0 !important;
  135. }
  136. }
  137. }
  138. }
  139. .icons-list {
  140. display: table;
  141. margin: -.25rem;
  142. }
  143. .icons-list-borders {
  144. .icons-list-icon {
  145. border-color: $dark;
  146. }
  147. }
  148. .icons-list-squares,
  149. .icons-list-circles {
  150. .icons-list-icon {
  151. background: $dark;
  152. color: $light;
  153. }
  154. }
  155. .icons-list-circles {
  156. .icons-list-icon {
  157. border-radius: 50%;
  158. }
  159. }
  160. .icons-list-icon {
  161. margin: .25rem;
  162. min-width: 2.25rem;
  163. height: 2.25rem;
  164. color: inherit;
  165. border-radius: 3px;
  166. display: inline-flex;
  167. align-items: center;
  168. justify-content: center;
  169. border: 1px solid transparent;
  170. position: relative;
  171. page-break-inside: avoid;
  172. &.new-icon {
  173. &:after {
  174. content: '';
  175. position: absolute;
  176. top: 2px;
  177. right: 2px;
  178. width: 6px;
  179. height: 6px;
  180. background: #cc0000;
  181. border-radius: 50%;
  182. }
  183. }
  184. &.active {
  185. background: #f0f0f0;
  186. }
  187. @at-root a#{&}:hover {
  188. opacity: .75;
  189. }
  190. .icon {
  191. display: block;
  192. width: 1.5rem;
  193. height: 1.5rem;
  194. }
  195. }
  196. .mb {
  197. margin-bottom: 2rem;
  198. }
  199. .mt-auto {
  200. margin-top: auto;
  201. }
  202. /*
  203. Components
  204. */
  205. .btn {
  206. display: inline-flex;
  207. color: #ffffff;
  208. background: $primary;
  209. border: 0;
  210. border-radius: 3px;
  211. font-size: inherit;
  212. line-height: 1;
  213. justify-content: center;
  214. align-items: center;
  215. min-height: $btn-form-height;
  216. min-width: $btn-form-height;
  217. padding: 0 .75rem;
  218. .icon {
  219. width: 1rem;
  220. height: 1rem;
  221. margin: 0 .5rem 0 -.25rem;
  222. }
  223. }
  224. .btn-icon {
  225. padding: 0;
  226. justify-content: center;
  227. .icon {
  228. margin: 0;
  229. }
  230. }
  231. .btn-link {
  232. background: transparent;
  233. color: $primary;
  234. }
  235. .input {
  236. border: 1px solid $border;
  237. border-radius: 3px;
  238. height: $btn-form-height;
  239. display: block;
  240. font-size: inherit;
  241. font-family: inherit;
  242. padding: 0 .5rem;
  243. width: 100%;
  244. &:focus {
  245. outline: 0;
  246. box-shadow: 0 0 0 3px rgba($primary, .1);
  247. border-color: rgba($primary, .4);
  248. }
  249. @at-root textarea#{&} {
  250. min-height: 8rem;
  251. }
  252. }
  253. .icon {
  254. width: 1em;
  255. height: 1em;
  256. vertical-align: -.15em;
  257. }
  258. .input-icon {
  259. position: relative;
  260. .input {
  261. padding-right: 2rem;
  262. }
  263. .icon {
  264. color: $muted;
  265. width: 1.25rem;
  266. height: 1.25rem;
  267. position: absolute;
  268. top: ($btn-form-height - 1.25rem) * .5;
  269. right: ($btn-form-height - 1.25rem) * .5;
  270. stroke-width: 1.75;
  271. }
  272. &.icon-left {
  273. .icon {
  274. left: ($btn-form-height - 1.25rem) * .5;
  275. right: auto;
  276. }
  277. .input {
  278. padding-left: 2rem;
  279. padding-right: 0;
  280. }
  281. }
  282. }
  283. .avatar {
  284. background: rgba($muted, .1);
  285. color: $muted;
  286. display: inline-flex;
  287. width: 2.5rem;
  288. height: 2.5rem;
  289. align-items: center;
  290. justify-content: center;
  291. border-radius: 50%;
  292. vertical-align: bottom;
  293. .icon {
  294. height: 60%;
  295. width: 60%;
  296. }
  297. }
  298. .avatar-sm {
  299. width: 1.5rem;
  300. height: 1.5rem;
  301. }
  302. .tabs {
  303. display: flex;
  304. .tab {
  305. flex: 1;
  306. text-align: center;
  307. border-bottom: 1px solid $border;
  308. padding: .25rem 0;
  309. color: inherit;
  310. text-decoration: none;
  311. cursor: pointer;
  312. &.active {
  313. color: $primary;
  314. border-bottom-color: $primary;
  315. }
  316. .icon {
  317. width: 1rem;
  318. height: 1rem;
  319. }
  320. }
  321. }
  322. .input-range {
  323. width: 100%;
  324. }
  325. .icon-size {
  326. display: inline-block;
  327. svg {
  328. width: 100%;
  329. height: 100%;
  330. }
  331. }
  332. .icon-size-16 { width: 16px; height: 16px }
  333. .icon-size-24 { width: 24px; height: 24px }
  334. .icon-size-32 { width: 32px; height: 32px }
  335. .icon-size-48 { width: 48px; height: 48px }
  336. .icon-size-64 { width: 64px; height: 64px }
  337. .table {
  338. width: 100%;
  339. border-collapse: collapse;
  340. td, th {
  341. padding: .5rem;
  342. text-align: left;
  343. border: 1px solid #eee;
  344. }
  345. .icon {
  346. width: 24px;
  347. height: 24px;
  348. }
  349. }
  350. .td-1 {
  351. width: 1%;
  352. }
  353. $border-color: #e0e0e0;
  354. .toolbar {
  355. display: flex;
  356. flex-wrap: wrap;
  357. }
  358. .buttons {
  359. display: flex;
  360. margin-right: .5rem;
  361. margin-bottom: .5rem;
  362. border: 1px solid $border-color;
  363. border-radius: 3px;
  364. .button + .button {
  365. border-left: 1px solid $border-color;
  366. }
  367. }
  368. .button {
  369. display: inline-flex;
  370. width: 2rem;
  371. height: 2rem;
  372. align-items: center;
  373. justify-content: center;
  374. color: mix($dark, #fff, 75%);
  375. svg {
  376. width: 1.25rem;
  377. height: 1.25rem;
  378. }
  379. }
  380. .text-muted {
  381. color: $muted;
  382. }