| 1 |
// Cyborg 4.6.0 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
|
| 5 |
// Variables =================================================================== |
| 6 |
|
| 7 |
$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" !default; |
| 8 |
@import url($web-font-path); |
| 9 |
|
| 10 |
// Functions =================================================================== |
| 11 |
|
| 12 |
@function darken($color, $percent) { |
| 13 |
@return mix($body-bg, $color, $percent); |
| 14 |
} |
| 15 |
@function lighten($color, $percent) { |
| 16 |
@return mix($body-color, $color, $percent); |
| 17 |
} |
| 18 |
|
| 19 |
// Navbar ====================================================================== |
| 20 |
|
| 21 |
.navbar { |
| 22 |
&.bg-primary { |
| 23 |
border: 1px solid body-mix(50%); |
| 24 |
} |
| 25 |
|
| 26 |
&.bg-dark { |
| 27 |
background-color: $body-bg !important; |
| 28 |
border: 1px solid body-mix(50%); |
| 29 |
} |
| 30 |
|
| 31 |
&.bg-light { |
| 32 |
background-color: body-mix(16%) !important; |
| 33 |
} |
| 34 |
|
| 35 |
&.fixed-top { |
| 36 |
border-width: 0 0 1px; |
| 37 |
} |
| 38 |
|
| 39 |
&.fixed-bottom { |
| 40 |
border-width: 1px 0 0; |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
// Buttons ===================================================================== |
| 45 |
|
| 46 |
.btn { |
| 47 |
@each $color, $value in $theme-colors { |
| 48 |
&-#{$color} { |
| 49 |
@if $enable-gradients { |
| 50 |
background: $value linear-gradient(180deg, mix($contrast-bg, $value, 15%), $value) repeat-x; |
| 51 |
} @else { |
| 52 |
background-color: $value; |
| 53 |
} |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
// Tables ====================================================================== |
| 59 |
|
| 60 |
table { |
| 61 |
color: $contrast-bg; |
| 62 |
} |
| 63 |
|
| 64 |
.table { |
| 65 |
&-primary { |
| 66 |
&, |
| 67 |
> th, |
| 68 |
> td { |
| 69 |
background-color: $primary; |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
&-secondary { |
| 74 |
&, |
| 75 |
> th, |
| 76 |
> td { |
| 77 |
background-color: $secondary; |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
&-light { |
| 82 |
&, |
| 83 |
> th, |
| 84 |
> td { |
| 85 |
background-color: $light; |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
&-dark { |
| 90 |
&, |
| 91 |
> th, |
| 92 |
> td { |
| 93 |
background-color: $dark; |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
&-success { |
| 98 |
&, |
| 99 |
> th, |
| 100 |
> td { |
| 101 |
background-color: $success; |
| 102 |
} |
| 103 |
} |
| 104 |
|
| 105 |
&-info { |
| 106 |
&, |
| 107 |
> th, |
| 108 |
> td { |
| 109 |
background-color: $info; |
| 110 |
} |
| 111 |
} |
| 112 |
|
| 113 |
&-danger { |
| 114 |
&, |
| 115 |
> th, |
| 116 |
> td { |
| 117 |
background-color: $danger; |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
&-warning { |
| 122 |
&, |
| 123 |
> th, |
| 124 |
> td { |
| 125 |
background-color: $warning; |
| 126 |
} |
| 127 |
} |
| 128 |
|
| 129 |
&-active { |
| 130 |
&, |
| 131 |
> th, |
| 132 |
> td { |
| 133 |
background-color: $table-active-bg; |
| 134 |
} |
| 135 |
} |
| 136 |
|
| 137 |
&-hover { |
| 138 |
.table-primary:hover { |
| 139 |
&, |
| 140 |
> th, |
| 141 |
> td { |
| 142 |
background-color: darken($primary, 5%); |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
.table-secondary:hover { |
| 147 |
&, |
| 148 |
> th, |
| 149 |
> td { |
| 150 |
background-color: darken($secondary, 5%); |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
.table-light:hover { |
| 155 |
&, |
| 156 |
> th, |
| 157 |
> td { |
| 158 |
background-color: darken($light, 5%); |
| 159 |
} |
| 160 |
} |
| 161 |
|
| 162 |
.table-dark:hover { |
| 163 |
&, |
| 164 |
> th, |
| 165 |
> td { |
| 166 |
background-color: darken($dark, 5%); |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
.table-success:hover { |
| 171 |
&, |
| 172 |
> th, |
| 173 |
> td { |
| 174 |
background-color: darken($success, 5%); |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
.table-info:hover { |
| 179 |
&, |
| 180 |
> th, |
| 181 |
> td { |
| 182 |
background-color: darken($info, 5%); |
| 183 |
} |
| 184 |
} |
| 185 |
|
| 186 |
.table-danger:hover { |
| 187 |
&, |
| 188 |
> th, |
| 189 |
> td { |
| 190 |
background-color: darken($danger, 5%); |
| 191 |
} |
| 192 |
} |
| 193 |
|
| 194 |
.table-warning:hover { |
| 195 |
&, |
| 196 |
> th, |
| 197 |
> td { |
| 198 |
background-color: darken($warning, 5%); |
| 199 |
} |
| 200 |
} |
| 201 |
|
| 202 |
.table-active:hover { |
| 203 |
&, |
| 204 |
> th, |
| 205 |
> td { |
| 206 |
background-color: $table-active-bg; |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
} |
| 211 |
} |
| 212 |
|
| 213 |
// Forms ======================================================================= |
| 214 |
|
| 215 |
legend { |
| 216 |
color: $contrast-bg; |
| 217 |
} |
| 218 |
|
| 219 |
.form-control { |
| 220 |
background-clip: border-box; |
| 221 |
|
| 222 |
&:disabled, |
| 223 |
&[readonly] { |
| 224 |
border-color: transparent; |
| 225 |
} |
| 226 |
} |
| 227 |
|
| 228 |
// Navs ======================================================================== |
| 229 |
|
| 230 |
.nav-tabs, |
| 231 |
.nav-pills { |
| 232 |
.nav-link { |
| 233 |
color: $contrast-bg; |
| 234 |
|
| 235 |
&:hover { |
| 236 |
background-color: body-mix(50%); |
| 237 |
} |
| 238 |
|
| 239 |
&.disabled, |
| 240 |
&.disabled:hover { |
| 241 |
background-color: transparent; |
| 242 |
color: $nav-link-disabled-color; |
| 243 |
} |
| 244 |
|
| 245 |
&.active { |
| 246 |
background-color: $primary; |
| 247 |
} |
| 248 |
} |
| 249 |
} |
| 250 |
|
| 251 |
.breadcrumb { |
| 252 |
a { |
| 253 |
color: $contrast-bg; |
| 254 |
} |
| 255 |
} |
| 256 |
|
| 257 |
.pagination { |
| 258 |
a:hover { |
| 259 |
text-decoration: none; |
| 260 |
} |
| 261 |
} |
| 262 |
|
| 263 |
// Indicators ================================================================== |
| 264 |
|
| 265 |
.alert { |
| 266 |
border: none; |
| 267 |
color: $contrast-bg; |
| 268 |
|
| 269 |
a, |
| 270 |
.alert-link { |
| 271 |
color: $contrast-bg; |
| 272 |
text-decoration: underline; |
| 273 |
} |
| 274 |
|
| 275 |
@each $color, $value in $theme-colors { |
| 276 |
&-#{$color} { |
| 277 |
@if $enable-gradients { |
| 278 |
background: $value linear-gradient(180deg, mix($contrast-bg, $value, 15%), $value) repeat-x; |
| 279 |
} @else { |
| 280 |
background-color: $value; |
| 281 |
} |
| 282 |
} |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
.badge { |
| 287 |
&-warning { |
| 288 |
color: $contrast-bg; |
| 289 |
} |
| 290 |
} |
| 291 |
|
| 292 |
.close { |
| 293 |
opacity: .6; |
| 294 |
|
| 295 |
&:hover { |
| 296 |
opacity: 1; |
| 297 |
} |
| 298 |
} |
| 299 |
|
| 300 |
// Containers ================================================================== |
| 301 |
|
| 302 |
.list-group-item { |
| 303 |
&:hover { |
| 304 |
background-color: body-mix(50%); |
| 305 |
color: $contrast-bg; |
| 306 |
} |
| 307 |
|
| 308 |
&-action { |
| 309 |
color: body-mix(16%); |
| 310 |
|
| 311 |
.list-group-item-heading { |
| 312 |
color: body-mix(16%); |
| 313 |
} |
| 314 |
} |
| 315 |
|
| 316 |
&:hover .list-group-item-heading { |
| 317 |
color: $contrast-bg; |
| 318 |
} |
| 319 |
} |
| 320 |
|
| 321 |
.card, |
| 322 |
.list-group-item { |
| 323 |
h1, |
| 324 |
h2, |
| 325 |
h3, |
| 326 |
h4, |
| 327 |
h5, |
| 328 |
h6 { |
| 329 |
color: inherit; |
| 330 |
} |
| 331 |
} |
| 332 |
|
| 333 |
.popover { |
| 334 |
&-title { |
| 335 |
border-bottom: none; |
| 336 |
} |
| 337 |
} |