123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460 |
- ---
- ---
- $breakpoint: 50rem;
- $primary: #206bc4;
- $border: #eeeeee;
- $muted: #aaaaaa;
- $dark: #354052;
- $light: #fafbfc;
- $btn-form-height: 2rem;
- $hover: rgba(0, 0, 0, .04);
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
- html {
- font-size: 16px;
- 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;
- }
- body {
- background: #fafbfc;
- font-size: .9375rem;
- color: $dark;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- @media print {
- color: #000;
- }
- }
- a {
- color: $primary;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
- }
- .container {
- max-width: 60rem;
- margin: 0 auto;
- padding: 1rem;
- @media (max-width: #{$breakpoint}) {
- padding: 0;
- }
- @media print {
- padding: 0;
- max-width: 100%;
- }
- }
- .row {
- display: flex;
- flex-direction: column;
- @media (min-width: #{$breakpoint}) {
- flex-direction: row;
- }
- }
- .col {
- flex: 1;
- }
- .col-aside {
- width: 15rem;
- margin-top: 2rem;
- display: flex;
- flex-direction: column;
- @media (min-width: #{$breakpoint}) {
- margin-top: 0;
- margin-left: 2rem;
- }
- }
- .box {
- padding: 2rem;
- background: #ffff;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .1);
- page-break-before: always;
- margin-bottom: 2rem;
- @media (max-width: #{$breakpoint}) {
- padding: .5rem;
- box-shadow: none;
- }
- @media print {
- padding: 0;
- box-shadow: none;
- margin-bottom: 0;
- }
- }
- .icon-title {
- font-size: 1.25rem;
- line-height: 1;
- margin: 0 0 3rem;
- font-weight: 600;
- }
- .icon-subtitle {
- font-size: 1rem;
- line-height: 1;
- margin: 0 0 1rem;
- font-weight: 600;
- }
- .category-subtitle {
- font-size: .9rem;
- line-height: 1;
- margin: 1rem 0 .5rem;
- font-weight: 600;
- }
- .icon-preview-wrap {
- position: relative;
- &:before {
- content: '';
- padding-top: 100%;
- display: block;
- }
- }
- .icon-preview {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: url(bg.svg) no-repeat center/100%;
- svg {
- width: 100%;
- height: 100%;
- opacity: .8;
- + svg {
- stroke-width: .08;
- opacity: 1;
- stroke: red;
- position: absolute;
- left: 0;
- top: 0;
- pointer-events: none;
- stroke-dasharray: 0 !important;
- * {
- stroke-dasharray: 0 !important;
- }
- }
- }
- }
- .icons-list {
- display: table;
- margin: -.25rem;
- }
- .icons-list-borders {
- .icons-list-icon {
- border-color: $dark;
- }
- }
- .icons-list-squares,
- .icons-list-circles {
- .icons-list-icon {
- background: $dark;
- color: $light;
- }
- }
- .icons-list-circles {
- .icons-list-icon {
- border-radius: 50%;
- }
- }
- .icons-list-icon {
- margin: .25rem;
- min-width: 2.25rem;
- height: 2.25rem;
- color: inherit;
- border-radius: 3px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border: 1px solid transparent;
- position: relative;
- page-break-inside: avoid;
- &.new-icon {
- &:after {
- content: '';
- position: absolute;
- top: 2px;
- right: 2px;
- width: 6px;
- height: 6px;
- background: #cc0000;
- border-radius: 50%;
- }
- }
- &.active {
- background: #f0f0f0;
- }
- @at-root a#{&}:hover {
- opacity: .75;
- }
- .icon {
- display: block;
- width: 1.5rem;
- height: 1.5rem;
- }
- }
- .mb {
- margin-bottom: 2rem;
- }
- .mt-auto {
- margin-top: auto;
- }
- /*
- Components
- */
- .btn {
- display: inline-flex;
- color: #ffffff;
- background: $primary;
- border: 0;
- border-radius: 3px;
- font-size: inherit;
- line-height: 1;
- justify-content: center;
- align-items: center;
- min-height: $btn-form-height;
- min-width: $btn-form-height;
- padding: 0 .75rem;
- .icon {
- width: 1rem;
- height: 1rem;
- margin: 0 .5rem 0 -.25rem;
- }
- }
- .btn-icon {
- padding: 0;
- justify-content: center;
- .icon {
- margin: 0;
- }
- }
- .btn-link {
- background: transparent;
- color: $primary;
- }
- .input {
- border: 1px solid $border;
- border-radius: 3px;
- height: $btn-form-height;
- display: block;
- font-size: inherit;
- font-family: inherit;
- padding: 0 .5rem;
- width: 100%;
- &:focus {
- outline: 0;
- box-shadow: 0 0 0 3px rgba($primary, .1);
- border-color: rgba($primary, .4);
- }
- @at-root textarea#{&} {
- min-height: 8rem;
- }
- }
- .icon {
- width: 1em;
- height: 1em;
- vertical-align: -.15em;
- }
- .input-icon {
- position: relative;
- .input {
- padding-right: 2rem;
- }
- .icon {
- color: $muted;
- width: 1.25rem;
- height: 1.25rem;
- position: absolute;
- top: ($btn-form-height - 1.25rem) * .5;
- right: ($btn-form-height - 1.25rem) * .5;
- stroke-width: 1.75;
- }
- &.icon-left {
- .icon {
- left: ($btn-form-height - 1.25rem) * .5;
- right: auto;
- }
- .input {
- padding-left: 2rem;
- padding-right: 0;
- }
- }
- }
- .avatar {
- background: rgba($muted, .1);
- color: $muted;
- display: inline-flex;
- width: 2.5rem;
- height: 2.5rem;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- vertical-align: bottom;
- .icon {
- height: 60%;
- width: 60%;
- }
- }
- .avatar-sm {
- width: 1.5rem;
- height: 1.5rem;
- }
- .tabs {
- display: flex;
- .tab {
- flex: 1;
- text-align: center;
- border-bottom: 1px solid $border;
- padding: .25rem 0;
- color: inherit;
- text-decoration: none;
- cursor: pointer;
- &.active {
- color: $primary;
- border-bottom-color: $primary;
- }
- .icon {
- width: 1rem;
- height: 1rem;
- }
- }
- }
- .input-range {
- width: 100%;
- }
- .icon-size {
- display: inline-block;
- svg {
- width: 100%;
- height: 100%;
- }
- }
- .icon-size-16 { width: 16px; height: 16px }
- .icon-size-24 { width: 24px; height: 24px }
- .icon-size-32 { width: 32px; height: 32px }
- .icon-size-48 { width: 48px; height: 48px }
- .icon-size-64 { width: 64px; height: 64px }
- .table {
- width: 100%;
- border-collapse: collapse;
- td, th {
- padding: .5rem;
- text-align: left;
- border: 1px solid #eee;
- }
- .icon {
- width: 24px;
- height: 24px;
- }
- }
- .td-1 {
- width: 1%;
- }
- $border-color: #e0e0e0;
- .toolbar {
- display: flex;
- flex-wrap: wrap;
- }
- .buttons {
- display: flex;
- margin-right: .5rem;
- margin-bottom: .5rem;
- border: 1px solid $border-color;
- border-radius: 3px;
- .button + .button {
- border-left: 1px solid $border-color;
- }
- }
- .button {
- display: inline-flex;
- width: 2rem;
- height: 2rem;
- align-items: center;
- justify-content: center;
- color: mix($dark, #fff, 75%);
- svg {
- width: 1.25rem;
- height: 1.25rem;
- }
- }
- .text-muted {
- color: $muted;
- }
|