| 1 |
// Lumen 5.3.1 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
|
| 5 |
// Variables |
| 6 |
|
| 7 |
$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" !default; |
| 8 |
@if $web-font-path { |
| 9 |
@import url($web-font-path); |
| 10 |
} |
| 11 |
|
| 12 |
// Mixins |
| 13 |
|
| 14 |
@mixin shadow($width: 4px){ |
| 15 |
border-style: solid; |
| 16 |
border-width: 0 1px $width 1px; |
| 17 |
} |
| 18 |
|
| 19 |
// Navbar |
| 20 |
|
| 21 |
.navbar { |
| 22 |
@include shadow(); |
| 23 |
|
| 24 |
@each $color, $value in $theme-colors { |
| 25 |
&.bg-#{$color} { |
| 26 |
border-color: shade-color($value, 10%); |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
&.bg-body-secondary, |
| 31 |
&.bg-body-tertiary { |
| 32 |
border-color: rgba(0, 0, 0, .1); |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
// Buttons |
| 37 |
|
| 38 |
.btn { |
| 39 |
@include shadow(); |
| 40 |
text-transform: uppercase; |
| 41 |
|
| 42 |
&:not(.disabled):hover { |
| 43 |
margin-top: 1px; |
| 44 |
border-bottom-width: 3px; |
| 45 |
} |
| 46 |
|
| 47 |
&:not(.disabled):active { |
| 48 |
margin-top: 2px; |
| 49 |
border-bottom-width: 2px; |
| 50 |
@include box-shadow(none); |
| 51 |
} |
| 52 |
|
| 53 |
@each $color, $value in $theme-colors { |
| 54 |
&-#{$color} { |
| 55 |
&:hover, |
| 56 |
&:active, |
| 57 |
&:focus { |
| 58 |
background-color: $value; |
| 59 |
} |
| 60 |
|
| 61 |
&, |
| 62 |
&:not(.disabled):hover, |
| 63 |
&:not(.disabled):active, |
| 64 |
&:focus { |
| 65 |
border-color: shade-color($value, 10%); |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
.btn-outline-secondary { |
| 72 |
color: var(--bs-tertiary-color); |
| 73 |
} |
| 74 |
|
| 75 |
[class*="btn-outline"] { |
| 76 |
border-top-width: 1px; |
| 77 |
} |
| 78 |
|
| 79 |
.btn-group-vertical { |
| 80 |
.btn + .btn { |
| 81 |
&:hover { |
| 82 |
margin-top: -1px; |
| 83 |
border-top-width: 1px; |
| 84 |
} |
| 85 |
|
| 86 |
&:active { |
| 87 |
margin-top: -1px; |
| 88 |
border-top-width: 2px; |
| 89 |
} |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
// Typography |
| 94 |
|
| 95 |
.text-secondary { |
| 96 |
color: $gray-700 !important; |
| 97 |
} |
| 98 |
|
| 99 |
.blockquote-footer { |
| 100 |
color: $gray-600; |
| 101 |
} |
| 102 |
|
| 103 |
// Forms |
| 104 |
|
| 105 |
.form-control { |
| 106 |
box-shadow: inset 0 2px 0 rgba(0, 0, 0, .075); |
| 107 |
} |
| 108 |
|
| 109 |
// Navs |
| 110 |
|
| 111 |
.nav { |
| 112 |
.open > a, |
| 113 |
.open > a:hover, |
| 114 |
.open > a:focus { |
| 115 |
border-color: transparent; |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
.nav-tabs { |
| 120 |
.nav-link { |
| 121 |
color: var(--#{$prefix}body-color); |
| 122 |
|
| 123 |
&, |
| 124 |
&.disabled, |
| 125 |
&.disabled:hover, |
| 126 |
&.disabled:focus { |
| 127 |
margin-top: 6px; |
| 128 |
border-color: $nav-tabs-border-color; |
| 129 |
transition: padding-bottom .2s ease-in-out, margin-top .2s ease-in-out, border-bottom .2s ease-in-out; |
| 130 |
} |
| 131 |
|
| 132 |
&:not(.disabled):hover, |
| 133 |
&:not(.disabled):focus, |
| 134 |
&.active { |
| 135 |
padding-bottom: add(.5rem, 6px); |
| 136 |
margin-top: 0; |
| 137 |
color: var(--#{$prefix}body-color); |
| 138 |
border-bottom-color: transparent; |
| 139 |
} |
| 140 |
} |
| 141 |
|
| 142 |
&.nav-justified > li { |
| 143 |
vertical-align: bottom; |
| 144 |
} |
| 145 |
} |
| 146 |
|
| 147 |
.dropdown-menu { |
| 148 |
margin-top: 0; |
| 149 |
@include shadow(); |
| 150 |
border-top-width: 1px; |
| 151 |
@include box-shadow(none); |
| 152 |
} |
| 153 |
|
| 154 |
.breadcrumb { |
| 155 |
border-color: $pagination-border-color; |
| 156 |
@include shadow(); |
| 157 |
} |
| 158 |
|
| 159 |
.pagination { |
| 160 |
> li > a, |
| 161 |
> li > span { |
| 162 |
position: relative; |
| 163 |
top: 0; |
| 164 |
font-weight: 700; |
| 165 |
color: $pagination-color; |
| 166 |
text-transform: uppercase; |
| 167 |
@include shadow(); |
| 168 |
|
| 169 |
&:hover, |
| 170 |
&:focus { |
| 171 |
top: 1px; |
| 172 |
text-decoration: none; |
| 173 |
border-bottom-width: 3px; |
| 174 |
} |
| 175 |
|
| 176 |
&:active { |
| 177 |
top: 2px; |
| 178 |
border-bottom-width: 2px; |
| 179 |
} |
| 180 |
} |
| 181 |
|
| 182 |
> .disabled > a, |
| 183 |
> .disabled > span { |
| 184 |
&:hover { |
| 185 |
top: 0; |
| 186 |
@include shadow(); |
| 187 |
} |
| 188 |
|
| 189 |
&:active { |
| 190 |
top: 0; |
| 191 |
@include shadow(); |
| 192 |
} |
| 193 |
} |
| 194 |
} |
| 195 |
|
| 196 |
.pager { |
| 197 |
> li > a, |
| 198 |
> li > span, |
| 199 |
> .disabled > a, |
| 200 |
> .disabled > span { |
| 201 |
&, |
| 202 |
&:hover, |
| 203 |
&:active { |
| 204 |
border-right-width: 2px; |
| 205 |
border-left-width: 2px; |
| 206 |
} |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
// Indicators |
| 211 |
|
| 212 |
.btn-close { |
| 213 |
text-decoration: none; |
| 214 |
opacity: .4; |
| 215 |
|
| 216 |
&:hover, |
| 217 |
&:focus { |
| 218 |
opacity: 1; |
| 219 |
} |
| 220 |
} |
| 221 |
|
| 222 |
.alert { |
| 223 |
color: $white; |
| 224 |
@include shadow(); |
| 225 |
|
| 226 |
&-primary { |
| 227 |
background-color: $primary; |
| 228 |
border-color: shade-color($primary, 10%); |
| 229 |
} |
| 230 |
|
| 231 |
&-secondary { |
| 232 |
background-color: $secondary; |
| 233 |
border-color: shade-color($secondary, 10%); |
| 234 |
} |
| 235 |
|
| 236 |
&-success { |
| 237 |
background-color: $success; |
| 238 |
border-color: shade-color($success, 10%); |
| 239 |
} |
| 240 |
|
| 241 |
&-info { |
| 242 |
background-color: $info; |
| 243 |
border-color: shade-color($info, 10%); |
| 244 |
} |
| 245 |
|
| 246 |
&-danger { |
| 247 |
background-color: $danger; |
| 248 |
border-color: shade-color($danger, 10%); |
| 249 |
} |
| 250 |
|
| 251 |
&-warning { |
| 252 |
background-color: $warning; |
| 253 |
border-color: shade-color($warning, 10%); |
| 254 |
} |
| 255 |
|
| 256 |
&-dark { |
| 257 |
background-color: $dark; |
| 258 |
border-color: shade-color($dark, 10%); |
| 259 |
} |
| 260 |
|
| 261 |
&-light { |
| 262 |
background-color: $light; |
| 263 |
border-color: shade-color($light, 10%); |
| 264 |
} |
| 265 |
|
| 266 |
.alert-link { |
| 267 |
font-weight: 400; |
| 268 |
color: $white; |
| 269 |
text-decoration: underline; |
| 270 |
} |
| 271 |
|
| 272 |
&-secondary, |
| 273 |
&-light { |
| 274 |
&, |
| 275 |
a, |
| 276 |
.alert-link { |
| 277 |
color: $body-color; |
| 278 |
} |
| 279 |
} |
| 280 |
} |
| 281 |
|
| 282 |
.badge { |
| 283 |
&.bg-secondary, |
| 284 |
&.bg-light { |
| 285 |
color: $dark; |
| 286 |
} |
| 287 |
} |
| 288 |
|
| 289 |
// Containers |
| 290 |
|
| 291 |
a.list-group-item { |
| 292 |
&-success { |
| 293 |
&.active { |
| 294 |
background-color: $success; |
| 295 |
} |
| 296 |
|
| 297 |
&.active:hover, |
| 298 |
&.active:focus { |
| 299 |
background-color: shade-color($success, 10%); |
| 300 |
} |
| 301 |
} |
| 302 |
|
| 303 |
&-warning { |
| 304 |
&.active { |
| 305 |
background-color: $warning; |
| 306 |
} |
| 307 |
|
| 308 |
&.active:hover, |
| 309 |
&.active:focus { |
| 310 |
background-color: shade-color($warning, 10%); |
| 311 |
} |
| 312 |
} |
| 313 |
|
| 314 |
&-danger { |
| 315 |
&.active { |
| 316 |
background-color: $danger; |
| 317 |
} |
| 318 |
|
| 319 |
&.active:hover, |
| 320 |
&.active:focus { |
| 321 |
background-color: shade-color($danger, 10%); |
| 322 |
} |
| 323 |
} |
| 324 |
} |
| 325 |
|
| 326 |
.modal, |
| 327 |
.toast, |
| 328 |
.offcanvas { |
| 329 |
.btn-close { |
| 330 |
background-image: escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$black}'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>")); |
| 331 |
} |
| 332 |
} |