github.com/mithrandie/csvq@v1.18.1/docs/_sass/components/_global.scss (about)

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