hippie/source/style/modules/demo/_demo_module.scss
Stephan 8b81ed92e1 demo.5
* removed double underscore (__) separators in class names
* more LF CR to LF
* new scss config variables
* some little style changes
2018-10-01 21:10:58 +02:00

230 lines
4.2 KiB
SCSS

.demo__intro {
@extend .sec_main_center;
@extend .sec_main_status;
}
.demo__status {
@extend .sec_main_status;
position: relative;
min-height: 50vh;
border-color: $foxtrot_color;
h1:first-of-type {
margin-top: 0;
font-weight: bold;
}
@media (max-height: 512px) {
.pos_abs {
position: static !important;
}
}
}
.demo__header {
padding: $double_space;
nav {
ul {
margin: 0;
}
}
}
.header_fancy {
background-color: transparentize($bravo_color, 0.4);
nav {
a {
background-color: transparentize($alpha_color, 0.4);
color: $alpha_color;
&:active,
&:focus,
&:hover {
background-color: rgba($brightest_color, 0.2);
color: $brightest_color;
}
}
}
}
.header_fix {
position: relative;
top: 0;
left: 0;
width: 100%;
background-color: transparentize($charlie_color, 0.4);
nav {
a {
&:active,
&:focus,
&:hover {
background-color: rgba($brightest_color, 0.2);
color: $brightest_color;
}
}
}
}
.demo__footer {
width: 100%;
// height: 128px;
padding: $double_space 0;
background-color: $dark_color;
color: $bright_color;
nav {
a {
color: $brightest_color;
}
}
}
.demo__sprite_down {
width: 32px;
height: 32px;
background-image: url(../art/sprites.png);
background-position: -32px 0;
}
.demo__sprite_up {
width: 32px;
height: 64px;
background-image: url(../art/sprites.png);
background-position: 0 0;
}
.demo__sprite_meta {
width: 32px;
height: 32px;
background-image: url(../art/sprites.png);
background-position: -32px 32px;
}
.demo__avatar {
img {
opacity: 1;
width: 128px;
height: auto;
min-width: 128px;
min-height: 128px;
border-radius: 50%;
background-color: $delta_color;
}
}
.demo__flag {
height: 40vh;
}
.demo__credits {
margin: $space_3 0 $basic_space 0;
}
.demo__button_32 {
width: 32px;
height: 32px;
}
.demo__queries > p {
padding: $basic_padding;
}
.query_phoneUp {
@include forPhoneUp {background-color: rgba($basic_front_color, 0.2)};
}
.query_phoneOnly {
@include forPhoneOnly { background-color: rgba($basic_front_color, 0.2); }
}
.query_tabletPortaitOnly {
@include forTabletPortraitOnly { background-color: rgba($basic_front_color, 0.2); }
}
.query_tabletPortraitUp {
@include forTabletPortraitUp { background-color: rgba($basic_front_color, 0.2); }
}
.query_tabletLandscapeOnly {
@include forTabletLandscapeOnly { background-color: rgba($basic_front_color, 0.2); }
}
.query_tabletLandscapeUp {
@include forTabletLandscapeUp { background-color: rgba($basic_front_color, 0.2); }
}
.query_desktopOnly {
@include forDesktopOnly { background-color: rgba($basic_front_color, 0.2); }
}
.query_desktopUp {
@include forDesktopUp { background-color: rgba($basic_front_color, 0.2); }
}
.query_bigDesktopUp {
@include forBigDesktopUp { background-color: rgba($basic_front_color, 0.2); }
}
.demo__query_example {
@include goingLarge($screen_tiny/1px) {background-color: $alpha_color; }
@include goingLarge($screen_small/1px) {background-color: $bravo_color; }
@include goingLarge($screen_medium/1px) {background-color: $charlie_color; }
@include goingLarge($screen_large/1px) {background-color: $delta_color; }
@include goingLarge($screen_huge/1px) {background-color: $echo_color; }
@include goingLarge($screen_gigantic/1px) {background-color: $foxtrot_color; }
margin-bottom: $space_3;
padding: $space_3;
text-align: center;
&:after {
@extend code;
@include goingLarge($screen_tiny/1px) {
& { content: '768px'; }
}
@include goingLarge($screen_small/1px) {
& { content: '1024px'; }
}
@include goingLarge($screen_medium/1px) {
& { content: '1280px'; }
}
@include goingLarge($screen_huge/1px) {
& { content: '1680px'; }
}
@include goingLarge($screen_gigantic/1px) {
& { content: '1920px'; }
}
content: '< 768px';
padding: $basic_padding;
border-radius: $basic_corner_radius;
color: $brightest_color;
background-color: rgba($basic_front_color, 0.2);
}
}
// Index
// -----------------------------------------------------------------------------
.wrap {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.hello {
flex: 0 1 auto;
ul {
padding: 1em 5em;
background-color: rgba(black, 0.25);
}
}