| 1 |
// Paper 3.4.1 |
| 2 |
// Bootswatch |
| 3 |
// ----------------------------------------------------- |
| 4 |
|
| 5 |
$web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" !default; |
| 6 |
@import url($web-font-path); |
| 7 |
|
| 8 |
// Navbar ===================================================================== |
| 9 |
|
| 10 |
.navbar { |
| 11 |
border: none; |
| 12 |
@include box-shadow(0 1px 2px rgba(0,0,0,.3)); |
| 13 |
|
| 14 |
&-brand { |
| 15 |
font-size: 24px; |
| 16 |
} |
| 17 |
|
| 18 |
&-inverse { |
| 19 |
.navbar-form { |
| 20 |
|
| 21 |
input[type=text], |
| 22 |
input[type=password] { |
| 23 |
color: #fff; |
| 24 |
@include box-shadow(inset 0 -1px 0 $navbar-inverse-link-color); |
| 25 |
@include placeholder($navbar-inverse-link-color); |
| 26 |
|
| 27 |
&:focus { |
| 28 |
@include box-shadow(inset 0 -2px 0 #fff); |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
// Buttons ==================================================================== |
| 36 |
|
| 37 |
@mixin btn($class,$bg){ |
| 38 |
.btn-#{$class} { |
| 39 |
background-size: 200% 200%; |
| 40 |
background-position: 50%; |
| 41 |
|
| 42 |
&:focus { |
| 43 |
background-color: $bg; |
| 44 |
} |
| 45 |
|
| 46 |
&:hover, |
| 47 |
&:active:hover { |
| 48 |
background-color: darken($bg, 6%); |
| 49 |
} |
| 50 |
|
| 51 |
&:active { |
| 52 |
background-color: darken($bg, 12%); |
| 53 |
@include gradient-radial(darken($bg, 12%) 10%, $bg 11%); |
| 54 |
background-size: 1000% 1000%; |
| 55 |
@include box-shadow(2px 2px 4px rgba(0,0,0,.4)); |
| 56 |
} |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
@include btn(default,$btn-default-bg); |
| 61 |
@include btn(primary,$btn-primary-bg); |
| 62 |
@include btn(success,$btn-success-bg); |
| 63 |
@include btn(info,$btn-info-bg); |
| 64 |
@include btn(warning,$btn-warning-bg); |
| 65 |
@include btn(danger,$btn-danger-bg); |
| 66 |
@include btn(link,#fff); |
| 67 |
|
| 68 |
.btn { |
| 69 |
text-transform: uppercase; |
| 70 |
border: none; |
| 71 |
@include box-shadow(1px 1px 4px rgba(0,0,0,.4)); |
| 72 |
@include transition(all 0.4s); |
| 73 |
|
| 74 |
&-link { |
| 75 |
border-radius: $btn-border-radius-base; |
| 76 |
@include box-shadow(none); |
| 77 |
color: $btn-default-color; |
| 78 |
|
| 79 |
&:hover, |
| 80 |
&:focus { |
| 81 |
@include box-shadow(none); |
| 82 |
color: $btn-default-color; |
| 83 |
text-decoration: none; |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
&-default { |
| 88 |
|
| 89 |
&.disabled { |
| 90 |
background-color: rgba(0, 0, 0, 0.1); |
| 91 |
color: rgba(0, 0, 0, 0.4); |
| 92 |
opacity: 1; |
| 93 |
} |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
.btn-group { |
| 98 |
.btn + .btn, |
| 99 |
.btn + .btn-group, |
| 100 |
.btn-group + .btn, |
| 101 |
.btn-group + .btn-group { |
| 102 |
margin-left: 0; |
| 103 |
} |
| 104 |
|
| 105 |
&-vertical { |
| 106 |
> .btn + .btn, |
| 107 |
> .btn + .btn-group, |
| 108 |
> .btn-group + .btn, |
| 109 |
> .btn-group + .btn-group { |
| 110 |
margin-top: 0; |
| 111 |
} |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
// Typography ================================================================= |
| 116 |
|
| 117 |
body { |
| 118 |
-webkit-font-smoothing: antialiased; |
| 119 |
letter-spacing: .1px; |
| 120 |
} |
| 121 |
|
| 122 |
p { |
| 123 |
margin: 0 0 1em; |
| 124 |
} |
| 125 |
|
| 126 |
input, |
| 127 |
button { |
| 128 |
-webkit-font-smoothing: antialiased; |
| 129 |
letter-spacing: .1px; |
| 130 |
} |
| 131 |
|
| 132 |
a { |
| 133 |
@include transition(all 0.2s); |
| 134 |
} |
| 135 |
|
| 136 |
// Tables ===================================================================== |
| 137 |
|
| 138 |
.table-hover { |
| 139 |
> tbody > tr, |
| 140 |
> tbody > tr > th, |
| 141 |
> tbody > tr > td { |
| 142 |
@include transition(all 0.2s); |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
// Forms ====================================================================== |
| 147 |
|
| 148 |
label { |
| 149 |
font-weight: normal; |
| 150 |
} |
| 151 |
|
| 152 |
textarea, |
| 153 |
textarea.form-control, |
| 154 |
input.form-control, |
| 155 |
input[type=text], |
| 156 |
input[type=password], |
| 157 |
input[type=email], |
| 158 |
input[type=number], |
| 159 |
[type=text].form-control, |
| 160 |
[type=password].form-control, |
| 161 |
[type=email].form-control, |
| 162 |
[type=tel].form-control, |
| 163 |
[contenteditable].form-control { |
| 164 |
padding: 0; |
| 165 |
border: none; |
| 166 |
border-radius: 0; |
| 167 |
-webkit-appearance: none; |
| 168 |
@include box-shadow(inset 0 -1px 0 #ddd); |
| 169 |
font-size: 16px; |
| 170 |
|
| 171 |
&:focus { |
| 172 |
@include box-shadow(inset 0 -2px 0 $brand-primary); |
| 173 |
} |
| 174 |
|
| 175 |
&[disabled], |
| 176 |
&[readonly] { |
| 177 |
@include box-shadow(none); |
| 178 |
border-bottom: 1px dotted #ddd; |
| 179 |
} |
| 180 |
|
| 181 |
&.input { |
| 182 |
&-sm { |
| 183 |
font-size: $font-size-small; |
| 184 |
} |
| 185 |
|
| 186 |
&-lg { |
| 187 |
font-size: $font-size-large; |
| 188 |
} |
| 189 |
} |
| 190 |
} |
| 191 |
|
| 192 |
select, |
| 193 |
select.form-control { |
| 194 |
border: 0; |
| 195 |
border-radius: 0; |
| 196 |
-webkit-appearance: none; |
| 197 |
-moz-appearance: none; |
| 198 |
appearance: none; |
| 199 |
-webkit-appearance: none; |
| 200 |
-moz-appearance: none; |
| 201 |
-ms-appearance: none; |
| 202 |
-o-appearance: none; |
| 203 |
padding-left: 0; |
| 204 |
padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed |
| 205 |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=); |
| 206 |
background-size: 13px; |
| 207 |
background-repeat: no-repeat; |
| 208 |
background-position: right center; |
| 209 |
@include box-shadow(inset 0 -1px 0 #ddd); |
| 210 |
font-size: 16px; |
| 211 |
line-height: 1.5; |
| 212 |
|
| 213 |
&::-ms-expand { |
| 214 |
display: none; |
| 215 |
} |
| 216 |
|
| 217 |
&.input { |
| 218 |
&-sm { |
| 219 |
font-size: $font-size-small; |
| 220 |
} |
| 221 |
|
| 222 |
&-lg { |
| 223 |
font-size: $font-size-large; |
| 224 |
} |
| 225 |
} |
| 226 |
|
| 227 |
&:focus { |
| 228 |
@include box-shadow(inset 0 -2px 0 $brand-primary); |
| 229 |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=); |
| 230 |
} |
| 231 |
|
| 232 |
&[multiple] { |
| 233 |
background: none; |
| 234 |
} |
| 235 |
} |
| 236 |
|
| 237 |
.radio, |
| 238 |
.radio-inline, |
| 239 |
.checkbox, |
| 240 |
.checkbox-inline { |
| 241 |
label { |
| 242 |
padding-left: 25px; |
| 243 |
} |
| 244 |
|
| 245 |
input[type="radio"], |
| 246 |
input[type="checkbox"] { |
| 247 |
margin-left: -25px; |
| 248 |
} |
| 249 |
} |
| 250 |
|
| 251 |
input[type="radio"], |
| 252 |
.radio input[type="radio"], |
| 253 |
.radio-inline input[type="radio"] { |
| 254 |
position: relative; |
| 255 |
margin-top: 6px; |
| 256 |
margin-right: 4px; |
| 257 |
vertical-align: top; |
| 258 |
border: none; |
| 259 |
background-color: transparent; |
| 260 |
-webkit-appearance: none; |
| 261 |
appearance: none; |
| 262 |
-webkit-appearance: none; |
| 263 |
-moz-appearance: none; |
| 264 |
-ms-appearance: none; |
| 265 |
-o-appearance: none; |
| 266 |
cursor: pointer; |
| 267 |
|
| 268 |
&:focus { |
| 269 |
outline: none; |
| 270 |
} |
| 271 |
|
| 272 |
&:before, |
| 273 |
&:after { |
| 274 |
content: ""; |
| 275 |
display: block; |
| 276 |
width: 18px; |
| 277 |
height: 18px; |
| 278 |
border-radius: 50%; |
| 279 |
@include transition(240ms); |
| 280 |
} |
| 281 |
|
| 282 |
&:before { |
| 283 |
position: absolute; |
| 284 |
left: 0; |
| 285 |
top: -3px; |
| 286 |
background-color: $brand-primary; |
| 287 |
@include scale(0); |
| 288 |
} |
| 289 |
|
| 290 |
&:after { |
| 291 |
position: relative; |
| 292 |
top: -3px; |
| 293 |
border: 2px solid $gray; |
| 294 |
} |
| 295 |
|
| 296 |
&:checked:before { |
| 297 |
@include scale(0.5); |
| 298 |
} |
| 299 |
|
| 300 |
&:disabled:checked:before { |
| 301 |
background-color: $gray-light; |
| 302 |
} |
| 303 |
|
| 304 |
&:checked:after { |
| 305 |
border-color: $brand-primary; |
| 306 |
} |
| 307 |
|
| 308 |
&:disabled:after, |
| 309 |
&:disabled:checked:after { |
| 310 |
border-color: $gray-light; |
| 311 |
} |
| 312 |
} |
| 313 |
|
| 314 |
input[type="checkbox"], |
| 315 |
.checkbox input[type="checkbox"], |
| 316 |
.checkbox-inline input[type="checkbox"] { |
| 317 |
position: relative; |
| 318 |
border: none; |
| 319 |
margin-bottom: -4px; |
| 320 |
-webkit-appearance: none; |
| 321 |
appearance: none; |
| 322 |
-webkit-appearance: none; |
| 323 |
-moz-appearance: none; |
| 324 |
-ms-appearance: none; |
| 325 |
-o-appearance: none; |
| 326 |
cursor: pointer; |
| 327 |
|
| 328 |
&:focus { |
| 329 |
outline: none; |
| 330 |
} |
| 331 |
|
| 332 |
&:focus:after { |
| 333 |
border-color: $brand-primary; |
| 334 |
} |
| 335 |
|
| 336 |
&:after { |
| 337 |
content: ""; |
| 338 |
display: block; |
| 339 |
width: 18px; |
| 340 |
height: 18px; |
| 341 |
margin-top: -2px; |
| 342 |
margin-right: 5px; |
| 343 |
border: 2px solid $gray; |
| 344 |
border-radius: 2px; |
| 345 |
@include transition(240ms); |
| 346 |
} |
| 347 |
|
| 348 |
&:checked:before { |
| 349 |
content: ""; |
| 350 |
position: absolute; |
| 351 |
top: 0; |
| 352 |
left: 6px; |
| 353 |
display: table; |
| 354 |
width: 6px; |
| 355 |
height: 12px; |
| 356 |
border: 2px solid #fff; |
| 357 |
border-top-width: 0; |
| 358 |
border-left-width: 0; |
| 359 |
@include rotate(45deg); |
| 360 |
} |
| 361 |
|
| 362 |
&:checked:after { |
| 363 |
background-color: $brand-primary; |
| 364 |
border-color: $brand-primary; |
| 365 |
} |
| 366 |
|
| 367 |
&:disabled:after { |
| 368 |
border-color: $gray-light; |
| 369 |
} |
| 370 |
|
| 371 |
&:disabled:checked:after { |
| 372 |
background-color: $gray-light; |
| 373 |
border-color: transparent; |
| 374 |
} |
| 375 |
} |
| 376 |
|
| 377 |
.has-warning { |
| 378 |
input:not([type=checkbox]), |
| 379 |
.form-control, |
| 380 |
input.form-control[readonly], |
| 381 |
input[type=text][readonly], |
| 382 |
[type=text].form-control[readonly], |
| 383 |
input:not([type=checkbox]):focus, |
| 384 |
.form-control:focus { |
| 385 |
border-bottom: none; |
| 386 |
@include box-shadow(inset 0 -2px 0 $brand-warning); |
| 387 |
} |
| 388 |
} |
| 389 |
|
| 390 |
.has-error { |
| 391 |
input:not([type=checkbox]), |
| 392 |
.form-control, |
| 393 |
input.form-control[readonly], |
| 394 |
input[type=text][readonly], |
| 395 |
[type=text].form-control[readonly], |
| 396 |
input:not([type=checkbox]):focus, |
| 397 |
.form-control:focus { |
| 398 |
border-bottom: none; |
| 399 |
@include box-shadow(inset 0 -2px 0 $brand-danger); |
| 400 |
} |
| 401 |
} |
| 402 |
|
| 403 |
.has-success { |
| 404 |
input:not([type=checkbox]), |
| 405 |
.form-control, |
| 406 |
input.form-control[readonly], |
| 407 |
input[type=text][readonly], |
| 408 |
[type=text].form-control[readonly], |
| 409 |
input:not([type=checkbox]):focus, |
| 410 |
.form-control:focus { |
| 411 |
border-bottom: none; |
| 412 |
@include box-shadow(inset 0 -2px 0 $brand-success); |
| 413 |
} |
| 414 |
} |
| 415 |
|
| 416 |
// Remove the Bootstrap feedback styles for input addons |
| 417 |
.input-group-addon { |
| 418 |
.has-warning &, .has-error &, .has-success & { |
| 419 |
color: $input-color; |
| 420 |
border-color: $input-group-addon-border-color; |
| 421 |
background-color: $input-group-addon-bg; |
| 422 |
} |
| 423 |
} |
| 424 |
|
| 425 |
.form-group-lg { |
| 426 |
select, |
| 427 |
select.form-control { |
| 428 |
line-height: 1.5; |
| 429 |
} |
| 430 |
} |
| 431 |
|
| 432 |
// Navs ======================================================================= |
| 433 |
|
| 434 |
.nav-tabs { |
| 435 |
> li > a, |
| 436 |
> li > a:focus { |
| 437 |
margin-right: 0; |
| 438 |
background-color: transparent; |
| 439 |
border: none; |
| 440 |
color: $navbar-default-link-color; |
| 441 |
@include box-shadow(inset 0 -1px 0 #ddd); |
| 442 |
@include transition(all 0.2s); |
| 443 |
|
| 444 |
&:hover { |
| 445 |
background-color: transparent; |
| 446 |
@include box-shadow(inset 0 -2px 0 $brand-primary); |
| 447 |
color: $brand-primary; |
| 448 |
} |
| 449 |
} |
| 450 |
|
| 451 |
& > li.active > a, |
| 452 |
& > li.active > a:focus { |
| 453 |
border: none; |
| 454 |
@include box-shadow(inset 0 -2px 0 $brand-primary); |
| 455 |
color: $brand-primary; |
| 456 |
|
| 457 |
&:hover { |
| 458 |
border: none; |
| 459 |
color: $brand-primary; |
| 460 |
} |
| 461 |
} |
| 462 |
|
| 463 |
& > li.disabled > a { |
| 464 |
@include box-shadow(inset 0 -1px 0 #ddd); |
| 465 |
} |
| 466 |
|
| 467 |
&.nav-justified { |
| 468 |
|
| 469 |
& > li > a, |
| 470 |
& > li > a:hover, |
| 471 |
& > li > a:focus, |
| 472 |
& > .active > a, |
| 473 |
& > .active > a:hover, |
| 474 |
& > .active > a:focus { |
| 475 |
border: none; |
| 476 |
} |
| 477 |
} |
| 478 |
|
| 479 |
.dropdown-menu { |
| 480 |
margin-top: 0; |
| 481 |
} |
| 482 |
} |
| 483 |
|
| 484 |
.dropdown-menu { |
| 485 |
margin-top: 0; |
| 486 |
border: none; |
| 487 |
@include box-shadow(0 1px 4px rgba(0,0,0,.3)); |
| 488 |
} |
| 489 |
|
| 490 |
// Indicators ================================================================= |
| 491 |
|
| 492 |
.alert { |
| 493 |
border: none; |
| 494 |
color: #fff; |
| 495 |
|
| 496 |
&-success { |
| 497 |
background-color: $brand-success; |
| 498 |
} |
| 499 |
|
| 500 |
&-info { |
| 501 |
background-color: $brand-info; |
| 502 |
} |
| 503 |
|
| 504 |
&-warning { |
| 505 |
background-color: $brand-warning; |
| 506 |
} |
| 507 |
|
| 508 |
&-danger { |
| 509 |
background-color: $brand-danger; |
| 510 |
} |
| 511 |
|
| 512 |
a:not(.close):not(.btn), |
| 513 |
.alert-link { |
| 514 |
color: #fff; |
| 515 |
font-weight: bold; |
| 516 |
} |
| 517 |
|
| 518 |
.close { |
| 519 |
color: #fff; |
| 520 |
} |
| 521 |
} |
| 522 |
|
| 523 |
.badge { |
| 524 |
padding: 4px 6px 4px; |
| 525 |
} |
| 526 |
|
| 527 |
.progress { |
| 528 |
position: relative; |
| 529 |
z-index: 1; |
| 530 |
height: 6px; |
| 531 |
border-radius: 0; |
| 532 |
|
| 533 |
@include box-shadow(none); |
| 534 |
|
| 535 |
&-bar { |
| 536 |
@include box-shadow(none); |
| 537 |
|
| 538 |
&:last-child { |
| 539 |
border-radius: 0 3px 3px 0; |
| 540 |
} |
| 541 |
|
| 542 |
&:last-child { |
| 543 |
&:before { |
| 544 |
display: block; |
| 545 |
content: ""; |
| 546 |
position: absolute; |
| 547 |
width: 100%; |
| 548 |
height: 100%; |
| 549 |
left: 0; |
| 550 |
right: 0; |
| 551 |
z-index: -1; |
| 552 |
background-color: lighten($progress-bar-bg, 35%); |
| 553 |
} |
| 554 |
} |
| 555 |
|
| 556 |
&-success:last-child.progress-bar:before { |
| 557 |
background-color: lighten($brand-success, 35%); |
| 558 |
} |
| 559 |
|
| 560 |
&-info:last-child.progress-bar:before { |
| 561 |
background-color: lighten($brand-info, 45%); |
| 562 |
} |
| 563 |
&-warning:last-child.progress-bar:before { |
| 564 |
background-color: lighten($brand-warning, 35%); |
| 565 |
} |
| 566 |
|
| 567 |
&-danger:last-child.progress-bar:before { |
| 568 |
background-color: lighten($brand-danger, 25%); |
| 569 |
} |
| 570 |
} |
| 571 |
} |
| 572 |
|
| 573 |
// Progress bars ============================================================== |
| 574 |
|
| 575 |
// Containers ================================================================= |
| 576 |
|
| 577 |
.close { |
| 578 |
font-size: 34px; |
| 579 |
font-weight: 300; |
| 580 |
line-height: 24px; |
| 581 |
opacity: 0.6; |
| 582 |
@include transition(all 0.2s); |
| 583 |
|
| 584 |
&:hover { |
| 585 |
opacity: 1; |
| 586 |
} |
| 587 |
} |
| 588 |
|
| 589 |
.list-group { |
| 590 |
|
| 591 |
&-item { |
| 592 |
padding: 15px; |
| 593 |
} |
| 594 |
|
| 595 |
&-item-text { |
| 596 |
color: $gray-light; |
| 597 |
} |
| 598 |
} |
| 599 |
|
| 600 |
.well { |
| 601 |
border-radius: 0; |
| 602 |
@include box-shadow(none); |
| 603 |
} |
| 604 |
|
| 605 |
.panel { |
| 606 |
border: none; |
| 607 |
border-radius: 2px; |
| 608 |
@include box-shadow(0 1px 4px rgba(0,0,0,.3)); |
| 609 |
|
| 610 |
&-heading { |
| 611 |
border-bottom: none; |
| 612 |
} |
| 613 |
|
| 614 |
&-footer { |
| 615 |
border-top: none; |
| 616 |
} |
| 617 |
} |
| 618 |
|
| 619 |
.popover { |
| 620 |
border: none; |
| 621 |
@include box-shadow(0 1px 4px rgba(0,0,0,.3)); |
| 622 |
} |
| 623 |
|
| 624 |
.carousel { |
| 625 |
&-caption { |
| 626 |
h1, h2, h3, h4, h5, h6 { |
| 627 |
color: inherit; |
| 628 |
} |
| 629 |
} |
| 630 |
} |
| 631 |
|