github.com/bosssauce/ponzu@v0.11.1-0.20200102001432-9bc41b703131/system/admin/static/editor/sass/components/_global.scss (about) 1 @charset "UTF-8"; 2 3 4 //Default styles 5 6 html { 7 box-sizing: border-box; 8 } 9 *, *:before, *:after { 10 box-sizing: inherit; 11 } 12 13 body { 14 // display: flex; 15 // min-height: 100vh; 16 // flex-direction: column; 17 } 18 19 main { 20 // flex: 1 0 auto; 21 } 22 23 ul { 24 list-style-type: none; 25 } 26 27 a { 28 color: $link-color; 29 text-decoration: none; 30 31 // Gets rid of tap active state 32 -webkit-tap-highlight-color: transparent; 33 } 34 35 36 // Positioning 37 .valign-wrapper { 38 @include flexbox(); 39 @include align(center); 40 41 .valign { 42 display: block; 43 } 44 } 45 46 47 ul { 48 padding: 0; 49 li { 50 list-style-type: none; 51 } 52 } 53 54 // classic clearfix 55 .clearfix { 56 clear: both; 57 } 58 59 60 // Z-levels 61 .z-depth-0 { 62 box-shadow: none !important; 63 } 64 .z-depth-1{ 65 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); 66 } 67 .z-depth-1-half{ 68 box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15); 69 } 70 .z-depth-2{ 71 box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 72 } 73 .z-depth-3{ 74 box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19); 75 } 76 .z-depth-4{ 77 box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21); 78 } 79 .z-depth-5{ 80 box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22); 81 } 82 83 .hoverable:hover { 84 transition: box-shadow .25s; 85 box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 86 } 87 88 // Dividers 89 90 .divider { 91 height: 1px; 92 overflow: hidden; 93 background-color: color("grey", "lighten-2"); 94 } 95 96 97 // Blockquote 98 99 blockquote { 100 margin: 20px 0; 101 padding-left: 1.5rem; 102 border-left: 5px solid $primary-color; 103 } 104 105 // Icon Styles 106 107 i { 108 line-height: inherit; 109 110 &.left { 111 float: left; 112 margin-right: 15px; 113 } 114 &.right { 115 float: right; 116 margin-left: 15px; 117 } 118 &.tiny { 119 font-size: 1rem; 120 } 121 &.small { 122 font-size: 2rem; 123 } 124 &.medium { 125 font-size: 4rem; 126 } 127 &.large { 128 font-size: 6rem; 129 } 130 } 131 132 // Images 133 img.responsive-img, 134 video.responsive-video { 135 max-width: 100%; 136 height: auto; 137 } 138 139 140 // Pagination 141 142 .pagination { 143 144 li { 145 float: left; 146 font-size: 1.2rem; 147 padding: 0 10px; 148 line-height: 30px; 149 border-radius: 2px; 150 text-align: center; 151 152 a { color: #444; } 153 154 &.active a { color: #fff; } 155 156 &.active { background-color: $primary-color; } 157 158 &.disabled a { 159 cursor: default; 160 color: #999; 161 } 162 163 i { 164 font-size: 2rem; 165 } 166 } 167 168 169 li.pages ul li { 170 display: inline-block; 171 float: none; 172 } 173 } 174 @media #{$medium-and-down} { 175 .pagination { 176 width: 100%; 177 178 li.prev, 179 li.next { 180 width: 10%; 181 } 182 183 li.pages { 184 width: 80%; 185 overflow: hidden; 186 white-space: nowrap; 187 } 188 } 189 } 190 191 192 // Parallax 193 .parallax-container { 194 position: relative; 195 overflow: hidden; 196 height: 500px; 197 } 198 199 .parallax { 200 position: absolute; 201 top: 0; 202 left: 0; 203 right: 0; 204 bottom: 0; 205 z-index: -1; 206 207 img { 208 display: none; 209 position: absolute; 210 left: 50%; 211 bottom: 0; 212 min-width: 100%; 213 min-height: 100%; 214 -webkit-transform: translate3d(0,0,0); 215 transform: translate3d(0,0,0); 216 transform: translateX(-50%); 217 } 218 } 219 220 // Pushpin 221 .pin-top, .pin-bottom { 222 position: relative; 223 } 224 .pinned { 225 position: fixed !important; 226 } 227 228 /********************* 229 Transition Classes 230 **********************/ 231 232 ul.staggered-list li { 233 opacity: 0; 234 } 235 236 .fade-in { 237 opacity: 0; 238 transform-origin: 0 50%; 239 } 240 241 242 /********************* 243 Media Query Classes 244 **********************/ 245 .hide-on-small-only, .hide-on-small-and-down { 246 @media #{$small-and-down} { 247 display: none !important; 248 } 249 } 250 .hide-on-med-and-down { 251 @media #{$medium-and-down} { 252 display: none !important; 253 } 254 } 255 .hide-on-med-and-up { 256 @media #{$medium-and-up} { 257 display: none !important; 258 } 259 } 260 .hide-on-med-only { 261 @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) { 262 display: none !important; 263 } 264 } 265 .hide-on-large-only { 266 @media #{$large-and-up} { 267 display: none !important; 268 } 269 } 270 .show-on-large { 271 @media #{$large-and-up} { 272 display: initial !important; 273 } 274 } 275 .show-on-medium { 276 @media only screen and (min-width: $small-screen) and (max-width: $medium-screen) { 277 display: initial !important; 278 } 279 } 280 .show-on-small { 281 @media #{$small-and-down} { 282 display: initial !important; 283 } 284 } 285 .show-on-medium-and-up { 286 @media #{$medium-and-up} { 287 display: initial !important; 288 } 289 } 290 .show-on-medium-and-down { 291 @media #{$medium-and-down} { 292 display: initial !important; 293 } 294 } 295 296 297 // Center text on mobile 298 .center-on-small-only { 299 @media #{$small-and-down} { 300 text-align: center; 301 } 302 } 303 304 // Footer 305 footer.page-footer { 306 margin-top: 20px; 307 padding-top: 20px; 308 background-color: $footer-bg-color; 309 310 .footer-copyright { 311 overflow: hidden; 312 height: 50px; 313 line-height: 50px; 314 color: rgba(255,255,255,.8); 315 background-color: rgba(51,51,51,.08);; 316 @extend .light; 317 } 318 } 319 320 // Tables 321 table, th, td { 322 border: none; 323 } 324 325 table { 326 width:100%; 327 display: table; 328 329 &.bordered > thead > tr, 330 &.bordered > tbody > tr { 331 border-bottom: 1px solid $table-border-color; 332 } 333 334 &.striped > tbody { 335 > tr:nth-child(odd) { 336 background-color: $table-striped-color; 337 } 338 339 > tr > td { 340 border-radius: 0px; 341 } 342 } 343 344 &.hoverable > tbody > tr { 345 @include transition(background-color .25s ease); 346 &:hover { 347 background-color: $table-striped-color; 348 } 349 } 350 351 &.centered { 352 thead tr th, tbody tr td { 353 text-align: center; 354 355 } 356 } 357 358 } 359 360 thead { 361 border-bottom: 1px solid $table-border-color; 362 } 363 364 td, th{ 365 padding: 15px 5px; 366 display: table-cell; 367 text-align: left; 368 vertical-align: middle; 369 border-radius: 2px; 370 } 371 372 // Responsive Table 373 @media #{$medium-and-down} { 374 375 table.responsive-table { 376 width: 100%; 377 border-collapse: collapse; 378 border-spacing: 0; 379 display: block; 380 position: relative; 381 382 th, 383 td { 384 margin: 0; 385 vertical-align: top; 386 } 387 388 th { text-align: left; } 389 thead { 390 display: block; 391 float: left; 392 393 tr { 394 display: block; 395 padding: 0 10px 0 0; 396 397 th::before { 398 content: "\00a0"; 399 } 400 } 401 } 402 tbody { 403 display: block; 404 width: auto; 405 position: relative; 406 overflow-x: auto; 407 white-space: nowrap; 408 409 tr { 410 display: inline-block; 411 vertical-align: top; 412 } 413 } 414 th { 415 display: block; 416 text-align: right; 417 } 418 td { 419 display: block; 420 min-height: 1.25em; 421 text-align: left; 422 } 423 tr { padding: 0 10px; } 424 425 /* sort out borders */ 426 thead { 427 border: 0; 428 border-right: 1px solid $table-border-color; 429 } 430 431 &.bordered { 432 th { border-bottom: 0; border-left: 0; } 433 td { border-left: 0; border-right: 0; border-bottom: 0; } 434 tr { border: 0; } 435 tbody tr { border-right: 1px solid $table-border-color; } 436 } 437 438 } 439 440 } 441 442 443 // Collections 444 .collection { 445 margin: $element-top-margin 0 $element-bottom-margin 0; 446 border: 1px solid $collection-border-color; 447 border-radius: 2px; 448 overflow: hidden; 449 position: relative; 450 451 .collection-item { 452 background-color: $collection-bg-color; 453 line-height: 1.5rem; 454 padding: 10px 20px; 455 margin: 0; 456 border-bottom: 1px solid $collection-border-color; 457 458 // Avatar Collection 459 &.avatar { 460 min-height: 84px; 461 padding-left: 72px; 462 position: relative; 463 464 .circle { 465 position: absolute; 466 width: 42px; 467 height: 42px; 468 overflow: hidden; 469 left: 15px; 470 display: inline-block; 471 vertical-align: middle; 472 } 473 i.circle { 474 font-size: 18px; 475 line-height: 42px; 476 color: #fff; 477 background-color: #999; 478 text-align: center; 479 } 480 481 482 .title { 483 font-size: 16px; 484 } 485 486 p { 487 margin: 0; 488 } 489 490 .secondary-content { 491 position: absolute; 492 top: 16px; 493 right: 16px; 494 } 495 496 } 497 498 499 &:last-child { 500 border-bottom: none; 501 } 502 503 &.active { 504 background-color: $collection-active-bg-color; 505 color: $collection-active-color; 506 } 507 } 508 a.collection-item{ 509 display: block; 510 @include transition(.25s); 511 color: $secondary-color; 512 &:not(.active) { 513 &:hover { 514 background-color: $collection-hover-bg-color; 515 } 516 } 517 } 518 519 &.with-header { 520 .collection-header { 521 background-color: $collection-bg-color; 522 border-bottom: 1px solid $collection-border-color; 523 padding: 10px 20px; 524 } 525 .collection-item { 526 padding-left: 30px; 527 } 528 .collection-item.avatar { 529 padding-left: 72px; 530 } 531 } 532 533 } 534 // Made less specific to allow easier overriding 535 .secondary-content { 536 float: right; 537 color: $secondary-color; 538 } 539 540 541 // Badges 542 span.badge { 543 min-width: 3rem; 544 padding: 0 6px; 545 text-align: center; 546 font-size: 1rem; 547 line-height: inherit; 548 color: color('grey', 'darken-1'); 549 position: absolute; 550 right: 15px; 551 @include box-sizing(border-box); 552 553 &.new { 554 font-weight: 300; 555 font-size: 0.8rem; 556 color: #fff; 557 background-color: $badge-bg-color; 558 border-radius: 2px; 559 } 560 &.new:after { 561 content: " new"; 562 } 563 } 564 565 // Responsive Videos 566 .video-container { 567 position: relative; 568 padding-bottom: 56.25%; 569 padding-top: 30px; 570 height: 0; 571 overflow: hidden; 572 &.no-controls { 573 padding-top: 0; 574 } 575 576 iframe, object, embed { 577 position: absolute; 578 top: 0; 579 left: 0; 580 width: 100%; 581 height: 100%; 582 } 583 } 584 585 // Progress Bar 586 .progress { 587 position: relative; 588 height: 4px; 589 display: block; 590 width: 100%; 591 background-color: lighten($progress-bar-color, 40%); 592 border-radius: 2px; 593 margin: $element-top-margin 0 $element-bottom-margin 0; 594 overflow: hidden; 595 .determinate { 596 position: absolute; 597 background-color: inherit; 598 top: 0; 599 left: 0; 600 bottom: 0; 601 background-color: $progress-bar-color; 602 @include transition(width .3s linear); 603 } 604 .indeterminate { 605 background-color: $progress-bar-color; 606 &:before { 607 content: ''; 608 position: absolute; 609 background-color: inherit; 610 top: 0; 611 left:0; 612 bottom: 0; 613 will-change: left, right; 614 // Custom bezier 615 @include animation(indeterminate 2.1s cubic-bezier(0.650, 0.815, 0.735, 0.395) infinite); 616 617 } 618 &:after { 619 content: ''; 620 position: absolute; 621 background-color: inherit; 622 top: 0; 623 left:0; 624 bottom: 0; 625 will-change: left, right; 626 // Custom bezier 627 @include animation(indeterminate-short 2.1s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite); 628 @include animation-delay(1.15s); 629 } 630 } 631 } 632 @include keyframes(indeterminate) { 633 0% { 634 left: -35%; 635 right:100%; 636 } 637 60% { 638 left: 100%; 639 right: -90%; 640 } 641 100% { 642 left: 100%; 643 right: -90%; 644 } 645 } 646 647 @include keyframes(indeterminate-short) { 648 0% { 649 left: -200%; 650 right: 100%; 651 } 652 60% { 653 left: 107%; 654 right: -8%; 655 } 656 100% { 657 left: 107%; 658 right: -8%; 659 } 660 } 661 662 663 /******************* 664 Utility Classes 665 *******************/ 666 667 .hide { 668 display: none !important; 669 } 670 671 // Text Align 672 .left-align { 673 text-align: left; 674 } 675 .right-align { 676 text-align: right 677 } 678 .center, .center-align { 679 text-align: center; 680 } 681 682 .left { 683 float: left !important; 684 } 685 .right { 686 float: right !important; 687 } 688 689 // No Text Select 690 .no-select { 691 -webkit-touch-callout: none; 692 -webkit-user-select: none; 693 -khtml-user-select: none; 694 -moz-user-select: none; 695 -ms-user-select: none; 696 user-select: none; 697 } 698 699 .circle { 700 border-radius: 50%; 701 } 702 703 .center-block { 704 display: block; 705 margin-left: auto; 706 margin-right: auto; 707 } 708 709 .truncate { 710 display: block; 711 white-space: nowrap; 712 overflow: hidden; 713 text-overflow: ellipsis; 714 } 715 716 .no-padding { 717 padding: 0 !important; 718 }