_fancy-radio.scss
1 year ago
_helpers.scss
7 months ago
_modals.scss
1 year ago
_notifications.scss
7 months ago
_preview.scss
7 months ago
_select2.scss
1 year ago
_variables.scss
7 months ago
_helpers.scss
217 lines
| 1 | @use "variables" as *; |
| 2 | //resets |
| 3 | *, |
| 4 | :after, |
| 5 | :before { |
| 6 | border: 0 solid #e5e7eb; |
| 7 | box-sizing: border-box; |
| 8 | } |
| 9 | blockquote, |
| 10 | dd, |
| 11 | dl, |
| 12 | figure, |
| 13 | h1, |
| 14 | h2, |
| 15 | h3, |
| 16 | h4, |
| 17 | h5, |
| 18 | h6, |
| 19 | hr, |
| 20 | p, |
| 21 | pre { |
| 22 | margin: 0; |
| 23 | } |
| 24 | [type="button"]="button""], |
| 25 | [type="reset"]="reset""], |
| 26 | [type="submit"]="submit""], |
| 27 | button { |
| 28 | -webkit-appearance: button; |
| 29 | background-color: transparent; |
| 30 | background-image: none; |
| 31 | } |
| 32 | ul { |
| 33 | margin: 0; |
| 34 | } |
| 35 | img { |
| 36 | vertical-align: middle; |
| 37 | max-width: 100%; |
| 38 | } |
| 39 | svg { |
| 40 | vertical-align: middle; |
| 41 | } |
| 42 | //helpers |
| 43 | .grid { |
| 44 | display: grid; |
| 45 | } |
| 46 | .grid-cols-4 { |
| 47 | grid-template-columns: repeat(4, minmax(0, 1fr)); |
| 48 | } |
| 49 | .grid-cols-2 { |
| 50 | grid-template-columns: repeat(2, minmax(0, 1fr)); |
| 51 | } |
| 52 | .col-span-1 { |
| 53 | grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); |
| 54 | } |
| 55 | .gap-6 { |
| 56 | gap: 1.5rem; |
| 57 | } |
| 58 | .items-start { |
| 59 | align-items: flex-start; |
| 60 | } |
| 61 | .items-center { |
| 62 | align-items: center; |
| 63 | } |
| 64 | .justify-center { |
| 65 | justify-content: center; |
| 66 | } |
| 67 | .justify-between { |
| 68 | justify-content: space-between; |
| 69 | } |
| 70 | .flex-row { |
| 71 | flex-direction: row; |
| 72 | } |
| 73 | .flex-col { |
| 74 | flex-direction: column; |
| 75 | } |
| 76 | .flex { |
| 77 | display: flex; |
| 78 | } |
| 79 | .flex-shrink-0 { |
| 80 | flex-shrink: 0; |
| 81 | } |
| 82 | .gap-2 { |
| 83 | gap: 0.5rem; |
| 84 | } |
| 85 | .mt-2 { |
| 86 | margin-top: 0.5rem; |
| 87 | } |
| 88 | .mt-4 { |
| 89 | margin-top: 1rem; |
| 90 | } |
| 91 | .mt-5 { |
| 92 | margin-top: 1.25rem; |
| 93 | } |
| 94 | .ml-2 { |
| 95 | margin-left: 0.5rem; |
| 96 | } |
| 97 | .mr-2 { |
| 98 | margin-right: 0.5rem; |
| 99 | } |
| 100 | .mb-0 { |
| 101 | margin-bottom: 0 !important; |
| 102 | } |
| 103 | .mb-4 { |
| 104 | margin-bottom: 1rem; |
| 105 | } |
| 106 | .mb-auto { |
| 107 | margin-bottom: auto; |
| 108 | } |
| 109 | .mt-auto { |
| 110 | margin-top: auto; |
| 111 | } |
| 112 | .ml-auto { |
| 113 | margin-left: auto; |
| 114 | } |
| 115 | .relative { |
| 116 | position: relative; |
| 117 | } |
| 118 | .text-center { |
| 119 | text-align: center; |
| 120 | } |
| 121 | .overflow-auto { |
| 122 | overflow: auto; |
| 123 | } |
| 124 | .overflow-hidden { |
| 125 | overflow: hidden; |
| 126 | } |
| 127 | .hidden { |
| 128 | display: none !important; |
| 129 | } |
| 130 | .w-full { |
| 131 | width: 100% !important; |
| 132 | } |
| 133 | .max-h-full { |
| 134 | max-height: 100%; |
| 135 | } |
| 136 | .rounded-full { |
| 137 | border-radius: 50%; |
| 138 | } |
| 139 | a { |
| 140 | text-decoration: inherit; |
| 141 | color: $blue-700; |
| 142 | } |
| 143 | .text-blue { |
| 144 | color: $blue-700; |
| 145 | } |
| 146 | .text-primary { |
| 147 | color: $primary-color; |
| 148 | &:hover { |
| 149 | color: $primary-color; |
| 150 | } |
| 151 | } |
| 152 | .text-secondary { |
| 153 | color: $gray-500; |
| 154 | } |
| 155 | .text-smaller { |
| 156 | font-size: 0.75rem; |
| 157 | } |
| 158 | .text-success { |
| 159 | color: $green-400; |
| 160 | } |
| 161 | .capitalized { |
| 162 | text-transform: capitalize; |
| 163 | } |
| 164 | .bg-purple-100 { |
| 165 | background-color: $purple-100; |
| 166 | } |
| 167 | .bg-success { |
| 168 | background-color: $green-50 !important; |
| 169 | } |
| 170 | .bg-white { |
| 171 | background-color: #fff !important; |
| 172 | } |
| 173 | .bg-green-500 { |
| 174 | |
| 175 | background-color: $green-500 !important; |
| 176 | } |
| 177 | .border-rounded { |
| 178 | border-radius: 50%; |
| 179 | } |
| 180 | .font-semi-bold { |
| 181 | font-weight: 500; |
| 182 | } |
| 183 | [type="checkbox"]="checkbox""]:checked { |
| 184 | background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3E%3C/svg%3E") !important; |
| 185 | background-repeat: no-repeat; |
| 186 | background-size: 0.55em 0.55em; |
| 187 | -webkit-print-color-adjust: exact; |
| 188 | print-color-adjust: exact; |
| 189 | } |
| 190 | .sr-only { |
| 191 | clip: rect(0, 0, 0, 0); |
| 192 | border-width: 0; |
| 193 | height: 1px; |
| 194 | margin: -1px; |
| 195 | overflow: hidden; |
| 196 | padding: 0; |
| 197 | position: absolute; |
| 198 | white-space: nowrap; |
| 199 | width: 1px; |
| 200 | } |
| 201 | .rotate-180 { |
| 202 | transform: rotate(180deg); |
| 203 | } |
| 204 | .no-border { |
| 205 | border: 0 !important; |
| 206 | } |
| 207 | //layout |
| 208 | @media (max-width: 992px) { |
| 209 | .grid-col-1-tablet { |
| 210 | grid-template-columns: repeat(1, minmax(0, 1fr)); |
| 211 | } |
| 212 | } |
| 213 | @media (max-width: 768px) { |
| 214 | .grid-col-1-mobile { |
| 215 | grid-template-columns: repeat(1, minmax(0, 1fr)); |
| 216 | } |
| 217 | } |