Updates to new site layout.
This commit is contained in:
@@ -11,15 +11,21 @@ html, body {
|
||||
body * {
|
||||
/*outline: 1px solid rgba(255, 0, 0, 0.5);/**/
|
||||
}
|
||||
img {
|
||||
margin: 1ex 1em;
|
||||
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
h1 {
|
||||
margin: 0;
|
||||
|
||||
font-family: 'Rubik Mono One', sans-serif;
|
||||
font-size: 4em;
|
||||
font-size: 2.5em;
|
||||
text-align: center;
|
||||
}
|
||||
h2 {
|
||||
margin: 3em 0 2em;
|
||||
margin: 2em 0 1em;
|
||||
|
||||
font-size: 2em;
|
||||
font-weight: 400;
|
||||
@@ -27,8 +33,16 @@ h2 {
|
||||
|
||||
img {
|
||||
display: block;
|
||||
height: 4em;
|
||||
height: 5em;
|
||||
margin: auto;
|
||||
padding: 0 1ex;
|
||||
|
||||
border-bottom: 4px solid black;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
input {
|
||||
height: 1em;
|
||||
}
|
||||
}
|
||||
h3 {
|
||||
@@ -65,12 +79,12 @@ nav {
|
||||
}
|
||||
header, section {
|
||||
width: 100%;
|
||||
min-height: 90%;
|
||||
}
|
||||
header {
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 30%;
|
||||
|
||||
flex-direction: column;
|
||||
justify-content: stretch;
|
||||
@@ -88,32 +102,32 @@ header {
|
||||
}
|
||||
&::after {
|
||||
z-index: -2;
|
||||
background: url('../img/hero_ios.jpg') center top;
|
||||
opacity: 1;
|
||||
background: url('../img/hero_main.jpg') center top;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_ios::before {
|
||||
background: url('../img/hero_ios.jpg') center top;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_android::before {
|
||||
background: url('../img/hero_android.jpg') center center;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_mac::before {
|
||||
background: url('../img/hero_mac.jpg') center center;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_desktop::before {
|
||||
background: url('../img/hero_desktop.jpg') center bottom;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_cli::before {
|
||||
background: url('../img/hero_cli.jpg') center center;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
&.hero_web::before {
|
||||
background: url('../img/hero_web.jpg') center center;
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
h1 {
|
||||
height: 1em;
|
||||
@@ -122,8 +136,13 @@ header {
|
||||
text-align: center;
|
||||
}
|
||||
nav:first-child {
|
||||
margin: 0 2em;
|
||||
position: fixed;
|
||||
padding: 0 2em;
|
||||
margin: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
color: white;
|
||||
|
||||
&>*:first-child {
|
||||
@@ -140,11 +159,15 @@ header {
|
||||
nav:last-child {
|
||||
align-content: space-evenly;
|
||||
|
||||
color: black;
|
||||
color: white;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
text-shadow: 0 1px 1px white;
|
||||
text-shadow: 0 1px 1px black;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
|
||||
&>*.active, &>*:hover, &:hover>*:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-bottom: 3px solid;
|
||||
}
|
||||
&>*, &:hover>* {
|
||||
@@ -155,18 +178,89 @@ header {
|
||||
}
|
||||
}
|
||||
}
|
||||
header.large, section {
|
||||
min-height: 90%;
|
||||
}
|
||||
section {
|
||||
box-sizing: border-box;
|
||||
padding: 3em 100px;
|
||||
|
||||
font-size: 1.2em;
|
||||
}
|
||||
input {
|
||||
margin: 0 0.3ex;
|
||||
|
||||
font: inherit;
|
||||
background: rgba(240, 240, 240, 1);
|
||||
box-shadow: 0 0 1px black;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
input:hover {
|
||||
background: rgba(200, 200, 200, 1);
|
||||
}
|
||||
input[type=checkbox] {
|
||||
display: none;
|
||||
|
||||
& + label::before {
|
||||
display: inline-block;
|
||||
content: '';
|
||||
margin: 0 1ex;
|
||||
|
||||
background: rgba(240, 240, 240, 1);
|
||||
box-shadow: 0 0 1px black;
|
||||
border-radius: 4px;
|
||||
width: 1ex;
|
||||
height: 1ex;
|
||||
}
|
||||
&:checked + label::before {
|
||||
background: black;
|
||||
}
|
||||
}
|
||||
#calculator table {
|
||||
height: 200px;
|
||||
padding: 4px;
|
||||
margin: 1em auto;
|
||||
|
||||
background: rgba(200, 200, 200, 1);
|
||||
box-shadow: 0 1px 3px black;
|
||||
border-radius: 4px;
|
||||
|
||||
tr {
|
||||
height: 20%;
|
||||
|
||||
td, th {
|
||||
padding: 4px;
|
||||
}
|
||||
input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 1ex;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
.flex-auto {
|
||||
flex: auto;
|
||||
}
|
||||
.item_toggler {
|
||||
font-size: 1.2em;
|
||||
font-weight: 400;
|
||||
list-style: none;
|
||||
|
||||
border-left: 4px solid rgba(200, 200, 200, 1);
|
||||
|
||||
.toggle_item {
|
||||
display: none;
|
||||
margin: 1ex 0;
|
||||
padding: 1ex 2em;
|
||||
background: rgba(240, 240, 240, 1);
|
||||
|
||||
font-size: 0.83em;
|
||||
font-weight: 100;
|
||||
}
|
||||
input:checked ~ .toggle_item {
|
||||
display: block;
|
||||
|
Reference in New Issue
Block a user