mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 07:19:28 -07:00
316 lines
5.5 KiB
CSS
316 lines
5.5 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
color: #444;
|
|
font-family: sans-serif;
|
|
background-color: #9dd3f0;
|
|
background-image: url('/assets/img/background.svg');
|
|
background-repeat: repeat;
|
|
background-size: 512px;
|
|
background-position: -16px -16px;
|
|
}
|
|
header {
|
|
height: 64px;
|
|
padding: 8px;
|
|
margin: 0 0 48px;
|
|
font-size: 1.1em;
|
|
background-color: #fff;
|
|
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
|
|
}
|
|
header .container {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
header a.logo {
|
|
display: inline-block;
|
|
height: 100%;
|
|
}
|
|
header .logo img {
|
|
height: 100%;
|
|
margin: 0 1em 0 0;
|
|
}
|
|
nav a {
|
|
margin-left: 12px;
|
|
}
|
|
footer {
|
|
color: #777;
|
|
margin: 64px 0;
|
|
padding: 0 32px;
|
|
}
|
|
footer a {
|
|
color: #777;
|
|
}
|
|
.container {
|
|
max-width: 720px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
.content {
|
|
padding: 16px 32px 32px;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
|
|
}
|
|
.spacer {
|
|
flex: 1;
|
|
}
|
|
.flex-column-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.flex-column {
|
|
flex: 1 0 250px;
|
|
}
|
|
.bigBtn {
|
|
display: inline-block;
|
|
margin-bottom: 12px;
|
|
padding: 6px 12px;
|
|
color: #fff;
|
|
font-size: 1.1em;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
background: #3f9acc;
|
|
background: linear-gradient(0deg, #3892c2 0%, #6abae5 100%);
|
|
border: 0;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
.bigBtn:hover {
|
|
color: #fff;
|
|
background-color: #72bde6;
|
|
background: linear-gradient(0deg, #4da4d2 0%, #82c5ea 100%);
|
|
}
|
|
.full-width {
|
|
width: 100% !important;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 24px 0;
|
|
color: #222;
|
|
/* background-color: #9dd3f0; */
|
|
background-color: #fff;
|
|
text-align: center;
|
|
cursor: default;
|
|
}
|
|
h1::after {
|
|
content: "";
|
|
display: block;
|
|
width: 100%;
|
|
height: 4px;
|
|
margin-top: 12px;
|
|
background: linear-gradient(90deg, #8b76f2 0%, #6abae5 100%);
|
|
border-radius: 2px;
|
|
}
|
|
h2, h3 {
|
|
margin-top: 32px;
|
|
color: #222;
|
|
cursor: default;
|
|
}
|
|
h2 {
|
|
padding-right: 32px;
|
|
}
|
|
h2::after {
|
|
content: "";
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
/* background: linear-gradient(90deg, #8b76f2 0%, #3892c2 50%, #6abae5 100%); */
|
|
background: linear-gradient(90deg, #3892c2 0%, #6abae5 100%);
|
|
border-radius: 1px;
|
|
}
|
|
p {
|
|
line-height: 1.4em;
|
|
font-size: 1.1em;
|
|
}
|
|
a {
|
|
color: #3f9acc;
|
|
}
|
|
a.bigBtn {
|
|
margin-right: 8px;
|
|
}
|
|
ul {
|
|
list-style: "- ";
|
|
}
|
|
code {
|
|
display: block;
|
|
padding: 8px;
|
|
background-color: #eee;
|
|
border: solid 1px #ddd;
|
|
user-select: all;
|
|
word-break: break-all;
|
|
}
|
|
textarea {
|
|
width: 100%;
|
|
height: 128px;
|
|
resize: vertical;
|
|
font-size: 0.9rem;
|
|
}
|
|
input[type="text"] {
|
|
margin: 0 12px 12px 0;
|
|
width: 45%;
|
|
font-size: 0.9rem;
|
|
}
|
|
input[type="radio"] {
|
|
vertical-align: sub;
|
|
}
|
|
input[type="submit"] {
|
|
width: 100%;
|
|
}
|
|
input[type="submit"][disabled="true"] {
|
|
cursor: default;
|
|
pointer-events: none;
|
|
opacity: 0.3;
|
|
}
|
|
select {
|
|
margin: 0 0 16px 0;
|
|
}
|
|
.green, a.proofUrl.proofUrl--verified {
|
|
color: #499539;
|
|
}
|
|
.red {
|
|
color: red;
|
|
}
|
|
.label {
|
|
display: inline-block;
|
|
margin: 0 0 8px;
|
|
}
|
|
.modes {
|
|
display: none;
|
|
}
|
|
.modes.modes--visible {
|
|
display: block;
|
|
}
|
|
|
|
.container--profile {
|
|
margin-top: 64px;
|
|
}
|
|
.container--profile .content {
|
|
padding-top: 32px;
|
|
font-size: 1.2em;
|
|
}
|
|
.container--profile footer {
|
|
text-align: center;
|
|
}
|
|
|
|
.guides {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.guides__section {
|
|
flex: 1 0 250px;
|
|
}
|
|
.guides__section a {
|
|
line-height: 1.8em;
|
|
}
|
|
|
|
#profileHeader {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
#profileAvatar {
|
|
width: 100%;
|
|
max-width: 128px;
|
|
border-radius: 100%;
|
|
margin-right: 32px;
|
|
}
|
|
#profileName {
|
|
font-size: 1.6em;
|
|
font-weight: bold;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
white-space: wrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.profileDataItem {
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
.profileDataItem--separator {
|
|
margin-top: 1em;
|
|
font-weight: bold;
|
|
}
|
|
.profileDataItem__label {
|
|
display: inline-block;
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 32px;
|
|
padding: 0 8px;
|
|
max-width: 20%;
|
|
color: #777;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.profileDataItem__value {
|
|
display: inline-block;
|
|
flex: 1;
|
|
min-height: 32px;
|
|
max-width: 100%;
|
|
padding: 0 8px;
|
|
}
|
|
.profileDataItem__value a {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
margin-right: 8px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
a.proofUrl {
|
|
color: #777;
|
|
}
|
|
a.proofQR {
|
|
line-height: 0;
|
|
background-color: #499539;
|
|
border-radius: 2px;
|
|
}
|
|
a.proofQR:hover {
|
|
background-color: #6abb5a;
|
|
}
|
|
|
|
#qrcode {
|
|
display: flex;
|
|
justify-content: center;
|
|
max-width: 100%;
|
|
margin: 32px auto;
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
#profileHeader {
|
|
flex-direction: column;
|
|
}
|
|
#profileAvatar {
|
|
margin: 0;
|
|
}
|
|
#profileName {
|
|
font-size: 1.2em;
|
|
}
|
|
.profileDataItem {
|
|
flex-direction: column;
|
|
margin-bottom: 8px;
|
|
}
|
|
.profileDataItem__label {
|
|
max-width: 100%;
|
|
min-height: 28px;
|
|
text-align: left;
|
|
}
|
|
.profileDataItem__value {
|
|
min-height: 28px;
|
|
}
|
|
.profileDataItem--noLabel .profileDataItem__label {
|
|
display: none;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 100%;
|
|
}
|
|
}
|