mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-21 04:12:01 +02:00
z-index (1-4) fixed
I read this https://hackernoon.com/you-know-a-site-has-its-shit-together-when-8ee21040d0bc#.pcjrgzlnv
This commit is contained in:
committed by
GitHub
parent
b3fc435b6a
commit
457a585e9b
@@ -53,7 +53,6 @@
|
|||||||
|
|
||||||
----------------------------------------------------------------------------------- */
|
----------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
/*=========================================
|
/*=========================================
|
||||||
0. CSS Reset & Normalize
|
0. CSS Reset & Normalize
|
||||||
=========================================== */
|
=========================================== */
|
||||||
@@ -325,8 +324,8 @@ input:focus,
|
|||||||
textarea:focus,
|
textarea:focus,
|
||||||
button{
|
button{
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
-webkit-transition: all 0.30s ease-in-out;
|
-webkit-transition: all .3s ease-out;
|
||||||
-moz-transition: all 0.30s ease-in-out;
|
transition: all .3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
p a:active {
|
p a:active {
|
||||||
@@ -342,6 +341,7 @@ nav a[rel="external"] em,
|
|||||||
width: 1px;
|
width: 1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Layer/Box Shadow*/
|
/*Layer/Box Shadow*/
|
||||||
.shadow {
|
.shadow {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -365,6 +365,7 @@ position: relative;
|
|||||||
right: 2.4rem;
|
right: 2.4rem;
|
||||||
left: auto;
|
left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=== 1.1 WRAP/CONTAINER === */
|
/*=== 1.1 WRAP/CONTAINER === */
|
||||||
|
|
||||||
.wrap,header nav, footer nav {
|
.wrap,header nav, footer nav {
|
||||||
@@ -472,13 +473,11 @@ pre code {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=== 1.2 Animations ================
|
/*=== 1.2 Animations ================
|
||||||
Just 3 basic animations:
|
Just 3 basic animations:
|
||||||
.fadeIn, .fadeInUp, .zoomIn.
|
.fadeIn, .fadeInUp, .zoomIn.
|
||||||
https://github.com/daneden/animate.css*/
|
https://github.com/daneden/animate.css*/
|
||||||
|
|
||||||
|
|
||||||
@-webkit-keyframes fadeIn {
|
@-webkit-keyframes fadeIn {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -616,7 +615,6 @@ footer,
|
|||||||
transition: all 0.4s ease-in-out;
|
transition: all 0.4s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=== 1.3 Responsive Media (videos, iframe...) === */
|
/*=== 1.3 Responsive Media (videos, iframe...) === */
|
||||||
|
|
||||||
.embed {
|
.embed {
|
||||||
@@ -835,7 +833,6 @@ h2 svg, h3 svg, h4 svg {
|
|||||||
.text-intro svg,.wall p svg,.try svg {
|
.text-intro svg,.wall p svg,.try svg {
|
||||||
margin-top: -.4rem;
|
margin-top: -.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flexblock li h2 svg,.flexblock li h3 svg {margin-top: 0;
|
.flexblock li h2 svg,.flexblock li h3 svg {margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -927,7 +924,6 @@ li[class*="bg-"],p[class*="bg-"] {
|
|||||||
|
|
||||||
h1 [class*="bg-"],h2 [class*="bg-"],h3 [class*="bg-"] {
|
h1 [class*="bg-"],h2 [class*="bg-"],h3 [class*="bg-"] {
|
||||||
padding: .4rem .8rem;
|
padding: .4rem .8rem;
|
||||||
z-index: -100;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=========================================
|
/*=========================================
|
||||||
@@ -979,8 +975,8 @@ p.text-subtitle svg {vertical-align: text-top;}
|
|||||||
/* -- Numbers (results, sales... 23,478,289 iphones) -- */
|
/* -- Numbers (results, sales... 23,478,289 iphones) -- */
|
||||||
|
|
||||||
.text-data {
|
.text-data {
|
||||||
font-size: 7.2rem;
|
font-size: 6.4rem;
|
||||||
line-height: 8.8rem;
|
line-height: 8rem;
|
||||||
margin-bottom: .8rem;
|
margin-bottom: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1187,9 +1183,10 @@ footer img {
|
|||||||
header,
|
header,
|
||||||
section footer {
|
section footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
/* hover/visibility */
|
||||||
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
section footer {
|
section footer {
|
||||||
@@ -1200,7 +1197,6 @@ section footer {
|
|||||||
/*=== Hide header[role=banner] === */
|
/*=== Hide header[role=banner] === */
|
||||||
|
|
||||||
/*desktop only? Add @media (min-width: 1025px)*/
|
/*desktop only? Add @media (min-width: 1025px)*/
|
||||||
|
|
||||||
header[role=banner] {
|
header[role=banner] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
@@ -1210,7 +1206,6 @@ header[role=banner]:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|
||||||
footer .alignleft, footer .alignright {
|
footer .alignleft, footer .alignright {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -1508,14 +1503,16 @@ clear:both;
|
|||||||
|
|
||||||
#navigation {
|
#navigation {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 9999;
|
|
||||||
width: 24.4rem;
|
width: 24.4rem;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
/* hover/visibility */
|
||||||
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navigation {
|
#navigation {
|
||||||
-webkit-animation: fadeIn 6s;
|
-webkit-animation: fadeIn 6s;
|
||||||
animation: fadeIn 6s;
|
animation: fadeIn 6s;
|
||||||
@@ -1543,7 +1540,6 @@ opacity: 1;
|
|||||||
|
|
||||||
#navigation a {
|
#navigation a {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
|
||||||
width: 4rem;
|
width: 4rem;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -1726,6 +1722,7 @@ Blocks Links li>a = .flexblock.blink (.blink required)
|
|||||||
.flexblock li {
|
.flexblock li {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
/*float: left;*/
|
||||||
width: 100%;/* more control */
|
width: 100%;/* more control */
|
||||||
-webkit-transition: .3s;
|
-webkit-transition: .3s;
|
||||||
transition: .3s;
|
transition: .3s;
|
||||||
@@ -1744,6 +1741,8 @@ transform: translateY(-.2rem);
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media (min-width:600px) {
|
@media (min-width:600px) {
|
||||||
.flexblock li {
|
.flexblock li {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
@@ -1870,7 +1869,7 @@ div + ul, div + ol{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.clients li:hover {
|
.clients li:hover {
|
||||||
z-index: 9999;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
/*==================================================
|
/*==================================================
|
||||||
6.3 flexblock.steps <ul class="flexblock steps">
|
6.3 flexblock.steps <ul class="flexblock steps">
|
||||||
@@ -2128,9 +2127,7 @@ margin-top: .8rem;
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
z-index: 9999;
|
z-index: 2;
|
||||||
/*z-index: -1;
|
|
||||||
opacity: 0;*/
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -2160,8 +2157,6 @@ li .overlay h2 {
|
|||||||
|
|
||||||
li:hover .overlay {
|
li:hover .overlay {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
/*opacity: 1;
|
|
||||||
z-index: 9999;*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*===============================================
|
/*===============================================
|
||||||
@@ -2171,7 +2166,7 @@ li:hover .overlay {
|
|||||||
.flexblock.plans>li {
|
.flexblock.plans>li {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
z-index: 100;
|
z-index: 1;
|
||||||
margin-bottom: 4.8rem;
|
margin-bottom: 4.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2239,12 +2234,12 @@ li:hover .overlay {
|
|||||||
.plans>li:hover,
|
.plans>li:hover,
|
||||||
.plans>li:nth-child(2) {
|
.plans>li:nth-child(2) {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 150;
|
z-index: 2;
|
||||||
transform: scale(1.08);
|
transform: scale(1.08);
|
||||||
}
|
}
|
||||||
.plans:hover li:nth-child(2):not(:hover) {
|
.plans:hover li:nth-child(2):not(:hover) {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 100;
|
z-index: 1;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2402,6 +2397,7 @@ CV / News
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --- Header CTA --- */
|
/* --- Header CTA --- */
|
||||||
|
|
||||||
.cta-cover {
|
.cta-cover {
|
||||||
@@ -2763,12 +2759,13 @@ object-fit to re-frame images rather than just stretch and resize them === */
|
|||||||
|
|
||||||
[class*="card-"] figure figcaption {
|
[class*="card-"] figure figcaption {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
padding: .8rem 2.4rem;
|
padding: .8rem 2.4rem;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
line-height: 2.4rem;
|
line-height: 2.4rem;
|
||||||
|
/* Visibility */
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="card-"] figure figcaption.cover {
|
[class*="card-"] figure figcaption.cover {
|
||||||
@@ -2821,7 +2818,6 @@ cite:before {
|
|||||||
content: "\2014 \2009";
|
content: "\2014 \2009";
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote.wall:before {
|
blockquote.wall:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -6.4rem;
|
top: -6.4rem;
|
||||||
@@ -2849,7 +2845,6 @@ blockquote.wall:before {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=========================================
|
/*=========================================
|
||||||
12. Avatars - uifaces.com
|
12. Avatars - uifaces.com
|
||||||
=========================================== */
|
=========================================== */
|
||||||
@@ -2983,14 +2978,16 @@ button {
|
|||||||
button[type="submit"] {
|
button[type="submit"] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*input:hover, textarea:hover, select:hover {
|
/*input:hover, textarea:hover, select:hover {
|
||||||
-webkit-transform: translateY(-.2rem);
|
-webkit-transform: translateY(-.2rem);
|
||||||
transform: translateY(-.2rem);
|
transform: translateY(-.2rem);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
input:focus,
|
input:focus,
|
||||||
textarea:focus,
|
textarea:focus,
|
||||||
select:focus {
|
select:focus {
|
||||||
border-width: 2px;
|
border-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
@@ -3146,8 +3143,9 @@ button:disabled:hover {
|
|||||||
15. SAFARI BUGS (flex-wrap)
|
15. SAFARI BUGS (flex-wrap)
|
||||||
Solution: stackoverflow.com/questions/34250282/flexbox-safari-bug-flex-wrap
|
Solution: stackoverflow.com/questions/34250282/flexbox-safari-bug-flex-wrap
|
||||||
=========================================== */
|
=========================================== */
|
||||||
|
|
||||||
.flexblock:before, .flexblock:after,
|
.flexblock:before, .flexblock:after,
|
||||||
.grid:before,.grid:after {
|
.grid:before,.grid:after, .cta:before,.cta:after{
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user