2021-11-25 22:36:21 +01:00
|
|
|
// This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
2020-03-06 21:34:31 +01:00
|
|
|
|
2021-03-07 23:03:33 +01:00
|
|
|
@light: ~"(prefers-color-scheme: light)";
|
|
|
|
@dark: ~"(prefers-color-scheme: dark)";
|
2021-12-06 20:10:45 +01:00
|
|
|
@import "themes/@{theme}/logo.less";
|
|
|
|
|
|
|
|
:root {
|
|
|
|
@media @light {
|
|
|
|
color-scheme: light;
|
|
|
|
}
|
|
|
|
@media @dark {
|
|
|
|
color-scheme: dark;
|
|
|
|
}
|
|
|
|
}
|
2020-03-06 21:34:31 +01:00
|
|
|
|
2019-08-13 21:17:08 +02:00
|
|
|
* {
|
2021-02-15 21:48:26 +01:00
|
|
|
font-family: system-ui, sans-serif;
|
2021-03-07 23:03:33 +01:00
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
scrollbar-width: auto;
|
2021-03-07 23:03:33 +01:00
|
|
|
|
|
|
|
@media @light {
|
|
|
|
scrollbar-color: @text-light @bg-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
scrollbar-color: @text-dark @bg-dark;
|
|
|
|
}
|
2019-01-26 14:23:19 +01:00
|
|
|
}
|
|
|
|
|
2021-07-11 21:48:56 +02:00
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0px;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 20px;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
background-color: @bg-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
background-color: @bg-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
2019-02-11 19:26:31 +01:00
|
|
|
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-02-11 19:26:31 +01:00
|
|
|
}
|
|
|
|
|
2021-07-16 19:30:43 +02:00
|
|
|
.helpText {
|
2021-07-11 21:48:56 +02:00
|
|
|
margin: 5px 0px 0px 0px;
|
2021-03-07 19:06:32 +01:00
|
|
|
padding: 5px;
|
|
|
|
border-radius: 10px;
|
|
|
|
text-align: left;
|
2021-03-07 23:03:33 +01:00
|
|
|
|
|
|
|
@media @light {
|
|
|
|
background-color: @bgHelp-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
background-color: @bgHelp-dark;
|
|
|
|
}
|
2021-11-06 00:33:15 +01:00
|
|
|
|
|
|
|
& p {
|
|
|
|
margin-top: 0px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
2019-02-11 19:26:31 +01:00
|
|
|
}
|
|
|
|
|
2021-07-11 21:48:56 +02:00
|
|
|
#sideParams {
|
|
|
|
text-align: center;
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
|
2021-05-03 15:18:50 +02:00
|
|
|
#sideParams summary {
|
2019-02-11 19:26:31 +01:00
|
|
|
text-align: center;
|
2020-03-06 21:34:31 +01:00
|
|
|
margin-left: 20px;
|
2019-02-11 19:26:31 +01:00
|
|
|
}
|
|
|
|
|
2021-03-07 19:06:32 +01:00
|
|
|
#firstWrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
#qrCode {
|
|
|
|
max-width: 480px;
|
2021-12-06 20:53:23 +01:00
|
|
|
@width: 2px;
|
|
|
|
@lenght: 16px;
|
|
|
|
padding: @width;
|
|
|
|
|
|
|
|
&.needLightContrast {
|
|
|
|
@media @light {
|
|
|
|
background:
|
|
|
|
linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 0,
|
|
|
|
linear-gradient(to right, @borderQr-light @width, transparent 0px) 0 100%,
|
|
|
|
linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 0,
|
|
|
|
linear-gradient(to left, @borderQr-light @width, transparent 0px) 100% 100%,
|
|
|
|
linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 0 0,
|
|
|
|
linear-gradient(to bottom, @borderQr-light @width, transparent 0px) 100% 0,
|
|
|
|
linear-gradient(to top, @borderQr-light @width, transparent 0px) 0 100%,
|
|
|
|
linear-gradient(to top, @borderQr-light @width, transparent 0px) 100% 100%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: @lenght @lenght;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.needDarkContrast {
|
|
|
|
@media @dark {
|
|
|
|
background:
|
|
|
|
linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 0,
|
|
|
|
linear-gradient(to right, @borderQr-dark @width, transparent 0px) 0 100%,
|
|
|
|
linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 0,
|
|
|
|
linear-gradient(to left, @borderQr-dark @width, transparent 0px) 100% 100%,
|
|
|
|
linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 0 0,
|
|
|
|
linear-gradient(to bottom, @borderQr-dark @width, transparent 0px) 100% 0,
|
|
|
|
linear-gradient(to top, @borderQr-dark @width, transparent 0px) 0 100%,
|
|
|
|
linear-gradient(to top, @borderQr-dark @width, transparent 0px) 100% 100%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: @lenght @lenght;
|
|
|
|
}
|
|
|
|
}
|
2019-02-11 19:26:31 +01:00
|
|
|
}
|
2019-01-26 14:23:19 +01:00
|
|
|
|
2020-07-01 20:47:02 +02:00
|
|
|
.centered {
|
2020-03-06 21:34:31 +01:00
|
|
|
text-align: center;
|
2019-01-26 14:23:19 +01:00
|
|
|
}
|
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
.button {
|
2019-01-26 14:23:19 +01:00
|
|
|
padding: 3px 10px 3px 10px;
|
2020-03-06 21:34:31 +01:00
|
|
|
text-decoration: none;
|
2019-01-26 14:23:19 +01:00
|
|
|
}
|
|
|
|
|
2020-07-01 20:47:02 +02:00
|
|
|
main {
|
2020-03-06 21:34:31 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-02-11 19:26:31 +01:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2020-03-06 21:34:31 +01:00
|
|
|
width: 814px;
|
2021-07-11 21:48:56 +02:00
|
|
|
height: 100%;
|
2019-01-26 15:17:36 +01:00
|
|
|
}
|
|
|
|
|
2019-02-24 19:11:31 +01:00
|
|
|
header {
|
|
|
|
text-align: center;
|
2021-07-11 21:48:56 +02:00
|
|
|
padding-top: 12px;
|
2019-01-26 15:17:36 +01:00
|
|
|
margin: 0px;
|
2020-03-06 21:34:31 +01:00
|
|
|
height: 64px;
|
2021-07-16 19:26:31 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2019-02-24 19:11:31 +01:00
|
|
|
}
|
|
|
|
|
2021-12-06 20:10:45 +01:00
|
|
|
#linkTitles::before {
|
2020-03-06 21:34:31 +01:00
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
2021-12-06 20:10:45 +01:00
|
|
|
content: "";
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
@media @light {
|
|
|
|
background-image: var(--logo-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
background-image: var(--logo-dark);
|
|
|
|
}
|
2020-03-06 21:34:31 +01:00
|
|
|
}
|
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
#titles {
|
2020-03-06 21:34:31 +01:00
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin: 0px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2021-07-16 19:26:31 +02:00
|
|
|
font-size: 29px;
|
2020-03-06 21:34:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 22px;
|
|
|
|
}
|
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
#linkTitles {
|
2020-03-06 21:34:31 +01:00
|
|
|
text-align: left;
|
|
|
|
justify-content: center;
|
|
|
|
text-decoration: none;
|
2019-02-24 19:11:31 +01:00
|
|
|
display: flex;
|
2019-08-13 21:17:08 +02:00
|
|
|
flex-direction: row;
|
2019-02-24 19:11:31 +01:00
|
|
|
}
|
|
|
|
|
2021-11-06 00:24:27 +01:00
|
|
|
form {
|
2021-07-11 21:48:56 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#showOnlyQR, #downloadQR {
|
2020-03-06 21:34:31 +01:00
|
|
|
margin-top: 30px;
|
2019-01-26 14:23:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.param {
|
|
|
|
padding: 10px;
|
2019-01-26 15:17:36 +01:00
|
|
|
padding-left: 0px;
|
|
|
|
margin-left: 0px;
|
|
|
|
padding-right: 0px;
|
|
|
|
margin-right: 0px;
|
2019-01-26 14:23:19 +01:00
|
|
|
}
|
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
.inputColorContainer {
|
2019-08-13 21:17:08 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
::selection {
|
2021-03-07 23:03:33 +01:00
|
|
|
|
|
|
|
@media @light {
|
|
|
|
color: @bg-light;
|
|
|
|
background-color: @text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @bg-dark;
|
|
|
|
background-color: @text-dark;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2021-07-11 21:48:56 +02:00
|
|
|
label[for=txt] summary {
|
|
|
|
margin-left: 22px;
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
#colors {
|
2019-08-13 21:17:08 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
text-align: center;
|
2020-03-06 21:34:31 +01:00
|
|
|
|
|
|
|
& .param {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
.metaText {
|
2020-10-25 18:02:57 +01:00
|
|
|
padding: 6px;
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
& a, a:visited {
|
2021-03-07 19:06:32 +01:00
|
|
|
text-decoration: underline;
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
2021-03-07 23:03:33 +01:00
|
|
|
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
footer {
|
|
|
|
font-size: 14px;
|
2021-07-11 21:48:56 +02:00
|
|
|
margin-top: 10px;
|
2020-10-25 18:02:57 +01:00
|
|
|
text-align: left;
|
|
|
|
}
|
2020-10-12 18:55:36 +02:00
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
header, footer {
|
|
|
|
flex-shrink: 0;
|
2020-03-06 21:34:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#info {
|
|
|
|
font-size: 16px;
|
|
|
|
bottom: 20px;
|
|
|
|
right: 20px;
|
|
|
|
margin: 0px;
|
|
|
|
|
|
|
|
& h3 {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: normal;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 21:17:08 +02:00
|
|
|
/* Inputs */
|
|
|
|
|
2020-10-25 18:02:57 +01:00
|
|
|
#redondancy, #margin, #txt, #size, input[type=color], input[type=submit], .button {
|
2021-03-07 23:03:33 +01:00
|
|
|
border-width: 2px;
|
|
|
|
border-style: solid;
|
2019-08-13 21:17:08 +02:00
|
|
|
border-radius: 10px;
|
|
|
|
font-size: 20px;
|
|
|
|
padding-left: 10px;
|
|
|
|
font-weight: normal;
|
2021-05-03 15:54:55 +02:00
|
|
|
transition: border-color 0.1s ease;
|
2019-08-13 21:17:08 +02:00
|
|
|
margin-top: 8px;
|
|
|
|
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
background-color: @bgField-light;
|
|
|
|
border-color: @border-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
background-color: @bgField-dark;
|
|
|
|
border-color: @border-dark;
|
|
|
|
}
|
|
|
|
|
2019-08-13 21:17:08 +02:00
|
|
|
&:hover {
|
2021-03-07 23:03:33 +01:00
|
|
|
border-width: 2px;
|
|
|
|
border-style: solid;
|
2021-04-27 00:24:20 +02:00
|
|
|
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
2021-04-27 00:24:20 +02:00
|
|
|
border-color: @borderHover-light;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
2021-04-27 00:24:20 +02:00
|
|
|
border-color: @borderHover-dark;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2021-03-07 23:03:33 +01:00
|
|
|
border-width: 2px;
|
|
|
|
border-style: solid;
|
2020-03-06 21:34:31 +01:00
|
|
|
outline: none;
|
2021-03-07 23:03:33 +01:00
|
|
|
|
|
|
|
@media @light {
|
2021-04-27 00:24:20 +02:00
|
|
|
border-color: @borderFocus-light;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
2021-04-27 00:24:20 +02:00
|
|
|
border-color: @borderFocus-dark;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-11 21:48:56 +02:00
|
|
|
#redondancy {
|
2019-08-13 21:17:08 +02:00
|
|
|
width: 250px;
|
2021-10-19 17:07:51 +02:00
|
|
|
height: 44px;
|
2021-07-11 21:48:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#size, #margin {
|
|
|
|
width: 234px;
|
2021-10-19 17:07:51 +02:00
|
|
|
height: 38px;
|
2021-07-11 21:48:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#redondancy, #size, #margin {
|
2021-10-19 17:07:51 +02:00
|
|
|
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
|
|
|
background-color: @bgField-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
background-color: @bgField-dark;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
#txt {
|
|
|
|
padding: 10px;
|
|
|
|
margin: 10px;
|
2019-08-13 21:17:08 +02:00
|
|
|
width: 500px;
|
2020-03-06 21:34:31 +01:00
|
|
|
scrollbar-width: auto;
|
2021-03-07 23:03:33 +01:00
|
|
|
|
|
|
|
@media @light {
|
2021-04-27 00:24:20 +02:00
|
|
|
background-color: @bgTextarea-light;
|
|
|
|
color: @textareaText-light;
|
|
|
|
scrollbar-color: @textareaText-light @bgTextarea-light;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
2021-04-27 00:24:20 +02:00
|
|
|
background-color: @bgTextarea-dark;
|
|
|
|
color: @textareaText-dark;
|
|
|
|
scrollbar-color: @textareaText-dark @bgTextarea-dark;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
input[type=submit] {
|
|
|
|
font-size: 28px;
|
|
|
|
padding: 10px;
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
#txt::placeholder {
|
2019-03-17 16:03:43 +01:00
|
|
|
opacity: 1;
|
2021-02-15 21:48:26 +01:00
|
|
|
font-family: system-ui, sans-serif;
|
2019-03-28 22:44:06 +01:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1em;
|
2021-03-07 23:03:33 +01:00
|
|
|
@media @light {
|
2021-04-27 00:24:20 +02:00
|
|
|
color: @textareaPlaceholder-light;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
2021-04-27 00:24:20 +02:00
|
|
|
color: @textareaPlaceholder-dark;
|
2021-03-07 23:03:33 +01:00
|
|
|
}
|
2019-02-13 19:27:34 +01:00
|
|
|
}
|
|
|
|
|
2019-08-13 21:17:08 +02:00
|
|
|
input[type=color] {
|
2020-03-06 21:34:31 +01:00
|
|
|
height: 60px;
|
|
|
|
width: 84px;
|
2019-08-13 21:17:08 +02:00
|
|
|
padding: 5px;
|
2021-03-07 23:03:33 +01:00
|
|
|
border-width: 2px;
|
|
|
|
border-style: solid;
|
|
|
|
|
|
|
|
@media @light {
|
|
|
|
border-color: @border-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
border-color: @border-dark;
|
|
|
|
}
|
2019-08-13 21:17:08 +02:00
|
|
|
}
|
|
|
|
|
2020-03-06 21:34:31 +01:00
|
|
|
/* Media queries */
|
|
|
|
|
|
|
|
@media (max-width: 850px) {
|
|
|
|
|
2020-07-01 20:47:02 +02:00
|
|
|
main {
|
2020-03-06 21:34:31 +01:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#firstWrapper {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
#txt {
|
|
|
|
width: 92%;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-10-12 18:55:36 +02:00
|
|
|
@media (max-width: 500px) { // Mobile version
|
2020-03-06 21:34:31 +01:00
|
|
|
|
|
|
|
#colors {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
#txt {
|
|
|
|
width: 85%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#qrCode {
|
|
|
|
max-width: 94%;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2021-11-25 20:34:34 +01:00
|
|
|
|
|
|
|
a[download]::before {
|
|
|
|
content: "💾 ";
|
|
|
|
|
|
|
|
filter: drop-shadow(1px 1px white)
|
|
|
|
drop-shadow(-1px -1px white)
|
|
|
|
drop-shadow(-1px 1px white)
|
|
|
|
drop-shadow(1px -1px white);
|
|
|
|
}
|