keyoxide-web/static/styles.css

387 lines
7.9 KiB
CSS
Raw Normal View History

2020-07-30 04:05:11 -06:00
/*
Copyright (C) 2020 Yarmo Mackenbach
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer network,
you should also make sure that it provides a way for users to get its source.
For example, if your program is a web application, its interface could display
a "Source" link that leads users to an archive of the code. There are many
ways you could offer source, and different solutions will be better for different
programs; see section 13 for the specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary. For
more information on this, and how to apply and follow the GNU AGPL, see <https://www.gnu.org/licenses/>.
*/
2020-06-25 10:01:06 -06:00
* {
box-sizing: border-box;
}
body {
margin: 0;
2020-07-21 16:30:54 -06:00
color: #444;
font-family: sans-serif;
2020-07-11 11:33:56 -06:00
background-color: #9dd3f0;
2020-08-07 17:06:20 -06:00
background-image: url('/static/img/background.svg');
2020-07-11 11:33:56 -06:00
background-repeat: repeat;
background-size: 512px;
background-position: -16px -16px;
2020-06-25 10:01:06 -06:00
}
header {
2020-07-15 06:03:50 -06:00
height: 64px;
padding: 8px;
2020-06-25 10:01:06 -06:00
margin: 0 0 48px;
font-size: 1.1em;
background-color: #fff;
2020-07-11 11:33:56 -06:00
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
2020-06-25 10:01:06 -06:00
}
2020-06-25 12:24:04 -06:00
header .container {
display: flex;
2020-07-15 06:03:50 -06:00
align-items: center;
height: 100%;
}
header a.logo {
display: inline-block;
height: 100%;
}
header .logo img {
height: 100%;
margin: 0 1em 0 0;
2020-06-25 12:24:04 -06:00
}
2020-06-26 02:51:01 -06:00
nav a {
2020-06-25 12:24:04 -06:00
margin-left: 12px;
}
2020-06-25 10:01:06 -06:00
footer {
color: #777;
margin: 64px 0;
2020-06-26 16:50:21 -06:00
padding: 0 32px;
2020-08-20 08:38:34 -06:00
font-size: 0.9em;
overflow-wrap: break-word;
2020-06-25 10:01:06 -06:00
}
2020-07-11 11:33:56 -06:00
footer a {
color: #777;
}
2020-06-25 10:01:06 -06:00
.container {
max-width: 720px;
2020-06-25 10:01:06 -06:00
width: 100%;
margin: 0 auto;
}
.content {
padding: 16px 32px 32px;
background-color: #fff;
2020-07-11 11:33:56 -06:00
border-radius: 8px;
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
2020-06-25 10:01:06 -06:00
}
2020-06-25 12:24:04 -06:00
.spacer {
flex: 1;
}
2020-07-21 16:30:54 -06:00
.flex-column-container {
display: flex;
flex-wrap: wrap;
}
.flex-column {
flex: 1 0 250px;
}
2020-06-25 12:28:32 -06:00
.bigBtn {
2020-06-25 12:31:57 -06:00
display: inline-block;
2020-06-25 14:49:08 -06:00
margin-bottom: 12px;
2020-07-21 16:30:54 -06:00
padding: 6px 12px;
2020-06-25 15:31:20 -06:00
color: #fff;
2020-07-21 16:30:54 -06:00
font-size: 1.1em;
2020-06-25 12:28:32 -06:00
text-transform: uppercase;
text-decoration: none;
2020-07-21 16:30:54 -06:00
background: #3f9acc;
background: linear-gradient(0deg, #3892c2 0%, #6abae5 100%);
2020-06-25 15:31:20 -06:00
border: 0;
border-radius: 8px;
2020-06-25 12:28:32 -06:00
cursor: pointer;
}
.bigBtn:hover {
2020-06-25 15:31:20 -06:00
color: #fff;
background-color: #72bde6;
2020-07-21 16:30:54 -06:00
background: linear-gradient(0deg, #4da4d2 0%, #82c5ea 100%);
2020-06-25 12:28:32 -06:00
}
2020-08-28 02:54:55 -06:00
.fancyBtn {
display: inline-block;
margin-bottom: 12px;
padding: 8px 24px;
color: #fff;
font-size: 1.1em;
text-transform: uppercase;
text-decoration: none;
font-weight: bold;
background: #8b76f2;
/* background: linear-gradient(90deg, #8b76f2 0%, #6abae5 100%); */
background: linear-gradient(90deg, #6957c4 0%, #43afea 100%);
border: 0;
border-radius: 64px;
cursor: pointer;
}
.fancyBtn:hover {
color: #fff;
background-color: #a595f4;
/* background: linear-gradient(90deg, #a595f4 0%, #93d9ff 100%); */
/* background: linear-gradient(90deg, #6957c4 0%, #43afea 100%); */
background: linear-gradient(90deg, #8b76f2 0%, #6abae5 100%);
}
2020-07-22 07:37:38 -06:00
.full-width {
2020-07-23 03:07:49 -06:00
width: 100% !important;
2020-07-22 07:37:38 -06:00
}
2020-06-25 10:01:06 -06:00
h1 {
2020-07-21 16:30:54 -06:00
margin: 0 0 24px 0;
color: #222;
2020-07-11 11:33:56 -06:00
/* background-color: #9dd3f0; */
background-color: #fff;
2020-06-25 10:01:06 -06:00
text-align: center;
2020-06-29 15:45:27 -06:00
cursor: default;
2020-06-25 10:01:06 -06:00
}
2020-07-21 16:30:54 -06:00
h1::after {
content: "";
display: block;
width: 100%;
height: 4px;
margin-top: 12px;
background: linear-gradient(90deg, #8b76f2 0%, #6abae5 100%);
border-radius: 2px;
}
2020-06-25 12:31:57 -06:00
h2, h3 {
2020-06-27 07:00:22 -06:00
margin-top: 32px;
2020-07-21 16:30:54 -06:00
color: #222;
2020-06-29 15:45:27 -06:00
cursor: default;
2020-06-25 11:43:44 -06:00
}
2020-07-21 16:30:54 -06:00
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 {
2020-07-21 16:30:54 -06:00
line-height: 1.4em;
font-size: 1.1em;
}
2020-06-25 10:01:06 -06:00
a {
color: #3f9acc;
}
2020-08-28 02:54:55 -06:00
a:hover {
color: #6957c4;
}
2020-06-25 12:31:57 -06:00
a.bigBtn {
margin-right: 8px;
}
2020-08-27 17:37:20 -06:00
a.header-anchor {
text-decoration: none;
2020-08-28 02:54:55 -06:00
opacity: 0.5;
}
a.header-anchor:hover {
opacity: 1;
2020-08-27 17:37:20 -06:00
}
2020-07-21 16:30:54 -06:00
ul {
list-style: "- ";
}
2020-08-07 17:06:20 -06:00
pre {
white-space: pre-wrap;
}
2020-06-28 12:14:31 -06:00
code {
display: block;
padding: 8px;
background-color: #eee;
border: solid 1px #ddd;
user-select: all;
2020-08-07 17:06:20 -06:00
word-break: break-word;
/* word-break: break-all; */
2020-06-28 12:14:31 -06:00
}
2020-06-25 10:01:06 -06:00
textarea {
width: 100%;
height: 128px;
resize: vertical;
2020-07-02 14:50:09 -06:00
font-size: 0.9rem;
2020-06-25 10:01:06 -06:00
}
2020-06-25 14:49:08 -06:00
input[type="text"] {
margin: 0 12px 12px 0;
2020-06-29 12:57:29 -06:00
width: 45%;
2020-07-02 14:50:09 -06:00
font-size: 0.9rem;
2020-06-25 14:49:08 -06:00
}
2020-06-25 10:01:06 -06:00
input[type="radio"] {
vertical-align: sub;
}
2020-06-25 12:31:57 -06:00
input[type="submit"] {
width: 100%;
}
input[type="submit"][disabled="true"] {
cursor: default;
pointer-events: none;
opacity: 0.3;
}
2020-07-05 05:50:25 -06:00
select {
margin: 0 0 16px 0;
}
2020-07-23 02:36:42 -06:00
.green, a.proofUrl.proofUrl--verified {
color: #499539;
2020-06-25 10:01:06 -06:00
}
.red {
color: red;
}
.label {
display: inline-block;
margin: 0 0 8px;
}
.modes {
display: none;
}
.modes.modes--visible {
display: block;
}
2020-06-26 16:50:21 -06:00
.container--profile {
margin-top: 64px;
}
.container--profile .content {
padding-top: 32px;
font-size: 1.2em;
}
.container--profile footer {
text-align: center;
}
2020-07-16 10:22:47 -06:00
.guides {
display: flex;
flex-wrap: wrap;
}
.guides__section {
flex: 1 0 250px;
}
.guides__section a {
line-height: 1.8em;
}
2020-06-30 00:32:15 -06:00
#profileHeader {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 32px;
}
#profileAvatar {
width: 100%;
max-width: 128px;
2020-06-30 00:32:15 -06:00
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;
2020-06-30 00:32:15 -06:00
}
2020-06-26 16:50:21 -06:00
.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%;
font-size: 0.9em;
line-height: 1.6em;
2020-06-26 16:50:21 -06:00
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%;
2020-07-22 07:37:38 -06:00
margin-right: 8px;
2020-06-26 16:50:21 -06:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
a.proofUrl {
2020-06-26 16:50:21 -06:00
color: #777;
}
2020-07-23 02:36:42 -06:00
a.proofQR {
line-height: 0;
background-color: #499539;
border-radius: 2px;
}
a.proofQR:hover {
background-color: #6abb5a;
2020-06-26 16:50:21 -06:00
}
2020-07-02 14:39:56 -06:00
2020-07-22 07:47:00 -06:00
#qrcode {
display: flex;
justify-content: center;
2020-07-02 14:39:56 -06:00
max-width: 100%;
2020-07-22 07:50:00 -06:00
margin: 32px auto;
2020-07-02 14:39:56 -06:00
}
2020-06-26 16:50:21 -06:00
@media (max-width: 680px) {
#profileHeader {
flex-direction: column;
}
#profileAvatar {
margin: 0;
}
#profileName {
font-size: 1.2em;
}
2020-06-26 16:50:21 -06:00
.profileDataItem {
flex-direction: column;
margin-bottom: 8px;
2020-06-26 16:50:21 -06:00
}
.profileDataItem__label {
max-width: 100%;
min-height: 28px;
text-align: left;
}
.profileDataItem__value {
min-height: 28px;
}
.profileDataItem--noLabel .profileDataItem__label {
display: none;
}
2020-07-02 14:50:09 -06:00
input[type="text"] {
width: 100%;
}
2020-06-26 16:50:21 -06:00
}