style.scss 6.6 KB

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