2
0
MasterPassword/platform-independent/web/css/main.css
Michael Ziminsky (Z) 1541dc5fcc Web client refactor and enhancement
General cleanup and removed jquery dependency
2018-10-14 11:59:38 -07:00

161 lines
2.6 KiB
CSS

@import url(https://fonts.googleapis.com/css?family=Flamenco:300|Exo+2:400,100,900);
/**** BASE STYLE ****/
* {
font: inherit;
color: inherit;
text-align: center;
}
html {
background: radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 8px 9px;
background-color: #161616;
background-size: 16px 16px;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
background: radial-gradient(transparent 16%, black);
width: 100%;
min-height: 100%;
padding: 0;
margin: 0;
clear: both;
font-family: 'Exo 2',
"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica,
Arial, "Lucida Grande", sans-serif;
color: #DDD;
}
/**** LAYOUT ****/
.flex {
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
justify-content: space-between;
}
.flex-row {
flex-direction: row;
justify-content: space-evenly;
}
.flex-row > * {
width: 20%;
}
.flex-row label {
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
}
.flex-row label > input,
.flex-row label > select {
width: 100%;
}
.small {
font-size: 1.25rem;
}
.form > button,
#spinner {
font-size: 8rem;
background: none;
border: none;
}
#main {
font-size: 2rem;
width: 67%;
font-weight: lighter;
}
.form,
.form > * {
width: 100%;
margin: 1ex 0;
}
#main .form {
display: none;
}
#main .form.active {
display: flex;
}
.form > h1 {
font-size: 6rem;
padding: 0;
margin: 0;
margin-bottom: .5ex;
}
header,
footer {
font-size: 0.8rem;
margin: .5rem 0;
}
input,
select {
background: rgba(0, 0, 0, .3);
border: 1px solid #000;
border-radius: 4px;
height: 2em;
}
input:focus,
select:focus,
button:focus,
button:hover {
outline: none;
box-shadow: 0 0 50px #333;
}
option {
background: black;
}
#spinner {
display: none;
height: 1.5em;
}
#main.working .form > button {
display: none;
}
#main.working #spinner {
display: block;
}
#sitePassword {
margin: 0;
font-size: 4rem;
padding: 1rem;
border: solid 1px gray;
}
#sitePassword:empty {
display: none;
}
#error {
color: red;
}