added current state from hippie main repo
commit state 175816 source/style/hippie
This commit is contained in:
parent
58147a8e95
commit
b60dd80cd5
36 changed files with 2990 additions and 0 deletions
316
global/_common.scss
Normal file
316
global/_common.scss
Normal file
|
|
@ -0,0 +1,316 @@
|
|||
// General classes
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
%size_content {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
%size_content_solo {
|
||||
@extend %size_content;
|
||||
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: $box_sizing;
|
||||
}
|
||||
}
|
||||
|
||||
%h_content_full {
|
||||
height: 100%;
|
||||
|
||||
body {
|
||||
min-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
%hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hide {
|
||||
@extend %hidden;
|
||||
}
|
||||
|
||||
.space_even_auto {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.space_even_half {
|
||||
margin-right: 25%;
|
||||
margin-left: 25%;
|
||||
}
|
||||
|
||||
.space_even_fourth {
|
||||
margin-right: 37.5%;
|
||||
margin-left: 37.5%;
|
||||
}
|
||||
|
||||
@each $size, $variable in (basic, #{$space_basic}),
|
||||
(small, #{$space_small}),
|
||||
(medium, #{$space_medium}),
|
||||
(large, #{$space_large}) {
|
||||
.space_top_#{$size} {
|
||||
margin-top: $variable;
|
||||
}
|
||||
.space_right_#{$size} {
|
||||
margin-right: $variable;
|
||||
}
|
||||
.space_bottom_#{$size} {
|
||||
margin-bottom: $variable;
|
||||
}
|
||||
.space_left_#{$size} {
|
||||
margin-left: $variable;
|
||||
}
|
||||
}
|
||||
|
||||
.space_left_fourth {
|
||||
margin-left: 25%;
|
||||
}
|
||||
|
||||
.width_full {
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.width_half {
|
||||
width: 50%;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.width_third {
|
||||
width: 33.3%;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.h_basic {
|
||||
height: 1024px;
|
||||
}
|
||||
|
||||
.h_full_view {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.h_100 {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wrap_center {
|
||||
& > * {
|
||||
margin-right: (100% - $width_basic) / 2;
|
||||
margin-left: (100% - $width_basic) / 2;
|
||||
|
||||
@include forTabletPortraitUp {
|
||||
margin-right: (100% - $width_small) / 2;
|
||||
margin-left: (100% - $width_small) / 2;
|
||||
}
|
||||
@include forTabletLandscapeUp {
|
||||
margin-right: (100% - $width_medium) / 2;
|
||||
margin-left: (100% - $width_medium) / 2;
|
||||
}
|
||||
@include forBigDesktopUp {
|
||||
margin-right: (100% - $width_large) / 2;
|
||||
margin-left: (100% - $width_large) / 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Clearing and floating
|
||||
// -----------------------------------------------------------------------------
|
||||
.clear {
|
||||
clear: both;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
.overflow {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.float_left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.float_right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.float_space_left {
|
||||
@extend .float_left;
|
||||
margin-right: $space_small;
|
||||
}
|
||||
|
||||
.float_half_size {
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.x_long {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Inlining
|
||||
// -----------------------------------------------------------------------------
|
||||
.inline {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Positioned elements
|
||||
// -----------------------------------------------------------------------------
|
||||
%viewport_fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
%full_parent {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
}
|
||||
|
||||
.pos_abs {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.pos_rel {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pos_fix {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.pin_top {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.pin_right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.pin_bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.pin_left {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.pos_full_view {
|
||||
@extend %viewport_fixed;
|
||||
background-color: rgba($alpha_color, 0.5);
|
||||
}
|
||||
|
||||
.pos_full_page {
|
||||
@extend %full_parent;
|
||||
background-color: rgba($charlie_color, 0.25);
|
||||
}
|
||||
|
||||
.hover_back_change {
|
||||
background-color: $color_darker;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-color: $color_back_basic;
|
||||
}
|
||||
}
|
||||
|
||||
.mouse_over {
|
||||
@extend %viewport_fixed;
|
||||
z-index: $z_heaven;
|
||||
background-color: transparentize($color_darkest, 0.5);
|
||||
transition: background-color $duration_long $timing_basic $duration_long;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Colors
|
||||
// -----------------------------------------------------------------------------
|
||||
.txt_color_light {
|
||||
color: $color_brighter;
|
||||
}
|
||||
|
||||
.txt_color_dark {
|
||||
color: $color_darker;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Text
|
||||
// -----------------------------------------------------------------------------
|
||||
.txt_tiny {
|
||||
font-size: .5em !important;
|
||||
}
|
||||
|
||||
.txt_smaller {
|
||||
font-size: .75em !important;
|
||||
}
|
||||
|
||||
.txt_larger {
|
||||
font-size: 1.2em !important;
|
||||
}
|
||||
|
||||
.txt_huge {
|
||||
font-size: 3em !important;
|
||||
}
|
||||
|
||||
.txt_hero {
|
||||
font-size: $size_hero;
|
||||
}
|
||||
|
||||
.txt_center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.txt_right {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.txt_left {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.txt_top {
|
||||
vertical-align: top !important;
|
||||
}
|
||||
|
||||
.txt_bottom {
|
||||
vertical-align: bottom !important;
|
||||
}
|
||||
|
||||
.txt_white {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.txt_black {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.txt_gradient {
|
||||
background: linear-gradient(165deg, $alpha_color 30%, $bravo_color 45%, $charlie_color 50%, $delta_color, $echo_color 80%, $foxtrot_color);
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
272
global/_config.scss
Normal file
272
global/_config.scss
Normal file
|
|
@ -0,0 +1,272 @@
|
|||
// Default configuration
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
// TEXT
|
||||
// ------------------------------------------------------------------------------
|
||||
$size_text_basic: 17px !default;
|
||||
$size_text_print: 10pt !default;
|
||||
|
||||
$line_basic: 1;
|
||||
|
||||
// $i: 1;
|
||||
// @while $i < 7 {
|
||||
// %head_#{$i} { width: 2em * $i; }
|
||||
// $i: $i + 1;
|
||||
// }
|
||||
// $head_sizes: (h1: 3.1em, h2: 2.5em, h3: 1.8em, h4: 1.35em);
|
||||
//
|
||||
// @each $head, $size in $head_sizes {
|
||||
// #{$head} {
|
||||
// font-size: $size;
|
||||
// }
|
||||
// }
|
||||
|
||||
// $head_sizes: (
|
||||
// basic: (
|
||||
// 'h1': ('font-size': 24),
|
||||
// 'h2': ('font-size': 20),
|
||||
// 'h3': ('font-size': 19),
|
||||
// 'h4': ('font-size': 18),
|
||||
// 'h5': ('font-size': 17),
|
||||
// 'h6': ('font-size': 16),
|
||||
// ),
|
||||
// print: (
|
||||
// 'h1': ('font-size': 48),
|
||||
// 'h2': ('font-size': 40),
|
||||
// 'h3': ('font-size': 31),
|
||||
// 'h4': ('font-size': 25),
|
||||
// 'h5': ('font-size': 20),
|
||||
// 'h6': ('font-size': 16),
|
||||
// ),
|
||||
// );
|
||||
|
||||
$size_head_1: 3.1em !default;
|
||||
$size_head_2: 2.5em !default;
|
||||
$size_head_3: 1.8em !default;
|
||||
$size_head_4: 1.35em !default;
|
||||
|
||||
$size_text_1: 1em;
|
||||
$size_text_2: 20;
|
||||
|
||||
$size_hero: $size_head_1 * 3;
|
||||
|
||||
$line_text_basic: 1.28 !default;
|
||||
$line_text_mono: 1.1 !default;
|
||||
$line_head_basic: $line_text_basic !default;
|
||||
|
||||
$family_text_basic: #{'Roboto', 'Segoe UI', 'Liberation Sans', 'Source Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif, sans} !default;
|
||||
$family_text_print: #{'Times New Roman', times} !default;
|
||||
$family_text_mono: #{'Courier New', monospace} !default;
|
||||
$family_text_card: #{'Trebuchet MS', 'Roboto', 'Segoe UI', 'Liberation Sans', 'Source Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif, sans} !default;
|
||||
$family_head_basic: $family_text_basic !default;
|
||||
|
||||
|
||||
|
||||
// COLORS
|
||||
// ------------------------------------------------------------------------------
|
||||
$color_palette: (
|
||||
alpha: #fad803,
|
||||
bravo: #d30a51,
|
||||
charlie: #273f8b,
|
||||
delta: #b7e0f0,
|
||||
echo: #52bed1,
|
||||
foxtrot: #0c85ff
|
||||
) !default;
|
||||
|
||||
@include addDefaultColors;
|
||||
|
||||
$color_diff_basic: 12% !default;
|
||||
$color_diff_tiny: 4% !default;
|
||||
$color_diff_double: $color_diff_basic * 2;
|
||||
|
||||
$color_darkest: black !default;
|
||||
$color_brightest: white !default;
|
||||
|
||||
$color_text_basic: black !default;
|
||||
$color_back_basic: #808080 !default;
|
||||
$color_border_basic: lighten($color_text_basic, $color_diff_basic) !default;
|
||||
$color_front_basic: white !default;
|
||||
|
||||
$color_medium: lighten($color_darkest, 50%);
|
||||
$color_dark: lighten($color_darkest, $color_diff_double);
|
||||
$color_darker: darken($color_back_basic, $color_diff_basic);
|
||||
$color_brighter: lighten($color_back_basic, $color_diff_basic);
|
||||
$color_bright: darken($color_brightest, $color_diff_double);
|
||||
|
||||
$color_head_basic: $color_text_basic !default;
|
||||
$color_link_basic: $delta_color !default;
|
||||
$color_highlight_basic: $color_front_basic !default;
|
||||
$color_action_basic: $foxtrot_color !default;
|
||||
|
||||
|
||||
// default shadow colors
|
||||
// $shadow_color: fade-out($color_medium, 0.5);
|
||||
|
||||
$color_list: ();
|
||||
|
||||
@each $key, $value in $color_palette {
|
||||
$map: ();
|
||||
$map: map-merge($map, ($key: createColorMap($value, 15%, 0.5)) );
|
||||
$color_list: map-merge($color_list, $map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// LAYOUT
|
||||
// ------------------------------------------------------------------------------
|
||||
$box_sizing: border-box !default;
|
||||
|
||||
$z_heaven: 100 !default;
|
||||
$z_top: 10 !default;
|
||||
$z_basic: 1 !default;
|
||||
$z_earth: -100 !default;
|
||||
|
||||
$width_basic: 96% !default;
|
||||
$width_small: 80% !default;
|
||||
$width_medium: 60% !default;
|
||||
$width_large: 48% !default;
|
||||
$width_aside_basic: 20% !default;
|
||||
|
||||
$space_tiny: 1px !default;
|
||||
$space_basic: $space_tiny * 8 !default;
|
||||
$space_half: $space_basic / 2;
|
||||
$space_double: $space_basic * 2;
|
||||
$space_small: $space_basic * 4;
|
||||
$space_medium: $space_basic * 8;
|
||||
$space_large: $space_basic * 16;
|
||||
|
||||
$margin_basic: $space_basic 0 !default;
|
||||
$margin_double: $space_double 0 !default;
|
||||
$margin_io: 0 $space_small 0 0 !default;
|
||||
|
||||
$padding_basic: calc(#{$space_basic} - 3px) $space_basic !default;
|
||||
$padding_link: calc(#{$space_basic} - 1px) calc(#{$space_basic} * 2) !default;
|
||||
|
||||
$indent_basic: 2em !default;
|
||||
|
||||
$border_basic: $space_tiny solid $color_border_basic;
|
||||
$border_dotted: $space_tiny dotted $color_border_basic;
|
||||
$width_border_basic: $space_tiny !default;
|
||||
$width_border_4: $width_border_basic * 4;
|
||||
$width_border_8: $width_border_basic * 8;
|
||||
|
||||
$radius_basic: $space_tiny * 2 !default;
|
||||
|
||||
|
||||
|
||||
// IO
|
||||
// ------------------------------------------------------------------------------
|
||||
$io_input_list:
|
||||
'input[type="text"]',
|
||||
'input[type="number"]',
|
||||
'input[type="color"]',
|
||||
'input[type="range"]',
|
||||
'input[type="date"]',
|
||||
'input[type="time"]',
|
||||
'input[type="datetime-local"]',
|
||||
'input[type="month"]',
|
||||
'input[type="week"]',
|
||||
'input[type="email"]',
|
||||
'input[type="password"]',
|
||||
'input[type="tel"]',
|
||||
'input[type="url"]',
|
||||
'input[type="search"]',
|
||||
'input:not([type])';
|
||||
|
||||
$io_date_list:
|
||||
'.io_input[type="date"]',
|
||||
'.io_input[type="time"]',
|
||||
'.io_input[type="datetime-local"]',
|
||||
'.io_input[type="month"]',
|
||||
'.io_input[type="week"]';
|
||||
|
||||
$io_button_list:
|
||||
'button',
|
||||
'input[type="button"]',
|
||||
// 'input[type="file"]',
|
||||
'input[type="reset"]',
|
||||
'input[type="image"]',
|
||||
'input[type="submit"]';
|
||||
|
||||
$io_focus_list:
|
||||
'a[href]',
|
||||
'area[href]',
|
||||
'button:not([disabled])',
|
||||
'input:not([disabled])',
|
||||
'select:not([disabled])',
|
||||
'textarea:not([disabled])',
|
||||
'*[tabindex]';
|
||||
|
||||
$color_text_io: lighten($color_text_basic, $color_diff_basic) !default;
|
||||
$color_text_button: $color_text_basic !default;
|
||||
$color_back_io: darken($color_front_basic, $color_diff_basic) !default;
|
||||
$color_back_button: $color_darker !default;
|
||||
$color_border_io: $color_front_basic !default;
|
||||
$color_border_button: $color_dark !default;
|
||||
|
||||
$width_border_io: $space_tiny * 2 !default;
|
||||
$border_io: $width_border_io solid $color_border_io;
|
||||
$border_io_dotted: $width_border_io dotted $color_border_io;
|
||||
|
||||
$shadow_basic: inset 0 1px 3px rgba($color_darkest, 0.06);
|
||||
$shadow_focus: $shadow_basic, 0 0 5px adjust-color($color_action_basic, $lightness: -5%, $alpha: -0.3);
|
||||
|
||||
|
||||
|
||||
// ANIMATIONS
|
||||
// ------------------------------------------------------------------------------
|
||||
$duration_basic: 250ms !default;
|
||||
$duration_double: $duration_basic * 2;
|
||||
$duration_long: 2s !default;
|
||||
$timing_basic: ease-out !default;
|
||||
|
||||
|
||||
|
||||
// HARDWARE BREAKPOINTS
|
||||
// ------------------------------------------------------------------------------
|
||||
$screen_tiny: 768px;
|
||||
$screen_small: 1024px;
|
||||
$screen_medium: 1280px;
|
||||
$screen_large: 1440px;
|
||||
$screen_huge: 1680px;
|
||||
$screen_gigantic: 1920px;
|
||||
|
||||
|
||||
|
||||
// VENDOR PREFIX
|
||||
// ------------------------------------------------------------------------------
|
||||
$prefix_defaults: -moz- -webkit- -o- -ms- '';
|
||||
$webkit_support: -webkit- '';
|
||||
$moz_support: -moz- '';
|
||||
$ms_support: -ms- '';
|
||||
$moz_webkit_support: -moz- -webkit- '';
|
||||
$moz_ms_support: -moz- -ms- '';
|
||||
$webkit_ms_support: -webkit- -ms- '';
|
||||
|
||||
|
||||
|
||||
// SYMBOLS
|
||||
// ------------------------------------------------------------------------------
|
||||
$icons: (
|
||||
glass: "\f000",
|
||||
music: "\f001",
|
||||
search: "\f002",
|
||||
envelope-o: "\f003",
|
||||
heart: "\f004"
|
||||
);
|
||||
|
||||
@each $name, $icon in $icons {
|
||||
.sym_#{$name}::before {
|
||||
content: $icon;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// USER AGENT
|
||||
// ------------------------------------------------------------------------------
|
||||
$no_agent_focus: true;
|
||||
|
||||
@include overrideUserAgent;
|
||||
60
global/_typography.scss
Normal file
60
global/_typography.scss
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
// Basic styles
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
%basic {
|
||||
font-family: $family_text_basic;
|
||||
font-size: $size_text_1;
|
||||
line-height: $line_text_basic;
|
||||
}
|
||||
|
||||
%basic_mono {
|
||||
font-family: $family_text_mono;
|
||||
font-size: $size_text_1;
|
||||
line-height: $line_text_mono;
|
||||
}
|
||||
|
||||
%basic_print {
|
||||
font-family: $family_text_print;
|
||||
font-size: $size_text_1;
|
||||
line-height: $line_text_basic;
|
||||
}
|
||||
|
||||
%head_all {
|
||||
color: $color_head_basic;
|
||||
font-family: $family_head_basic;
|
||||
line-height: $line_head_basic;
|
||||
}
|
||||
|
||||
%head_1 {
|
||||
font-size: $size_head_1;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
%head_2 {
|
||||
font-size: $size_head_2;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
%head_3 {
|
||||
font-size: $size_head_3;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
%head_4 {
|
||||
font-size: $size_head_4;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
%basic_button {
|
||||
@extend %basic;
|
||||
}
|
||||
|
||||
%solo {
|
||||
@extend %basic;
|
||||
}
|
||||
|
||||
%short {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis; // vendor
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue