drop.chapril.org-firefoxsend/app/main.css

397 lines
6.4 KiB
CSS
Raw Normal View History

2019-06-14 20:30:43 +02:00
@tailwind base;
html {
line-height: 1.15;
}
2018-10-26 01:49:22 +02:00
@tailwind components;
2019-01-16 21:38:43 +01:00
:not(input) {
user-select: none;
}
2018-10-25 04:07:10 +02:00
:root {
--violet-gradient: linear-gradient(
-180deg,
2022-08-09 11:12:32 +02:00
rgb(144 89 255 / 80%) 0%,
rgb(144 89 255 / 40%) 100%
);
}
2018-10-25 04:07:10 +02:00
a {
color: inherit;
text-decoration: none;
}
2019-02-21 00:58:44 +01:00
a:focus {
outline: 1px dotted grey;
}
2019-02-11 22:48:06 +01:00
body {
background-image: url('../assets/bg.svg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
2019-03-12 21:35:25 +01:00
overflow-x: hidden;
2019-02-11 22:48:06 +01:00
}
2019-01-16 21:38:43 +01:00
.btn {
2022-04-12 15:58:58 +02:00
@apply bg-primary;
2019-01-16 21:38:43 +01:00
@apply text-white;
@apply cursor-pointer;
2019-02-22 22:59:57 +01:00
@apply py-4;
2019-01-16 21:38:43 +01:00
@apply px-6;
2019-05-03 18:26:10 +02:00
@apply font-semibold;
2018-10-25 04:07:10 +02:00
}
2019-01-16 21:38:43 +01:00
.btn:hover {
2022-04-12 15:58:58 +02:00
@apply bg-primary_accent;
2018-11-02 10:27:59 +01:00
}
2019-01-16 21:38:43 +01:00
.btn:focus {
2022-04-12 15:58:58 +02:00
@apply bg-primary_accent;
2018-10-25 04:07:10 +02:00
}
2018-10-30 03:06:15 +01:00
.checkbox {
@apply leading-normal;
@apply select-none;
}
.checkbox > input[type='checkbox'] {
@apply absolute;
@apply opacity-0;
}
.checkbox > label {
@apply cursor-pointer;
}
.checkbox > label::before {
2019-09-09 19:34:55 +02:00
/* @apply bg-grey-10; */
2022-08-09 11:00:43 +02:00
@apply border-default;
2018-10-30 03:06:15 +01:00
@apply rounded-sm;
content: '';
height: 1.5rem;
width: 1.5rem;
margin-right: 0.5rem;
float: left;
}
.checkbox > label:hover::before {
2022-04-12 15:58:58 +02:00
@apply border-primary;
2018-10-30 03:06:15 +01:00
}
.checkbox > input:focus + label::before {
2022-04-12 15:58:58 +02:00
@apply border-primary;
2018-10-30 03:06:15 +01:00
}
.checkbox > input:checked + label::before {
2022-04-12 15:58:58 +02:00
@apply bg-primary;
@apply border-primary;
2019-02-11 22:48:06 +01:00
2018-10-30 03:06:15 +01:00
background-image: url('../assets/lock.svg');
background-position: center;
background-size: 1.25rem;
background-repeat: no-repeat;
}
.checkbox > input:disabled + label {
cursor: auto;
}
.checkbox > input:disabled + label::before {
2022-04-12 15:58:58 +02:00
@apply bg-primary;
@apply border-primary;
2019-02-11 22:48:06 +01:00
2018-10-30 03:06:15 +01:00
background-image: url('../assets/lock.svg');
background-position: center;
background-size: 1.25rem;
background-repeat: no-repeat;
cursor: auto;
}
2019-01-29 21:06:23 +01:00
details {
overflow: hidden;
}
details > summary::marker {
display: none;
}
details > summary > svg {
transition: all 0.25s cubic-bezier(0.07, 0.95, 0, 1);
}
2019-01-29 21:06:23 +01:00
details[open] {
overflow-y: auto;
}
details[open] > summary > svg {
transform: rotate(90deg);
}
footer li a:hover {
2019-01-29 21:06:23 +01:00
text-decoration: underline;
}
2019-01-16 21:38:43 +01:00
.feedback-link {
background-color: #000;
background-image: url('../assets/feedback.svg');
background-position: 0.125rem 0.25rem;
background-repeat: no-repeat;
background-size: 1.125rem;
color: #fff;
display: block;
font-size: 0.75rem;
line-height: 0.75rem;
padding: 0.375rem 0.375rem 0.375rem 1.25rem;
text-indent: 0.125rem;
white-space: nowrap;
2018-10-30 03:06:15 +01:00
}
2022-04-12 15:58:58 +02:00
.link-primary {
@apply text-primary;
2019-09-09 19:34:55 +02:00
}
2022-04-12 15:58:58 +02:00
.link-primary:hover {
@apply text-primary_accent;
2019-09-09 19:34:55 +02:00
}
2022-04-12 15:58:58 +02:00
.link-primary:focus {
@apply text-primary_accent;
2019-09-09 19:34:55 +02:00
}
2019-05-03 18:26:10 +02:00
.main-header img {
height: 32px;
2019-09-09 19:34:55 +02:00
width: auto;
2019-05-03 18:26:10 +02:00
}
2019-01-16 21:38:43 +01:00
.main {
display: flex;
2019-02-22 22:31:54 +01:00
position: relative;
2019-01-16 21:38:43 +01:00
max-width: 64rem;
width: 100%;
}
2018-11-02 10:27:59 +01:00
2019-01-16 21:38:43 +01:00
.main > section {
@apply bg-white;
2018-10-25 04:07:10 +02:00
}
2019-01-16 21:38:43 +01:00
#password-msg::after {
content: '\200b';
}
2019-01-16 21:38:43 +01:00
progress {
2019-09-09 19:34:55 +02:00
@apply bg-grey-30;
2019-01-16 21:38:43 +01:00
@apply rounded-sm;
@apply w-full;
@apply h-1;
}
2019-01-16 21:38:43 +01:00
progress::-webkit-progress-bar {
2019-09-09 19:34:55 +02:00
@apply bg-grey-30;
2019-01-16 21:38:43 +01:00
@apply rounded-sm;
@apply w-full;
@apply h-1;
}
2019-01-11 10:15:03 +01:00
2019-01-16 21:38:43 +01:00
progress::-webkit-progress-value {
2019-01-11 10:15:03 +01:00
/* stylelint-disable */
background-image: -webkit-linear-gradient(
-45deg,
transparent 20%,
2022-08-09 11:12:32 +02:00
rgb(255 255 255 / 40%) 20%,
rgb(255 255 255 / 40%) 40%,
2019-01-11 10:15:03 +01:00
transparent 40%,
transparent 60%,
2022-08-09 11:12:32 +02:00
rgb(255 255 255 / 40%) 60%,
rgb(255 255 255 / 40%) 80%,
2019-01-11 10:15:03 +01:00
transparent 80%
),
2022-04-12 15:58:58 +02:00
-webkit-linear-gradient(left, var(--color-primary), var(--color-primary));
2019-01-11 10:15:03 +01:00
/* stylelint-enable */
border-radius: 2px;
background-size: 21px 20px, 100% 100%, 100% 100%;
}
2019-01-16 21:38:43 +01:00
progress::-moz-progress-bar {
2019-01-11 10:15:03 +01:00
/* stylelint-disable */
background-image: -moz-linear-gradient(
135deg,
transparent 20%,
2022-08-09 11:12:32 +02:00
rgb(255 255 255 / 40%) 20%,
rgb(255 255 255 / 40%) 40%,
2019-01-11 10:15:03 +01:00
transparent 40%,
transparent 60%,
2022-08-09 11:12:32 +02:00
rgb(255 255 255 / 40%) 60%,
rgb(255 255 255 / 40%) 80%,
2019-01-11 10:15:03 +01:00
transparent 80%
),
2022-04-12 15:58:58 +02:00
-moz-linear-gradient(left, var(--color-primary), var(--color-primary));
2019-01-11 10:15:03 +01:00
/* stylelint-enable */
border-radius: 2px;
background-size: 21px 20px, 100% 100%, 100% 100%;
animation: animate-stripes 1s linear infinite;
}
@keyframes animate-stripes {
100% {
background-position: -21px 0;
}
}
2019-02-13 20:14:53 +01:00
select {
background-image: url('../assets/select-arrow.svg');
background-position: calc(100% - 0.75rem);
background-repeat: no-repeat;
}
2019-01-16 21:38:43 +01:00
@screen md {
2019-05-03 18:26:10 +02:00
.main-header img {
height: 48px;
width: auto;
}
2019-01-16 21:38:43 +01:00
.main {
@apply flex-1;
@apply self-center;
@apply items-center;
@apply m-auto;
@apply py-8;
2019-05-03 18:26:10 +02:00
max-height: 42rem;
2019-01-16 21:38:43 +01:00
width: calc(100% - 3rem);
}
2019-01-11 10:15:03 +01:00
}
2019-01-16 21:38:43 +01:00
2019-09-09 19:34:55 +02:00
@screen dark {
body {
@apply text-grey-10;
background-image: unset;
}
.btn {
2022-04-12 15:58:58 +02:00
@apply bg-primary;
2019-09-09 19:34:55 +02:00
@apply text-white;
}
.btn:hover {
2022-04-12 15:58:58 +02:00
@apply bg-primary_accent;
2019-09-09 19:34:55 +02:00
}
.btn:focus {
2022-04-12 15:58:58 +02:00
@apply bg-primary_accent;
2019-09-09 19:34:55 +02:00
}
2022-04-12 15:58:58 +02:00
.link-primary {
@apply text-primary;
2019-09-09 19:34:55 +02:00
}
2022-04-12 15:58:58 +02:00
.link-primary:hover {
@apply text-primary_accent;
2019-09-09 19:34:55 +02:00
}
2022-04-12 15:58:58 +02:00
.link-primary:focus {
@apply text-primary_accent;
2019-09-09 19:34:55 +02:00
}
.main > section {
@apply bg-grey-90;
}
@screen md {
.main > section {
2022-08-09 11:00:43 +02:00
@apply border-default;
2019-09-09 19:34:55 +02:00
@apply border-grey-80;
}
}
}
2019-01-16 21:38:43 +01:00
@tailwind utilities;
2019-01-17 01:18:23 +01:00
2019-02-11 22:48:06 +01:00
@responsive {
.shadow-light {
2022-08-09 11:12:32 +02:00
box-shadow: 0 0 8px 0 rgb(12 12 13 / 10%);
2019-02-11 22:48:06 +01:00
}
.shadow-big {
2022-08-09 11:12:32 +02:00
box-shadow: 0 12px 18px 2px rgb(34 0 51 / 4%),
0 6px 22px 4px rgb(7 48 114 / 12%), 0 6px 10px -4px rgb(14 13 26 / 12%);
2019-02-11 22:48:06 +01:00
}
}
2019-02-13 20:14:53 +01:00
2019-02-21 00:58:44 +01:00
@variants focus {
.outline {
outline: 1px dotted grey;
}
}
2019-02-13 20:14:53 +01:00
.word-break-all {
word-break: break-all;
line-break: anywhere;
2019-02-13 20:14:53 +01:00
}
.signin {
backface-visibility: hidden;
border-radius: 6px;
transition-property: transform, background-color;
transition-duration: 250ms;
transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
}
.signin:hover,
.signin:focus {
transform: scale(1.0625);
}
.signin:hover:active {
transform: scale(0.9375);
}
/* begin signin button color experiment */
2022-04-12 15:58:58 +02:00
.white-primary {
@apply border-primary;
@apply border-2;
2022-04-12 15:58:58 +02:00
@apply text-primary;
}
2022-04-12 15:58:58 +02:00
.white-primary:hover,
.white-primary:focus {
@apply bg-primary;
@apply text-white;
}
2022-04-12 15:58:58 +02:00
.primary {
@apply bg-primary;
@apply text-white;
}
.white-violet {
@apply border-violet;
@apply border-2;
@apply text-violet;
}
.white-violet:hover,
.white-violet:focus {
@apply bg-violet;
@apply text-white;
background-image: var(--violet-gradient);
}
.violet {
@apply bg-violet;
@apply text-white;
}
.violet:hover,
.violet:focus {
background-image: var(--violet-gradient);
}
/* end signin button color experiment */