keyoxide-web/static/styles.css

482 lines
8.8 KiB
CSS
Raw Normal View History

2021-03-01 07:01:34 -07:00
:root {
--grey-500: hsl(0, 0%, 50%);
--grey-600: hsl(0, 0%, 40%);
--grey-700: hsl(0, 0%, 30%);
--grey-900: hsl(0, 0%, 10%);
--green-300: hsl(110, 45%, 70%);
--green-400: hsl(110, 45%, 60%);
--green-600: hsl(110, 45%, 40%);
--red-400: hsl(10, 60%, 60%);
--blue-500: hsl(201, 80%, 59%);
--blue-700: hsl(201, 90%, 30%);
--purple-50: hsl(250, 30%, 98%);
--purple-100: hsl(250, 48%, 95%);
--purple-200: hsl(250, 48%, 90%);
--purple-300: hsl(250, 48%, 85%);
--purple-400: hsl(250, 48%, 70%);
--purple-500: hsl(250, 48%, 65%);
--purple-600: hsl(250, 48%, 60%);
--purple-700: hsl(250, 48%, 55%);
--purple-900: hsl(250, 38%, 45%);
--yellow-100: hsl(56, 100%, 95%);
--yellow-200: hsl(56, 100%, 90%);
--yellow-500: hsl(56, 100%, 65%);
}
2020-07-30 04:05:11 -06:00
2020-06-25 10:01:06 -06:00
* {
2021-03-01 07:01:34 -07:00
box-sizing: border-box;
2020-06-25 10:01:06 -06:00
}
body {
2021-03-01 07:01:34 -07:00
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 1.6rem 0 0;
line-height: 1.6rem;
font-family: sans-serif;
color: var(--grey-900);
/* background-color: var(--purple-100); */
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
2020-06-25 10:01:06 -06:00
header {
2021-03-01 07:01:34 -07:00
display: flex;
justify-content: center;
align-items: center;
2021-05-02 10:03:11 -06:00
margin: 0 1.6rem 1.6rem;
2021-03-01 07:01:34 -07:00
padding: 0.8rem;
/* background-color: var(--purple-50); */
border-radius: 16px;
2020-07-15 06:03:50 -06:00
}
header a.logo {
2021-03-01 07:01:34 -07:00
width: 64px;
margin: 0 0.8rem;
font-size: 1.6rem;
text-transform: uppercase;
text-decoration: none;
color: var(--purple-700);
2020-07-15 06:03:50 -06:00
}
2021-03-01 07:01:34 -07:00
header a.logo img {
width: 100%;
2020-06-25 12:24:04 -06:00
}
2021-03-01 07:01:34 -07:00
header .container {
display: flex;
}
header nav {
flex: 1;
display: flex;
align-items: center;
}
nav a.text {
font-size: 0.9em;
margin: 0;
padding: 0.5em 1em;
text-transform: uppercase;
text-decoration: none;
color: var(--purple-700);
border-radius: 4px;
}
nav a.text:hover {
color: #fff;
background-color: var(--purple-500);
}
main {
flex: 1;
margin: 0 1.6rem;
2020-06-25 12:24:04 -06:00
}
2020-06-25 10:01:06 -06:00
footer {
2021-03-01 07:01:34 -07:00
margin: 4.8rem 0 0;
padding: 0 1.6rem 1.6rem;
background-color: var(--purple-900);
color: var(--purple-200);
2020-07-22 07:37:38 -06:00
}
2020-06-25 10:01:06 -06:00
2021-03-01 07:01:34 -07:00
.container {
width: 100%;
max-width: 1440px;
margin: 0 auto;
2020-06-28 12:14:31 -06:00
}
2021-03-29 09:08:48 -06:00
.narrow {
2021-03-01 07:01:34 -07:00
width: 100%;
max-width: 720px;
margin: 0 auto;
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
section.profile .card, .demo .card {
2021-04-05 07:58:31 -06:00
padding-left: 0;
padding-right: 0;
2021-03-01 07:01:34 -07:00
background-color: transparent;
border: 0;
2021-05-02 10:03:11 -06:00
/* box-shadow: 0 0 0 transparent; */
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
section.profile p, .demo p {
/* margin: 0.8rem 0; */
font-size: 1.2rem;
2020-06-25 12:31:57 -06:00
}
2021-03-01 07:01:34 -07:00
.demo {
margin: 9.6rem auto;
}
2021-03-01 07:01:34 -07:00
.card {
margin: 0 0 1.6rem;
padding: 0 1.6rem;
background-color: #fff;
background-color: var(--purple-50);
border: 2px solid var(--purple-200);
2021-05-02 10:03:11 -06:00
/* box-shadow: 0 4px 12px var(--purple-100); */
2021-03-01 07:01:34 -07:00
}
.card--profileHeader {
display: flex;
flex-direction: column;
2021-03-01 07:01:34 -07:00
flex-wrap: wrap;
align-items: center;
gap: 24px;
2021-03-01 07:01:34 -07:00
/* text-align: center; */
}
.card--profileHeader p, .card--profileHeader small {
margin: 0;
2021-03-01 07:01:34 -07:00
}
.card--small-profile {
display: flex;
flex-direction: column;
padding-top: 1rem;
text-align: center;
border-radius: 4px;
}
.card--small-profile-dummy {
opacity: 0.5;
border: 0;
2021-05-02 10:03:11 -06:00
/* box-shadow: unset; */
2021-03-01 07:01:34 -07:00
}
.card--small-profile .name {
font-size: 1.4em;
/* font-weight: bold; */
}
.card--small-profile p {
margin-top: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2021-03-29 09:08:48 -06:00
2021-03-01 07:01:34 -07:00
}
.card--small-profile a {
display: block;
padding: 0.4rem 0.8rem;
/* color: #fff; */
text-decoration: none;
text-transform: uppercase;
background-color: #fff;
border: solid 1px var(--blue-700);
border-radius: 4px;
}
.card--small-profile a:hover {
/* background-color: rgba(255, 255, 255, 0.3); */
background-color: var(--blue-700);
color: #fff;
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
#profileName {
font-size: 1.6rem;
2021-03-01 07:01:34 -07:00
color: var(--grey-700);
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
#profileURLFingerprint {
font-size: 1rem;
margin: 0 0 1.2rem;
2020-06-25 10:01:06 -06:00
}
2021-03-01 07:01:34 -07:00
.hcards {
display: grid;
grid-gap: 1.6rem;
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
margin-bottom: 1.6rem;
}
.hcards--features {
text-align: center;
}
.hcards .card {
margin: 0;
}
.hcards--col-1-2, .hcards--col-2-1 {
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
}
.hcards--col-1-2 .card, .hcards--col-2-1 .card {
grid-column: 1 / 2;
}
@media screen and (min-width: 1024px) {
.hcards--max-3 {
grid-template-columns: 1fr 1fr 1fr;
}
.hcards--col-1-2, .hcards--col-2-1 {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (min-width: 720px) {
.hcards--col-2-1 .card:nth-of-type(1) {
grid-column: 1 / -2;
}
.hcards--col-2-1 .card:nth-of-type(2) {
grid-column: -2 / -1;
}
.hcards--col-1-2 .card:nth-of-type(1) {
grid-column: 1 / 2;
}
.hcards--col-1-2 .card:nth-of-type(2) {
grid-column: 2 / -1;
}
}
@media screen and (max-width: 640px) {
header {
flex-direction: column;
}
header .spacer {
display: none;
2021-03-01 07:01:34 -07:00
}
header a.logo {
margin-bottom: 1.6rem;
order: -1;
}
}
2021-03-01 07:01:34 -07:00
.spacer {
flex: 1;
}
2020-06-26 16:50:21 -06:00
2021-03-01 07:01:34 -07:00
.warning {
padding: calc(0.8rem - 2px) 0.8rem;
background-color: var(--yellow-200);
border: solid 2px var(--yellow-500);
2020-06-26 16:50:21 -06:00
}
2021-03-01 07:01:34 -07:00
.warning p:first-of-type {
margin-top: 0;
2020-06-26 16:50:21 -06:00
}
2021-03-01 07:01:34 -07:00
.warning p:last-of-type {
margin-bottom: 0;
2020-06-26 16:50:21 -06:00
}
kx-claim {
display: block;
margin: 12px 0;
2021-03-01 07:01:34 -07:00
}
.avatar {
display: inline-block;
min-width: 96px;
max-width: 128px;
line-height: 0;
2021-03-01 07:01:34 -07:00
text-align: center;
2020-06-30 00:32:15 -06:00
}
2021-03-01 07:01:34 -07:00
.avatar img {
width: 100%;
border-radius: 50%;
2020-06-30 00:32:15 -06:00
}
/* .buttons {
2021-03-01 07:01:34 -07:00
margin: 1.2rem 0;
}
.buttons a {
display: inline-block;
margin-right: 0.8rem;
padding: 6px 24px;
background-color: #eaeaea;
color: #333;
text-transform: uppercase;
text-decoration: none;
border-radius: 32px;
}
.buttons a:hover {
background-color: #ccc;
} */
2021-03-29 09:08:48 -06:00
.modes {
display: none;
}
.modes.modes--visible {
display: block;
}
2021-03-01 07:01:34 -07:00
h1 {
font-size: 1.6em;
margin: 3.2rem 0 1.6rem;
font-weight: normal;
2021-04-05 08:08:35 -06:00
color: var(--purple-700);
2021-03-01 07:01:34 -07:00
cursor: default;
2020-06-26 16:50:21 -06:00
}
2021-03-01 07:01:34 -07:00
h2 {
font-size: 1.4em;
margin: 3.2rem 0 1.6rem;
font-weight: normal;
2021-04-05 08:08:35 -06:00
color: var(--purple-700);
2021-03-01 07:01:34 -07:00
cursor: default;
}
h2 small {
margin-left: 0.8rem;
padding: 3px 6px;
2021-04-05 08:08:35 -06:00
background-color: var(--purple-600);
2021-03-01 07:01:34 -07:00
color: #fff;
border-radius: 4px;
}
h3 {
margin: 1.6rem 0;
font-size: 1.3em;
line-height: 1.6rem;
2021-03-30 08:22:03 -06:00
color: var(--grey-700);
2021-03-01 07:01:34 -07:00
font-weight: normal;
/* text-align: center; */
cursor: default;
}
h3 small {
margin-left: 0.8rem;
padding: 3px 6px;
background-color: var(--purple-400);
color: #fff;
border-radius: 4px;
}
h4 {
2021-03-30 08:22:03 -06:00
margin: 1.6rem 0;
font-size: 1em;
2021-03-01 07:01:34 -07:00
line-height: 1.6rem;
2021-03-30 08:22:03 -06:00
color: var(--grey-600);
/* color: var(--purple-700); */
font-weight: bold;
2021-03-01 07:01:34 -07:00
cursor: default;
}
h4 small {
margin-left: 0.8rem;
padding: 3px 6px;
background-color: var(--purple-400);
color: #fff;
border-radius: 4px;
}
2021-03-01 07:01:34 -07:00
p {
margin: 1.6rem 0;
2020-06-26 16:50:21 -06:00
}
2021-03-30 08:22:03 -06:00
p.warning {
padding: 8px;
background-color: #fffadc;
border: solid 1px #ffeea8;
}
2021-03-01 07:01:34 -07:00
a {
color: var(--blue-700);
2020-07-23 02:36:42 -06:00
}
2021-03-01 07:01:34 -07:00
ul {
padding-left: 1em;
list-style: '- ';
}
/* .bg--flare {
background: #f12711;
background: -webkit-linear-gradient(to right, #f5af19, #f12711);
background: linear-gradient(to right, #f5af19, #f12711);
} */
main h1:first-of-type {
margin-top: 1.6rem;
}
.long_form h2 {
/* margin-top: 3.2rem; */
/* font-size: 1rem; */
/* font-weight: bold; */
text-align: left;
2021-03-30 08:22:03 -06:00
/* color: var(--grey-700); */
2021-03-01 07:01:34 -07:00
}
footer h1 {
margin-bottom: 0.8rem;
color: var(--purple-200);
font-size: 1.2rem;
font-weight: bold;
/* border-bottom: solid 1px var(--purple-200); */
2020-06-26 16:50:21 -06:00
}
2021-03-01 07:01:34 -07:00
footer a {
color: var(--purple-100);
2021-01-07 08:44:33 -07:00
}
2021-03-01 07:01:34 -07:00
code {
2021-03-30 08:22:03 -06:00
padding: 2px 4px;
2021-03-01 07:01:34 -07:00
background-color: var(--purple-100);
border: 1px solid var(--purple-500);
2020-07-02 14:39:56 -06:00
}
2021-03-01 07:01:34 -07:00
pre {
padding: 8px 12px;
background-color: var(--purple-100);
border: 1px solid var(--purple-500);
2021-03-30 08:22:03 -06:00
overflow-x: auto;
2021-03-01 07:01:34 -07:00
line-height: 1.2rem;
2021-03-30 08:22:03 -06:00
font-size: 1rem;
2021-03-01 07:01:34 -07:00
}
pre code {
padding: 0;
background-color: 0px;
border: 0px;
2021-01-10 07:11:44 -07:00
}
2021-03-01 07:01:34 -07:00
textarea {
width: 100%;
height: 128px;
resize: vertical;
font-size: 0.9rem;
2020-06-26 16:50:21 -06:00
}
2021-03-01 07:01:34 -07:00
form {
margin: 0 0 5.6rem;
}
2021-03-29 09:08:48 -06:00
form label {
margin: 0 8px 0 0;
}
form .modesContainer {
margin: 16px 0;
}
form .modesContainer input {
margin: 0 8px 0 0;
}
2021-03-01 07:01:34 -07:00
form input[type="submit"] {
display: block;
/* width: 100%; */
padding: 0.4rem 0.8rem;
margin: 8px 8px 12px 0;
text-decoration: none;
text-transform: uppercase;
background-color: #fff;
border: solid 1px var(--blue-700);
border-radius: 4px;
cursor: pointer;
}
button {
2021-03-01 07:01:34 -07:00
padding: 0.4rem 0.8rem;
margin-right: 8px;
2021-03-01 07:01:34 -07:00
text-decoration: none;
text-transform: uppercase;
background-color: #fff;
border: solid 1px var(--blue-700);
border-radius: 4px;
cursor: pointer;
}
form input[type="submit"]:hover, button:hover {
2021-03-01 07:01:34 -07:00
background-color: var(--blue-700);
color: #fff;
2021-03-29 09:08:48 -06:00
}
.card--form form {
background-color: var(--purple-100) !important;
padding: 1rem;
}
2021-03-30 08:22:03 -06:00
dialog {
width: 100% !important;
max-width: 800px !important;
padding: 0 !important;
word-wrap: anywhere;
}
dialog > div {
padding: 1em;
}
dialog form[method="Dialog"] {
margin: 1em 0 0;
}
dialog form[method="Dialog"] input {
width: auto;
}
dialog p {
font-size: 1rem !important;
margin: 1rem 0;
}
dialog p:first-of-type {
margin-top: 0;
}
2021-03-31 07:11:12 -06:00
#qrcode {
display: block;
margin: 0 auto 16px;
}