parent
6137d60ccf
commit
65452a7895
@ -0,0 +1,64 @@ |
||||
/*! |
||||
* www.KNACSS.com v7.1.0 (october, 31 2018) @author: Alsacreations, Raphael Goetter |
||||
* Licence WTFPL http://www.wtfpl.net/ |
||||
*/ |
||||
|
||||
/* ----------------------------- */ |
||||
/* ==Table Of Content */ |
||||
/* ----------------------------- */ |
||||
|
||||
/* |
||||
1- Reboot (basic reset) |
||||
2- Libraries : |
||||
- Base |
||||
- Print |
||||
- Layout (alignment, modules, positionning) |
||||
- Utilities (width and spacers helpers) |
||||
- Responsive helpers |
||||
- WordPress reset (disabled by default) |
||||
- Grillade (Grid System) |
||||
3- Components : |
||||
- Media object |
||||
- Skip Links for accessibility |
||||
- Tables |
||||
- Forms |
||||
- Buttons |
||||
- Checkbox |
||||
- Tabs |
||||
- Tags |
||||
- Badges |
||||
- Alerts |
||||
*/ |
||||
|
||||
@import "knacss/_vendor/reboot"; // Bootstrap reboot (basic reset) (CSS file renamed and imported as if it was a partial because of libsass) |
||||
|
||||
// WARNING : you should comment the following @import (variables) |
||||
// and move variables file from knacss folder to your own project folder! |
||||
@import "knacss/_config/variables"; |
||||
|
||||
@import "knacss/_config/mixins"; |
||||
|
||||
// Core Libraries |
||||
@import "knacss/_library/base"; // basic styles |
||||
@import "knacss/_library/print"; // print quick reset |
||||
@import "knacss/_library/layout"; // alignment, modules, positionning |
||||
@import "knacss/_library/utilities"; // width and spacer helpers |
||||
@import "knacss/_library/responsive"; // Responsive Web Design helpers |
||||
// @import "knacss/_library/wordpress"; // WordPress reset and basic styles |
||||
|
||||
// New Grid System by default (Grid Layout). If you prefer old "Flexbox" Grid System, replace file with "_library/grillade-flex" |
||||
// Note that none of these files are prefixed by an underscore, in order to compile them. |
||||
@import "knacss/_library/grillade-grid"; // grid system with Grid Layout |
||||
|
||||
// Components |
||||
@import "knacss/components/media"; // media object |
||||
@import "knacss/components/skip-links"; // skip links |
||||
@import "knacss/components/tables"; // data tables consistency |
||||
@import "knacss/components/forms"; // forms consistency and styles |
||||
@import "knacss/components/buttons"; // buttons styles |
||||
@import "knacss/components/checkbox"; // checkbox, radio, switch styles |
||||
@import "knacss/components/tabs"; // tabs styles |
||||
@import "knacss/components/arrows"; // arrows styles |
||||
@import "knacss/components/tags"; // tags styles |
||||
@import "knacss/components/badges"; // badges styles |
||||
@import "knacss/components/alerts"; // alerts styles |
@ -0,0 +1,56 @@ |
||||
// font-size Mixin |
||||
// compiles to font-size mobile + font-size desktop on small-plus devices |
||||
// ex. h2 { @include font-size(h2);} |
||||
@mixin font-size($elem) { |
||||
$q: map-get($font-sizes, $elem); |
||||
$mob: map-get($q, "mobile"); |
||||
$desk: map-get($q, "desktop"); |
||||
font-size: $mob; |
||||
@include respond-to("small-up") { |
||||
font-size: $desk; |
||||
} |
||||
} |
||||
|
||||
// Grid Mixin |
||||
// arguments are : columns number, gutter, min-breakpoint |
||||
// ex. .ingrid { @include grid(4, 1rem, 640px); } |
||||
@mixin grid($number:1, $gutter:0, $breakpoint:0) { |
||||
@media (min-width: $breakpoint) { |
||||
display: grid; |
||||
grid-template-columns: repeat($number, 1fr); |
||||
grid-gap: $gutter; |
||||
} |
||||
} |
||||
|
||||
// Additionnal "utility" breakpoints aliases |
||||
// ex. @include respond-to("medium-up") {...} |
||||
$bp-aliases: ( |
||||
'tiny' : (max-width: #{$tiny - 1}), |
||||
'small' : (max-width: #{$small - 1}), |
||||
'medium' : (max-width: #{$medium - 1}), |
||||
'large' : (max-width: #{$large - 1}), |
||||
'extra-large' : (max-width: #{$extra-large - 1}), |
||||
'tiny-up' : (min-width: #{$tiny}), |
||||
'small-up' : (min-width: #{$small}), |
||||
'medium-up' : (min-width: #{$medium}), |
||||
'large-up' : (min-width: #{$large}), |
||||
'extra-large-up' : (min-width: #{$extra-large}), |
||||
'retina' : (min-resolution: 2dppx) |
||||
); |
||||
|
||||
// Source : https://www.sitepoint.com/managing-responsive-breakpoints-sass/ |
||||
@mixin respond-to($name) { |
||||
// If the key exists in the map |
||||
@if map-has-key($bp-aliases, $name) { |
||||
// Prints a media query based on the value |
||||
@media #{inspect(map-get($bp-aliases, $name))} { |
||||
@content; |
||||
} |
||||
} |
||||
|
||||
// If the key doesn't exist in the map |
||||
@else { |
||||
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. " |
||||
+ "Please make sure it is defined in `$breakpoints` map."; |
||||
} |
||||
} |
@ -0,0 +1,221 @@ |
||||
// Config file and project variables |
||||
|
||||
// ---------------- |
||||
// Breakpoints zone |
||||
// ---------------- |
||||
|
||||
// Warning: you should use your own values, regardless of the devices |
||||
// Best practice is Mobile First: (min-width: $breakpoint) |
||||
$tiny : 480px !default; // or 'em' if you prefer, of course |
||||
$small : 576px !default; |
||||
$medium : 768px !default; |
||||
$large : 992px !default; |
||||
$extra-large : 1200px !default; |
||||
|
||||
// ---------- |
||||
// Fonts zone |
||||
// ---------- |
||||
|
||||
// Font families |
||||
$font-family-base : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default; // system font stack |
||||
$font-family-headings : sans-serif !default; // font for h1, h2.. h6 |
||||
$font-family-monospace : consolas, courier, monospace !default; // font for code and samples |
||||
|
||||
// Font sizes (1.6rem value is "16px" equivalent) |
||||
$font-size-base : 1.6rem !default; |
||||
|
||||
$font-sizes: ( |
||||
base: ( |
||||
mobile : 1.4rem, |
||||
desktop : $font-size-base |
||||
), |
||||
h1: ( |
||||
mobile : 2.8rem, |
||||
desktop : 3.2rem |
||||
), |
||||
h2: ( |
||||
mobile : 2.4rem, |
||||
desktop : 2.8rem |
||||
), |
||||
h3: ( |
||||
mobile : 2.0rem, |
||||
desktop : 2.4rem |
||||
), |
||||
h4: ( |
||||
mobile : 1.8rem, |
||||
desktop : 2.0rem |
||||
), |
||||
h5: ( |
||||
mobile : 1.6rem, |
||||
desktop : 1.8rem |
||||
), |
||||
h6: ( |
||||
mobile : 1.4rem, |
||||
desktop : 1.6rem |
||||
) |
||||
) !default; |
||||
|
||||
// Line heights |
||||
$line-height-s : 1.3 !default; |
||||
$line-height-base : 1.5 !default; |
||||
$line-height-l : 1.7 !default; |
||||
|
||||
// Default margin-bottom |
||||
$margin-bottom-base : 1rem !default; |
||||
$headings-margin-bottom : $margin-bottom-base /2 !default; |
||||
$paragraph-margin-bottom: $margin-bottom-base !default; |
||||
|
||||
// Font weights |
||||
$weight-light : 200 !default; |
||||
$weight-book : 300 !default; |
||||
$weight-regular : 400 !default; |
||||
$weight-medium : 500 !default; |
||||
$weight-bold : 700 !default; |
||||
|
||||
// Activate hyphenation on small screens |
||||
$hyphens: false !default; |
||||
|
||||
// ------------ |
||||
// Spacing zone |
||||
// ------------ |
||||
|
||||
// Number of grid-columns |
||||
$cols: 12; |
||||
|
||||
// Grid gutters (for .has-gutter-* classes) |
||||
$grid-gutters: ( |
||||
'': 1rem, |
||||
'-l': 2rem, |
||||
'-xl': 4rem |
||||
) !default; |
||||
|
||||
// Spacings |
||||
$spacer-tiny : .5rem !default; |
||||
$spacer-tiny-plus : .7rem !default; |
||||
$spacer-small : 1rem !default; |
||||
$spacer-small-plus : 1.5rem !default; |
||||
$spacer-medium : 2rem !default; |
||||
$spacer-medium-plus : 3rem !default; |
||||
$spacer-large : 4rem !default; |
||||
$spacer-large-plus : 6rem !default; |
||||
$spacer-extra-large : 8rem !default; |
||||
$spacer-extra-large-plus : 12rem !default; |
||||
$spacer-ultra-large : 16rem !default; |
||||
$spacer-ultra-large-plus : 20rem !default; |
||||
|
||||
// z-indexes |
||||
$zindex-navigation : 1000 !default; |
||||
$zindex-dropdown : 2000 !default; |
||||
$zindex-popover : 3000 !default; |
||||
$zindex-tooltip : 4000 !default; |
||||
$zindex-modal : 5000 !default; |
||||
$zindex-notification : 6000 !default; |
||||
$zindex-debug : 7000 !default; |
||||
|
||||
// ---------- |
||||
// Color zone |
||||
// ---------- |
||||
|
||||
// Color names |
||||
$white : #fff !default; |
||||
$gray-100 : #f8f9fa !default; |
||||
$gray-200 : #e7e9ed !default; |
||||
$gray-300 : #dee2e6 !default; |
||||
$gray-400 : #ced4da !default; |
||||
$gray-500 : #acb3c2 !default; |
||||
$gray-600 : #727e96 !default; |
||||
$gray-700 : #454d5d !default; |
||||
$gray-800 : #333 !default; |
||||
$gray-900 : #212529 !default; |
||||
$black : #000 !default; |
||||
|
||||
$blue-300 : #5BC0DE !default; |
||||
$blue-500 : #0275D8 !default; |
||||
$green-500 : #5CB85C !default; |
||||
$orange-500 : #F0AD4E !default; |
||||
$red-500 : #D9534F !default; |
||||
|
||||
// Semantic colors |
||||
$color-brand : $green-500; |
||||
$color-primary : $blue-500; |
||||
$color-success : $green-500; |
||||
$color-info : $blue-300; |
||||
$color-warning : $orange-500; |
||||
$color-danger : $red-500; |
||||
$color-inverse : $gray-800; |
||||
$color-ghost : transparent; |
||||
$color-muted : $gray-200; |
||||
|
||||
$color-base : $gray-900; |
||||
$background-base : $white; |
||||
|
||||
$forms-color : $gray-800; |
||||
|
||||
// --------------- |
||||
// Components zone |
||||
// --------------- |
||||
|
||||
// Component: links |
||||
$link-color : $gray-800; |
||||
$link-color-hover : darken($link-color, 15%); |
||||
$link-decoration : underline; |
||||
$link-decoration-hover : underline; |
||||
|
||||
// Global border-radius |
||||
$border-radius: 0 !default; |
||||
|
||||
// Component: quotes |
||||
$quote-color : $gray-200; |
||||
|
||||
// Component: arrows |
||||
$arrow-color : $black; |
||||
|
||||
// Components: checkboxes, radios, switches |
||||
$checkbox-color: $white; |
||||
$checkbox-background: $gray-800; |
||||
$checkbox-size: 2rem; |
||||
$checkbox-border-radius: 4px; |
||||
$radio-color: $gray-800; |
||||
$radio-background: $white; |
||||
$switch-color: $white; |
||||
$switch-background: $gray-800; |
||||
$switch-size: 2rem; |
||||
$switch-border-radius: 3em; |
||||
|
||||
// Component: tables |
||||
$table-border : $gray-500; |
||||
$table-caption-color : $gray-800; |
||||
$table-background : transparent; |
||||
$table-head-color : $color-base; |
||||
$table-head-background : transparent; |
||||
$table-footer-color : $color-base; |
||||
$table-footer-background : transparent; |
||||
|
||||
// Components: buttons, badges, alerts color variants list |
||||
// Convention is: name - background-color - color - border |
||||
$variants-list: ( |
||||
(primary, $color-primary, $white, none), |
||||
(success, $color-success, $white, none), |
||||
(info, $color-info, $black, none), |
||||
(warning, $color-warning, $black, none), |
||||
(danger, $color-danger, $white, none), |
||||
(inverse, $color-inverse, $white, none), |
||||
(ghost, $color-ghost, $white, 0 0 0 1px $white inset) |
||||
) !default; |
||||
|
||||
// Component: tabs |
||||
$tabs-border : $gray-200; |
||||
$tabs-active-border : $gray-800; |
||||
$tabs-color : $color-base; |
||||
$tabs-active-color : $gray-800; |
||||
$tabs-background : transparent; |
||||
$tabs-active-background : transparent; |
||||
$tabs-border-radius : 0; |
||||
|
||||
// Component: nav burger button |
||||
$burger-color : $gray-800; |
||||
$burger-background : transparent; |
||||
$burger-hover-background : transparent; |
||||
$burger-size : 2.6rem; |
||||
$burger-weight : 5px; // size of stripes |
||||
$burger-padding : 0; |
@ -0,0 +1,266 @@ |
||||
/* ----------------------------- */ |
||||
/* ==Base (basic styles) */ |
||||
/* ----------------------------- */ |
||||
|
||||
/* switching to border-box model for all elements */ |
||||
html { |
||||
box-sizing: border-box; |
||||
} |
||||
|
||||
*, |
||||
*::before, |
||||
*::after { |
||||
box-sizing: inherit; |
||||
/* avoid min-width: auto on flex and grid children */ |
||||
min-width: 0; |
||||
min-height: 0; |
||||
} |
||||
|
||||
html { |
||||
/* set base font-size to equiv "10px", which is adapted to rem unit */ |
||||
font-size: 62.5%; |
||||
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */ |
||||
font-size: calc(1em * 0.625); |
||||
} |
||||
|
||||
body { |
||||
margin: 0; |
||||
@include font-size(base); |
||||
background-color: $background-base; |
||||
color: $color-base; |
||||
font-family: $font-family-base; |
||||
line-height: $line-height-base; |
||||
} |
||||
|
||||
/* Links */ |
||||
a { |
||||
color: $link-color; |
||||
text-decoration: $link-decoration; |
||||
|
||||
&:focus, |
||||
&:hover, |
||||
&:active { |
||||
color: $link-color-hover; |
||||
text-decoration: $link-decoration-hover; |
||||
} |
||||
} |
||||
|
||||
/* Headings */ |
||||
h1, .h1-like { |
||||
@include font-size(h1); |
||||
@if variable_exists(font-family-headings) and $font-family-headings != $font-family-base{ |
||||
font-family: $font-family-headings; |
||||
} |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
h2, .h2-like { |
||||
@include font-size(h2); |
||||
@if variable_exists(font-family-headings) and $font-family-headings != $font-family-base{ |
||||
font-family: $font-family-headings; |
||||
} |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
h3, .h3-like { |
||||
@include font-size(h3); |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
h4, .h4-like { |
||||
@include font-size(h4); |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
h5, .h5-like { |
||||
@include font-size(h5); |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
h6, .h6-like { |
||||
@include font-size(h6); |
||||
font-weight: $weight-medium; |
||||
} |
||||
|
||||
/* Vertical rythm */ |
||||
h1, |
||||
h2, |
||||
h3, |
||||
h4, |
||||
h5, |
||||
h6, |
||||
dd { |
||||
margin-top: 0; |
||||
margin-bottom: $headings-margin-bottom; |
||||
} |
||||
|
||||
p, |
||||
address, |
||||
ol, |
||||
ul, |
||||
dl, |
||||
blockquote, |
||||
pre { |
||||
margin-top: 0; |
||||
margin-bottom: $paragraph-margin-bottom; |
||||
} |
||||
|
||||
/* Avoid margins on nested elements */ |
||||
li p, |
||||
li .p-like, |
||||
li ul, |
||||
li ol, |
||||
ol ol, |
||||
ul ul { |
||||
margin-top: 0; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
/* Max values */ |
||||
img, |
||||
table, |
||||
td, |
||||
blockquote, |
||||
code, |
||||
pre, |
||||
textarea, |
||||
input, |
||||
video, |
||||
svg { |
||||
max-width: 100%; |
||||
} |
||||
|
||||
img { |
||||
height: auto; |
||||
} |
||||
|
||||
/* Styling elements */ |
||||
ul, |
||||
ol { |
||||
padding-left: 2em; |
||||
} |
||||
|
||||
img { |
||||
vertical-align: middle; |
||||
} |
||||
|
||||
em, |
||||
.italic, |
||||
address, |
||||
cite, |
||||
i, |
||||
var { |
||||
font-style: italic; |
||||
} |
||||
|
||||
code, |
||||
kbd, |
||||
mark { |
||||
border-radius: 2px; |
||||
} |
||||
|
||||
kbd { |
||||
padding: 0 2px; |
||||
border: 1px solid #999; |
||||
} |
||||
|
||||
pre { |
||||
tab-size: 2; |
||||
} |
||||
|
||||
code { |
||||
padding: 2px 4px; |
||||
background: rgba(0, 0, 0, 0.04); |
||||
color: #b11; |
||||
} |
||||
|
||||
pre code { |
||||
padding: 0; |
||||
background: none; |
||||
color: inherit; |
||||
border-radius: 0; |
||||
} |
||||
|
||||
mark { |
||||
padding: 2px 4px; |
||||
} |
||||
|
||||
sup, |
||||
sub { |
||||
vertical-align: 0; |
||||
} |
||||
|
||||
sup { |
||||
bottom: 1ex; |
||||
} |
||||
|
||||
sub { |
||||
top: 0.5ex; |
||||
} |
||||
|
||||
blockquote { |
||||
position: relative; |
||||
padding-left: 3em; |
||||
min-height: 2em; |
||||
} |
||||
|
||||
blockquote::before { |
||||
content: "\201C"; |
||||
position: absolute; |
||||
left: 0; |
||||
top: 0; |
||||
font-family: georgia, serif; |
||||
font-size: 5em; |
||||
height: .4em; |
||||
line-height: .9; |
||||
color: $quote-color; |
||||
} |
||||
|
||||
blockquote > footer { |
||||
margin-top: .75em; |
||||
font-size: 0.9em; |
||||
color: rgba(0, 0, 0, .7); |
||||
|
||||
&::before { |
||||
content: "\2014 \0020"; |
||||
} |
||||
} |
||||
|
||||
q { |
||||
font-style: normal; |
||||
} |
||||
|
||||
q, |
||||
.q { |
||||
quotes: "โ" "โ" "โ" "โ"; |
||||
|
||||
&:lang(fr) { |
||||
quotes: "ยซ\00a0" "\00a0ยป" "โ" "โ"; |
||||
} |
||||
} |
||||
|
||||
hr { |
||||
display: block; |
||||
clear: both; |
||||
height: 1px; |
||||
margin: 1em 0 2em; |
||||
padding: 0; |
||||
border: 0; |
||||
color: #ccc; |
||||
background-color: #ccc; |
||||
} |
||||
|
||||
blockquote, |
||||
figure { |
||||
margin-left: 0; |
||||
margin-right: 0; |
||||
} |
||||
|
||||
code, |
||||
pre, |
||||
samp, |
||||
kbd { |
||||
white-space: pre-wrap; |
||||
font-family: $font-family-monospace; |
||||
line-height: normal; |
||||
} |
@ -0,0 +1,65 @@ |
||||
/* ----------------------------- */ |
||||
/* ==Global Micro Layout */ |
||||
/* ----------------------------- */ |
||||
|
||||
/* Flexbox layout is KNACSS choice |
||||
http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html |
||||
*/ |
||||
|
||||
.flex-container, |
||||
.d-flex { |
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
} |
||||
|
||||
.flex-container--row, |
||||
.flex-row { |
||||
@extend .flex-container; |
||||
flex-direction: row; |
||||
} |
||||
|
||||
.flex-container--column, |
||||
.flex-column { |
||||
@extend .flex-container; |
||||
flex-direction: column; |
||||
} |
||||
|
||||
.flex-container--row-reverse, |
||||
.flex-row-reverse { |
||||
@extend .flex-container; |
||||
flex-direction: row-reverse; |
||||
justify-content: flex-end; |
||||
} |
||||
|
||||
.flex-container--column-reverse, |
||||
.flex-column-reverse { |
||||
@extend .flex-container; |
||||
flex-direction: column-reverse; |
||||
justify-content: flex-end; |
||||
} |
||||
|
||||
.flex-item-fluid, |
||||
.item-fluid { |
||||
flex: 1 1 0%; |
||||
} |
||||
|
||||
.flex-item-first, |
||||
.item-first { |
||||
order: -1; |
||||
} |
||||
|
||||
.flex-item-medium, |
||||
.item-medium { |
||||
order: 0; |
||||
} |
||||
|
||||
.flex-item-last, |
||||
.item-last { |
||||
order: 1; |
||||
} |
||||
|
||||
.flex-item-center, |
||||
.item-center, |
||||
.mr-auto { |
||||
margin: auto; |
||||
} |
@ -0,0 +1,98 @@ |
||||
/* ----------------------------- */ |
||||
/* ==Print (quick print reset) */ |
||||
/* ----------------------------- */ |
||||
|
||||
@media print { |
||||
* { |
||||
background: transparent !important; |
||||
box-shadow: none !important; |
||||
text-shadow: none !important; |
||||
} |
||||
|
||||
body { |
||||
width: auto; |
||||
margin: auto; |
||||
font-family: serif; |
||||
font-size: 12pt; |
||||
} |
||||
|
||||
p, |
||||
.p-like, |
||||
h1, |
||||
.h1-like, |
||||
h2, |
||||
.h2-like, |
||||
h3, |
||||
.h3-like, |
||||
h4, |
||||
.h4-like, |
||||
h5, |
||||
.h5-like, |
||||
h6, |
||||
.h6-like, |
||||
blockquote, |
||||
label, |
||||
ul, |
||||
ol { |
||||
color: #000; |
||||
margin: auto; |
||||
} |
||||
|
||||
.print { |
||||
display: block; |
||||
} |
||||
|
||||
.no-print { |
||||
display: none; |
||||
} |
||||
|
||||
/* no orphans, no widows */ |
||||
p, |
||||
.p-like, |
||||
blockquote { |
||||
orphans: 3; |
||||
widows: 3; |
||||
} |
||||
|
||||
/* no breaks inside these elements */ |
||||
blockquote, |
||||
ul, |
||||
ol { |
||||
page-break-inside: avoid; |
||||
} |
||||
|
||||
/* page break before main headers |
||||
h1, |
||||
.h1-like { |
||||
page-break-before: always; |
||||
} |
||||
*/ |
||||
|
||||
/* no breaks after these elements */ |
||||
h1, |
||||
.h1-like, |
||||
h2, |
||||
.h2-like, |
||||
h3, |
||||
.h3-like, |
||||
caption { |
||||
page-break-after: avoid; |
||||
} |
||||
|
||||
a { |
||||
color: #000; |
||||
} |
||||
|
||||
/* displaying URLs |
||||
a[href]::after { |
||||
content: " (" attr(href) ")"; |
||||
} |
||||
*/ |
||||
|
||||
a[href^="javascript:"], |
||||
a[href^="#"] { |
||||
&::after { |
||||
content: ""; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,284 @@ |
||||
/* -------------------------- */ |
||||
/* ==Responsive helpers */ |
||||
/* -------------------------- */ |
||||
|
||||
/* large screens */ |
||||
/* ------------- */ |
||||
|
||||
@media (min-width: $large) { |
||||
|
||||
/* layouts for large screens */ |
||||
.large-hidden { |
||||
display: none !important; |
||||
} |
||||
|
||||
.large-visible { |
||||
display: block !important; |
||||
} |
||||
|
||||
.large-no-float { |
||||
float: none; |
||||
} |
||||
|
||||
.large-inbl { |
||||
display: inline-block; |
||||
float: none; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
/* widths for large screens */ |
||||
.large-w25 { |
||||
width: 25% !important; |
||||
} |
||||
|
||||
.large-w33 { |
||||
width: 33.333333% !important; |
||||
} |
||||
|
||||
.large-w50 { |
||||
width: 50% !important; |
||||
} |
||||
|
||||
.large-w66 { |
||||
width: 66.666666% !important; |
||||
} |
||||
|
||||
.large-w75 { |
||||
width: 75% !important; |
||||
} |
||||
|
||||
.large-w100, |
||||
.large-wauto { |
||||
display: block !important; |
||||
float: none !important; |
||||
clear: none !important; |
||||
width: auto !important; |
||||
margin-left: 0 !important; |
||||
margin-right: 0 !important; |
||||
border: 0; |
||||
} |
||||
|
||||
/* margins for large screens */ |
||||
.large-man, |
||||
.large-ma0 { |
||||
margin: 0 !important; |
||||
} |
||||
} |
||||
|
||||
/* medium screens */ |
||||
/* -------------- */ |
||||
|
||||
@media (min-width: $medium) and (max-width: ($large - 1)) { |
||||
|
||||
/* layouts for medium screens */ |
||||
.medium-hidden { |
||||
display: none !important; |
||||
} |
||||
|
||||
.medium-visible { |
||||
display: block !important; |
||||
} |
||||
|
||||
.medium-no-float { |
||||
float: none; |
||||
} |
||||
|
||||
.medium-inbl { |
||||
display: inline-block; |
||||
float: none; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
/* widths for medium screens */ |
||||
.medium-w25 { |
||||
width: 25% !important; |
||||
} |
||||
|
||||
.medium-w33 { |
||||
width: 33.333333% !important; |
||||
} |
||||
|
||||
.medium-w50 { |
||||
width: 50% !important; |
||||
} |
||||
|
||||
.medium-w66 { |
||||
width: 66.666666% !important; |
||||
} |
||||
|
||||
.medium-w75 { |
||||
width: 75% !important; |
||||
} |
||||
|
||||
.medium-w100, |
||||
.medium-wauto { |
||||
display: block !important; |
||||
float: none !important; |
||||
clear: none !important; |
||||
width: auto !important; |
||||
margin-left: 0 !important; |
||||
margin-right: 0 !important; |
||||
border: 0; |
||||
} |
||||
|
||||
/* margins for medium screens */ |
||||
.medium-man, |
||||
.medium-ma0 { |
||||
margin: 0 !important; |
||||
} |
||||
} |
||||
|
||||
/* small screens */ |
||||
/* ------------- */ |
||||
|
||||
@media (min-width: $small) and (max-width: ($medium - 1)) { |
||||
|
||||
/* layouts for small screens */ |
||||
.small-hidden { |
||||
display: none !important; |
||||
} |
||||
|
||||
.small-visible { |
||||
display: block !important; |
||||
} |
||||
|
||||
.small-no-float { |
||||
float: none; |
||||
} |
||||
|
||||
.small-inbl { |
||||
display: inline-block; |
||||
float: none; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
/* widths for small screens */ |
||||
.small-w25 { |
||||
width: 25% !important; |
||||
} |
||||
|
||||
.small-w33 { |
||||
width: 33.333333% !important; |
||||
} |
||||
|
||||
.small-w50 { |
||||
width: 50% !important; |
||||
} |
||||
|
||||
.small-w66 { |
||||
width: 66.666666% !important; |
||||
} |
||||
|
||||
.small-w75 { |
||||
width: 75% !important; |
||||
} |
||||
|
||||
.small-w100, |
||||
.small-wauto { |
||||
display: block !important; |
||||
float: none !important; |
||||
clear: none !important; |
||||
width: auto !important; |
||||
margin-left: 0 !important; |
||||
margin-right: 0 !important; |
||||
border: 0; |
||||
} |
||||
|
||||
/* margins for small screens */ |
||||
.small-man, |
||||
.small-ma0 { |
||||
margin: 0 !important; |
||||
} |
||||
|
||||
.small-pan, |
||||
.small-pa0 { |
||||
padding: 0 !important; |
||||
} |
||||
|
||||
} |
||||
|
||||
/* tiny screens */ |
||||
/* ------------ */ |
||||
|
||||
@media (max-width: $small - 1) { |
||||
|
||||
/* quick small resolution reset */ |
||||
.mod, |
||||
.col, |
||||
fieldset { |
||||
display: block !important; |
||||
float: none !important; |
||||
clear: none !important; |
||||
width: auto !important; |
||||
margin-left: 0 !important; |
||||
margin-right: 0 !important; |
||||
border: 0; |
||||
} |
||||
|
||||
.flex-container { |
||||
flex-direction: column; |
||||
} |
||||
|
||||
/* layouts for tiny screens */ |
||||
.tiny-hidden { |
||||
display: none !important; |
||||
} |
||||
|
||||
.tiny-visible { |
||||
display: block !important; |
||||
} |
||||
|
||||
.tiny-no-float { |
||||
float: none; |
||||
} |
||||
|
||||
.tiny-inbl { |
||||
display: inline-block; |
||||
float: none; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
/* widths for tiny screens */ |
||||
.tiny-w25 { |
||||
width: 25% !important; |
||||
} |
||||
|
||||
.tiny-w33 { |
||||
width: 33.333333% !important; |
||||
} |
||||
|
||||
.tiny-w50 { |
||||
width: 50% !important; |
||||
} |
||||
|
||||
.tiny-w66 { |
||||
width: 66.666666% !important; |
||||
} |
||||
|
||||
.tiny-w75 { |
||||
width: 75% !important; |
||||
} |
||||
|
||||
.tiny-w100, |
||||
.tiny-wauto { |
||||
display: block !important; |
||||
float: none !important; |
||||
clear: none !important; |
||||
width: auto !important; |
||||
margin-left: 0 !important; |
||||
margin-right: 0 !important; |
||||
border: 0; |
||||
} |
||||
|
||||
/* margins for tiny screens */ |
||||
.tiny-man, |
||||
.tiny-ma0 { |
||||
margin: 0 !important; |
||||
} |
||||
|
||||
.tiny-pan, |
||||
.tiny-pa0 { |
||||
padding: 0 !important; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,462 @@ |
||||
/* ---------------------------------- */ |
||||
/* ==Helpers */ |
||||
/* ---------------------------------- */ |
||||
|
||||
/* Typo Helpers */ |
||||
/* ------------- */ |
||||
|
||||
.u-bold { |
||||
font-weight: $weight-bold; |
||||
} |
||||
|
||||
.u-italic { |
||||
font-style: italic; |
||||
} |
||||
|
||||
.u-normal { |
||||
font-weight: normal; |
||||
font-style: normal; |
||||
} |
||||
|
||||
.u-uppercase { |
||||
text-transform: uppercase; |
||||
} |
||||
|
||||
.u-lowercase { |
||||
text-transform: lowercase; |
||||
} |
||||
|
||||
.u-smaller { |
||||
font-size: 0.6em; |
||||
} |
||||
|
||||
.u-small { |
||||
font-size: 0.8em; |
||||
} |
||||
|
||||
.u-big { |
||||
font-size: 1.2em; |
||||
} |
||||
|
||||
.u-bigger { |
||||
font-size: 1.5em; |
||||
} |
||||
|
||||
.u-biggest { |
||||
font-size: 2em; |
||||
} |
||||
|
||||
.u-txt-wrap { |
||||
word-wrap: break-word; |
||||
overflow-wrap: break-word; |
||||
hyphens: auto; |
||||
} |
||||
|
||||
.u-txt-ellipsis { |
||||
white-space: nowrap; |
||||
text-overflow: ellipsis; |
||||
} |
||||
|
||||
/* text and contents alignment */ |
||||
|
||||
.txtleft, |
||||
.u-txt-left { |
||||
text-align: left; |
||||
} |
||||
|
||||
.txtright, |
||||
.u-txt-right { |
||||
text-align: right; |
||||
} |
||||
|
||||
.txtcenter, |
||||
.u-txt-center { |
||||
text-align: center; |
||||
} |
||||
|
||||
@if variable-exists(hyphens) and $hyphens==true { |
||||
@media (max-width: ($small - 1)) { |
||||
div, |
||||
textarea, |
||||
table, |
||||
td, |
||||
th, |
||||
code, |
||||
pre, |
||||
samp { |
||||
word-wrap: break-word; |
||||
overflow-wrap: break-word; |
||||
hyphens: auto; |
||||
} |
||||
} |
||||
} |
||||
|
||||
/* blocks that need to be placed under floats */ |
||||
|
||||
.clear, |
||||
.u-clear { |
||||
clear: both; |
||||
} |
||||
|
||||
/* blocks that must contain floats */ |
||||
|
||||
.clearfix, |
||||
.u-clearfix { |
||||
&::after { |
||||
content: ""; |
||||
display: table; |
||||
clear: both; |
||||
border-collapse: collapse; |
||||
} |
||||
} |
||||
|
||||
/* simple blocks alignment */ |
||||
|
||||
.left |
||||
.u-left { |
||||
margin-right: auto; |
||||
} |
||||
|
||||
.right, |
||||
.u-right { |
||||
margin-left: auto; |
||||
} |
||||
|
||||
.center, |
||||
.u-center { |
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
} |
||||
|
||||
/* Global Micro Layout */ |
||||
/* ------------------- */ |
||||
|
||||
/* module, gains superpower "BFC" Block Formating Context */ |
||||
|
||||
.mod, |
||||
.u-mod, |
||||
.bfc, |
||||
.u-bfc { |
||||
overflow: hidden; |
||||
} |
||||
|
||||
/* floating elements */ |
||||
|
||||
.fl, |
||||
.u-fl { |
||||
float: left; |
||||
} |
||||
|
||||
img.fl, |
||||
img.u-fl { |
||||
margin-right: $spacer-small; |
||||
} |
||||
|
||||
.fr, |
||||
.u-fr { |
||||
float: right; |
||||
} |
||||
|
||||
img.fr, |
||||
img.u-fr { |
||||
margin-left: $spacer-small; |
||||
} |
||||
|
||||
img.fl, |
||||
img.fr, |
||||
img.u-fl, |
||||
img.u-fr { |
||||
margin-bottom: $spacer-tiny; |
||||
} |
||||
|
||||
/* inline-block */ |
||||
|
||||
.inbl, |
||||
.u-inbl { |
||||
display: inline-block; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
/* State Helpers */ |
||||
/* ------------- */ |
||||
|
||||
/* invisible for all */ |
||||
.is-hidden, |
||||
.js-hidden, |
||||
[hidden] { |
||||
display: none; |
||||
} |
||||
|
||||
/* hidden but not for an assistive technology like a screen reader, Yahoo! method */ |
||||
.visually-hidden { |
||||
position: absolute !important; |
||||
border: 0 !important; |
||||
height: 1px !important; |
||||
width: 1px !important; |
||||
padding: 0 !important; |
||||
overflow: hidden !important; |
||||
clip: rect(0, 0, 0, 0) !important; |
||||
} |
||||
|
||||
.is-disabled, |
||||
.js-disabled, |
||||
[disabled], |
||||
.is-disabled ~ label, |
||||
[disabled] ~ label { |
||||
opacity: 0.5; |
||||
cursor: not-allowed !important; |
||||
filter: grayscale(1); |
||||
} |
||||
|
||||
ul { |
||||
&.is-unstyled, |
||||
&.unstyled { |
||||
list-style: none; |
||||
padding-left: 0; |
||||
} |
||||
} |
||||
|
||||
.color--inverse { |
||||
color: $white; |
||||
} |
||||
|
||||
/* Width Helpers */ |
||||
/* ------------- */ |
||||
|
||||
/* blocks widths (percentage and pixels) */ |
||||
$i: 100; |
||||
|
||||
@while $i > 0 { |
||||
.w#{$i} { |
||||
width: $i * 1%; |
||||
} |
||||
$i: $i - 5; |
||||
} |
||||
.w66 { |
||||
width: calc(100% / 3 * 2); |
||||
} |
||||
.w33 { |
||||
width: calc(100% / 3); |
||||
} |
||||
|
||||
$i: 1000; |
||||
|
||||
.wauto { |
||||
width: auto; |
||||
} |
||||
|
||||
.w960p { |
||||
width: 960px; |
||||
} |
||||
|
||||
.mw960p { |
||||
max-width: 960px; |
||||
} |
||||
|
||||
.w1140p { |
||||
width: 1140px; |
||||
} |
||||
|
||||
.mw1140p { |
||||
max-width: 1140px; |
||||
} |
||||
|
||||
@while $i > 0 { |
||||
.w#{$i}p { |
||||
width: $i * 1px; |
||||
} |
||||
$i: $i - 50; |
||||
} |
||||
|
||||
/* Spacing Helpers */ |
||||
/* --------------- */ |
||||
|
||||
.man, |
||||
.ma0 { |
||||
margin: 0; |
||||
} |
||||
|
||||
.pan, |
||||
.pa0 { |
||||
padding: 0; |
||||
} |
||||
|
||||
.mas { |
||||
margin: $spacer-small; |
||||
} |
||||
|
||||
.mam { |
||||
margin: $spacer-medium; |
||||
} |
||||
|
||||
.mal { |
||||
margin: $spacer-large; |
||||
} |
||||
|
||||
.pas { |
||||
padding: $spacer-small; |
||||
} |
||||
|
||||
.pam { |
||||
padding: $spacer-medium; |
||||
} |
||||
|
||||
.pal { |
||||
padding: $spacer-large; |
||||
} |
||||
|
||||
.mtn, |
||||
.mt0 { |
||||
margin-top: 0; |
||||
} |
||||
|
||||
.mts { |
||||
margin-top: $spacer-small; |
||||
} |
||||
|
||||
.mtm { |
||||
margin-top: $spacer-medium; |
||||
} |
||||
|
||||
.mtl { |
||||
margin-top: $spacer-large; |
||||
} |
||||
|
||||
.mrn, |
||||
.mr0 { |
||||
margin-right: 0; |
||||
} |
||||
|
||||
.mrs { |
||||
margin-right: $spacer-small; |
||||
} |
||||
|
||||
.mrm { |
||||
margin-right: $spacer-medium; |
||||
} |
||||
|
||||
.mrl { |
||||
margin-right: $spacer-large; |
||||
} |
||||
|
||||
.mbn, |
||||
.mb0 { |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
.mbs { |
||||
margin-bottom: $spacer-small; |
||||
} |
||||
|
||||
.mbm { |
||||
margin-bottom: $spacer-medium; |
||||
} |
||||
|
||||
.mbl { |
||||
margin-bottom: $spacer-large; |
||||
} |
||||
|
||||
.mln, |
||||
.ml0 { |
||||
margin-left: 0; |
||||
} |
||||
|
||||
.mls { |
||||
margin-left: $spacer-small; |
||||
} |
||||
|
||||
.mlm { |
||||
margin-left: $spacer-medium; |
||||
} |
||||
|
||||
.mll { |
||||
margin-left: $spacer-large; |
||||
} |
||||
|
||||
.mauto { |
||||
margin: auto; |
||||
} |
||||
|
||||
.mtauto { |
||||
margin-top: auto; |
||||
} |
||||
|
||||
.mrauto { |
||||
margin-right: auto; |
||||
} |
||||
|
||||
.mbauto { |
||||
margin-bottom: auto; |
||||
} |
||||
|
||||
.mlauto { |
||||
margin-left: auto; |
||||
} |
||||
|
||||
.ptn, |
||||
.pt0 { |
||||
padding-top: 0; |
||||
} |
||||
|
||||
.pts { |
||||
padding-top: $spacer-small; |
||||
} |
||||
|
||||
.ptm { |
||||
padding-top: $spacer-medium; |
||||
} |
||||
|
||||
.ptl { |
||||
padding-top: $spacer-large; |
||||
} |
||||
|
||||
.prn, |
||||
.pr0 { |
||||
padding-right: 0; |
||||
} |
||||
|
||||
.prs { |
||||
padding-right: $spacer-small; |
||||
} |
||||
|
||||
.prm { |
||||
padding-right: $spacer-medium; |
||||
} |
||||
|
||||
.prl { |
||||
padding-right: $spacer-large; |
||||
} |
||||
|
||||
.pbn, |
||||
.pb0 { |
||||
padding-bottom: 0; |
||||
} |
||||
|
||||
.pbs { |
||||
padding-bottom: $spacer-small; |
||||
} |
||||
|
||||
.pbm { |
||||
padding-bottom: $spacer-medium; |
||||
} |
||||
|
||||
.pbl { |
||||
padding-bottom: $spacer-large; |
||||
} |
||||
|
||||
.pln, |
||||
.pl0 { |
||||
padding-left: 0; |
||||
} |
||||
|
||||
.pls { |
||||
padding-left: $spacer-small; |
||||
} |
||||
|
||||
.plm { |
||||
padding-left: $spacer-medium; |