2
0
MasterPassword/_sass/_layout.scss

399 lines
9.6 KiB
SCSS
Raw Permalink Normal View History

2017-05-28 19:34:07 +00:00
@import url('https://fonts.googleapis.com/css?family=Rubik:300,400|Rubik+Mono+One');
html, body {
width: 100%;
height: 100%;
font-family: 'Rubik', sans-serif;
font-weight: 300;
text-align: justify;
}
body * {
/*outline: 1px solid rgba(255, 0, 0, 0.5);/**/
}
h1 {
margin: 0;
font-family: 'Rubik Mono One', sans-serif;
2018-04-18 15:54:30 +00:00
font-size: 2em;
2017-05-28 19:34:07 +00:00
text-align: center;
}
h2 {
2018-04-16 21:17:16 +00:00
margin: 2em 0 1em;
2017-05-28 19:34:07 +00:00
font-size: 2em;
font-weight: 400;
text-align: center;
img {
display: block;
2018-05-07 13:24:00 +00:00
width: auto;
2018-04-16 21:17:16 +00:00
height: 5em;
2017-05-28 19:34:07 +00:00
margin: auto;
2018-04-16 21:17:16 +00:00
padding: 0 1ex;
border-bottom: 4px solid black;
box-shadow: none;
}
input {
height: 1em;
2017-05-28 19:34:07 +00:00
}
}
h3 {
margin: 2em 0 1em;
font-size: 1.5em;
font-weight: 400;
}
2018-06-21 15:28:21 +00:00
h4 {
}
h5 {
margin: 0;
font-size: 0.8em;
text-align: center;
color: rgba(200, 200, 200, 1);
}
2017-05-28 19:34:07 +00:00
hr {
margin: 2em -2em 1em;
}
a, a:link, a:visited, a:hover {
color: inherit;
}
q {
font-style: italic;
}
nav {
display: flex;
font-weight: 400;
text-align: center;
2018-04-25 20:17:24 +00:00
@media screen and (min-width: 1024px) {
font-size: 1.8em;
}
2017-05-28 19:34:07 +00:00
&>* {
2018-05-07 13:21:20 +00:00
flex: 2;
2017-05-28 19:34:07 +00:00
.popup {
display: none;
}
}
}
2021-04-06 13:36:36 +00:00
#spectre {
display: flex;
align-items: center;
justify-content: center;
height: 2em;
transition: all .38s ease-in 0s;
background: #0E3345 url("https://spectre.app/images/iphone.png") no-repeat 107% 53%;
color: #41A0A0;
border-bottom: 1px solid #173D50;
&:hover {
height: 5em;
}
p {
margin: 0;
}
a, a:link, a:visited, a:hover {
color: #F0FFFF;
}
}
2017-05-28 19:34:07 +00:00
header, section {
width: 100%;
}
header {
display: flex;
2017-06-04 13:35:27 +00:00
position: relative;
2017-05-28 19:34:07 +00:00
overflow: hidden;
2018-04-19 19:49:04 +00:00
min-height: 40%;
2017-05-28 19:34:07 +00:00
flex-direction: column;
justify-content: stretch;
align-items: stretch;
2018-04-20 03:17:08 +00:00
.hero {
2018-04-20 03:34:42 +00:00
position: absolute;
2018-04-20 04:24:44 +00:00
z-index: -1;
2018-04-20 03:34:42 +00:00
left: 0;
right: 0;
top: 0;
bottom: -70px; /* This is to deal with some kind of weird paroller bug that gives us blank space at the bottom otherwise. */
2018-04-20 03:17:08 +00:00
background: black url('../img/hero_main.jpg') center center no-repeat;
background-size: cover;
2017-06-04 13:35:27 +00:00
}
2018-04-20 03:17:08 +00:00
&[data-hero=ios] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_ios.jpg');
2017-06-04 13:35:27 +00:00
}
2018-04-20 03:17:08 +00:00
&[data-hero=android] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_android.jpg');
2017-06-04 13:35:27 +00:00
}
2018-04-20 03:17:08 +00:00
&[data-hero=mac] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_mac.jpg');
2017-06-04 13:35:27 +00:00
}
2018-04-20 03:17:08 +00:00
&[data-hero=desktop] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_desktop.jpg');
2017-06-04 13:35:27 +00:00
}
2018-04-20 03:17:08 +00:00
&[data-hero=cli] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_cli.jpg');
2018-04-20 03:17:08 +00:00
}
&[data-hero=web] .hero {
2018-04-20 03:34:42 +00:00
background-image: url('../img/hero_web.jpg');
2017-06-04 13:35:27 +00:00
}
2017-05-28 19:34:07 +00:00
h1 {
height: 1em;
color: white;
text-align: center;
}
nav:first-child {
2021-04-06 13:36:36 +00:00
position: absolute;
2018-04-25 20:17:24 +00:00
padding: 0 20px;
2018-04-16 21:17:16 +00:00
margin: 0;
left: 0;
right: 0;
2017-05-28 19:34:07 +00:00
2018-04-16 21:17:16 +00:00
background: rgba(0, 0, 0, 0.8);
2017-05-28 19:34:07 +00:00
color: white;
2018-04-25 20:17:24 +00:00
@media screen and (min-width: 1024px) {
padding: 0 100px;
}
2017-05-28 19:34:07 +00:00
&>*:first-child {
text-align: left;
font-variant: small-caps;
font-weight: 300;
}
&>*:last-child {
text-align: right;
font-variant: small-caps;
font-weight: 300;
}
}
nav:last-child {
align-content: space-evenly;
color: white;
2018-04-16 21:17:16 +00:00
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);
2017-05-28 19:34:07 +00:00
&>*.active, &>*:hover, &:hover>*:hover {
2018-04-16 21:17:16 +00:00
background: rgba(255, 255, 255, 0.6);
2017-05-28 19:34:07 +00:00
border-bottom: 3px solid;
}
&>*, &:hover>* {
transition: all 0.3s;
background: rgba(255, 255, 255, 0.0);
border-bottom: 3px solid transparent;
border-radius: 6px 6px 0 0;
}
}
}
2018-04-16 21:17:16 +00:00
header.large, section {
min-height: 90%;
}
2017-05-28 19:34:07 +00:00
section {
box-sizing: border-box;
2018-04-25 20:17:24 +00:00
padding: 2em 20px;
2017-05-28 19:34:07 +00:00
font-size: 1.2em;
2018-04-25 20:17:24 +00:00
video {
2018-05-07 13:24:00 +00:00
margin: 1ex 2%;
width: 96%;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
object-fit: contain;
box-sizing: border-box;
}
2018-04-25 20:17:24 +00:00
@media screen and (min-width: 1024px) {
padding: 2em 100px;
}
2017-05-28 19:34:07 +00:00
}
2018-04-18 16:18:58 +00:00
footer {
2018-04-25 20:17:24 +00:00
padding: 2em 20px;
2018-04-18 16:18:58 +00:00
2018-06-21 15:28:21 +00:00
border-top: 1px solid rgba(200, 200, 200, 1);
2018-04-18 16:18:58 +00:00
background: rgba(240, 240, 240, 1);
2018-04-25 20:17:24 +00:00
@media screen and (min-width: 1024px) {
padding: 2em 100px;
}
2018-04-19 19:49:04 +00:00
& > div {
display: flex;
& > div {
flex: 1;
ul {
list-style: none;
}
2018-04-18 16:18:58 +00:00
}
}
2018-04-19 19:49:04 +00:00
p {
font-size: smaller;
2018-06-21 15:28:21 +00:00
color: rgba(180, 180, 180, 1);
2018-04-19 19:49:04 +00:00
}
2018-04-18 16:18:58 +00:00
}
2018-04-16 21:17:16 +00:00
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);
}
2018-04-18 15:54:30 +00:00
input[type=button] {
cursor: pointer;
}
2018-04-16 21:17:16 +00:00
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;
}
}
2018-04-18 15:54:30 +00:00
.widget_calculator table {
2018-04-16 21:17:16 +00:00
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;
}
}
}
2018-04-18 15:54:30 +00:00
.widget_gallery {
box-shadow: 0 0 1px black;
border-radius: 4px;
& > ul {
display: flex;
list-style: none;
justify-content: space-around;
li {
height: 100px;
label {
display: block;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 1em;
background: rgba(240, 240, 240, 1);
box-shadow: 0 0 2px black;
border-radius: 4px;
cursor: pointer;
&:hover {
background: rgba(200, 200, 200, 1);
}
img {
display: block;
width: 100%;
height: 100%;
margin: 0;
box-shadow: none;
}
}
}
}
input[type=radio] {
display: none;
& + div {
display:none;
margin: 1px;
padding: 2em;
background: rgba(240, 240, 240, 1);
}
&:checked + div {
display:block;
}
}
2017-05-28 19:34:07 +00:00
}
2018-04-18 15:54:30 +00:00
.widget_test ul {
2018-04-25 20:17:24 +00:00
margin: 0 8px;
2018-04-16 21:17:16 +00:00
list-style: none;
2018-04-18 15:54:30 +00:00
li {
border-left: 4px solid rgba(200, 200, 200, 1);
}
2018-04-16 21:17:16 +00:00
2018-04-18 15:54:30 +00:00
label {
font-size: 1.2em;
font-weight: 400;
2017-05-28 19:34:07 +00:00
}
2018-04-18 15:54:30 +00:00
input[type=checkbox] {
& + label + div {
display:none;
2018-04-25 20:17:24 +00:00
margin: 1ex 0;
padding: 1ex;
2018-04-18 15:54:30 +00:00
background: rgba(240, 240, 240, 1);
font-weight: 100;
2018-04-25 20:17:24 +00:00
@media screen and (min-width: 1024px) {
padding: 1ex 2em;
}
2018-04-18 15:54:30 +00:00
}
&:checked + label + div {
display:block;
}
2017-05-28 19:34:07 +00:00
}
}
2018-04-18 15:54:30 +00:00
.flex-auto {
flex: auto;
}