2021-11-25 21:36:21 +00:00
|
|
|
// This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
2020-03-06 20:34:31 +00:00
|
|
|
|
2021-03-07 22:03:33 +00:00
|
|
|
@light: ~"(prefers-color-scheme: light)";
|
|
|
|
@dark: ~"(prefers-color-scheme: dark)";
|
2021-12-06 19:10:45 +00:00
|
|
|
@import "themes/@{theme}/logo.less";
|
|
|
|
|
|
|
|
:root {
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
color-scheme: light;
|
|
|
|
}
|
|
|
|
@media @dark {
|
|
|
|
color-scheme: dark;
|
|
|
|
}
|
2021-12-06 19:10:45 +00:00
|
|
|
}
|
2020-03-06 20:34:31 +00:00
|
|
|
|
2019-08-13 19:17:08 +00:00
|
|
|
* {
|
2023-11-26 20:57:57 +00:00
|
|
|
font-family: IBM Plex Mono,monospace;
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
scrollbar-width: auto;
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
scrollbar-color: @text-light @bg-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
scrollbar-color: @text-dark @bg-dark;
|
|
|
|
}
|
2019-01-26 13:23:19 +00:00
|
|
|
}
|
|
|
|
|
2021-07-11 19:48:56 +00:00
|
|
|
html {
|
2022-05-30 18:16:36 +00:00
|
|
|
height: 100%;
|
2021-07-11 19:48:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-05-30 18:16:36 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-03-03 17:26:21 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
max-width: 812px;
|
|
|
|
height: 100%;
|
2022-03-03 17:26:21 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
margin: 0px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2022-03-03 17:26:21 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: 20px;
|
2021-07-11 19:48:56 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
background-color: @bg-light;
|
|
|
|
}
|
2021-07-11 19:48:56 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
background-color: @bg-dark;
|
|
|
|
}
|
2021-07-11 19:48:56 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
a {
|
2022-05-30 18:16:36 +00:00
|
|
|
text-decoration: underline;
|
2019-02-11 18:26:31 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-02-11 18:26:31 +00:00
|
|
|
}
|
|
|
|
|
2022-02-18 17:21:33 +00:00
|
|
|
code {
|
2023-11-26 20:57:57 +00:00
|
|
|
font-family: IBM Plex Mono,monospace;
|
2022-02-18 17:21:33 +00:00
|
|
|
}
|
|
|
|
|
2021-07-16 17:30:43 +00:00
|
|
|
.helpText {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin: 5px 0px 0px 0px;
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 10px;
|
|
|
|
border-width: 2px;
|
|
|
|
border-style: dashed;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@media @light {
|
|
|
|
background-color: @bgHelp-light;
|
|
|
|
border-color: @borderHelp-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
background-color: @bgHelp-dark;
|
|
|
|
border-color: @borderHelp-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
& p {
|
|
|
|
margin-top: 0px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
2019-02-11 18:26:31 +00:00
|
|
|
}
|
|
|
|
|
2021-07-11 19:48:56 +00:00
|
|
|
#sideParams {
|
2022-05-30 18:16:36 +00:00
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
& .param {
|
|
|
|
max-width: 270px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-07-11 19:48:56 +00:00
|
|
|
}
|
|
|
|
|
2021-12-18 22:18:40 +00:00
|
|
|
summary {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin-left: 20px;
|
|
|
|
cursor: help;
|
2021-03-07 18:06:32 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
#qrCode {
|
2022-05-30 18:16:36 +00:00
|
|
|
max-width: 94%;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
@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 18:26:31 +00:00
|
|
|
}
|
2019-01-26 13:23:19 +00:00
|
|
|
|
2020-07-01 18:47:02 +00:00
|
|
|
.centered {
|
2022-05-30 18:16:36 +00:00
|
|
|
text-align: center;
|
2019-01-26 13:23:19 +00:00
|
|
|
}
|
|
|
|
|
2020-10-25 17:02:57 +00:00
|
|
|
.button {
|
2022-05-30 18:16:36 +00:00
|
|
|
padding: 3px 10px 3px 10px;
|
|
|
|
text-decoration: none;
|
2019-01-26 13:23:19 +00:00
|
|
|
}
|
|
|
|
|
2019-02-24 18:11:31 +00:00
|
|
|
header {
|
2022-05-30 18:16:36 +00:00
|
|
|
text-align: center;
|
|
|
|
padding-top: 12px;
|
|
|
|
height: 64px;
|
2019-02-24 18:11:31 +00:00
|
|
|
}
|
|
|
|
|
2021-12-06 19:10:45 +00:00
|
|
|
#linkTitles::before {
|
2022-05-30 18:16:36 +00:00
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
content: "";
|
2021-12-06 19:10:45 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
@media @light {
|
|
|
|
background-image: var(--logo-light);
|
|
|
|
}
|
2021-12-06 19:10:45 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
background-image: var(--logo-dark);
|
|
|
|
}
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
2020-10-25 17:02:57 +00:00
|
|
|
#titles {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin-left: 2%;
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin: 0px;
|
|
|
|
font-weight: normal;
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2022-05-30 18:16:36 +00:00
|
|
|
font-size: 29px;
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2022-05-30 18:16:36 +00:00
|
|
|
font-size: 22px;
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
2020-10-25 17:02:57 +00:00
|
|
|
#linkTitles {
|
2022-05-30 18:16:36 +00:00
|
|
|
text-align: left;
|
|
|
|
justify-content: center;
|
|
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-02-24 18:11:31 +00:00
|
|
|
}
|
|
|
|
|
2022-03-06 17:04:25 +00:00
|
|
|
#downloadQR {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin-top: 20px;
|
2022-03-06 17:04:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#showOnlyQR {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin-top: 30px;
|
2019-01-26 13:23:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.param {
|
2022-05-30 18:16:36 +00:00
|
|
|
padding: 4px;
|
|
|
|
margin-left: 0px;
|
|
|
|
margin-right: 0px;
|
2019-01-26 13:23:19 +00:00
|
|
|
}
|
|
|
|
|
2019-08-13 19:17:08 +00:00
|
|
|
::selection {
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
color: @bg-light;
|
|
|
|
background-color: @text-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @bg-dark;
|
|
|
|
background-color: @text-dark;
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2021-07-11 19:48:56 +00:00
|
|
|
label[for=txt] summary {
|
2022-05-30 18:16:36 +00:00
|
|
|
margin-left: 22px;
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
#colors {
|
2022-05-30 18:16:36 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
text-align: center;
|
2020-03-06 20:34:31 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
& .param {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
.metaText {
|
2022-05-30 18:16:36 +00:00
|
|
|
padding: 6px;
|
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
& a, a:visited {
|
|
|
|
text-decoration: underline;
|
|
|
|
@media @light {
|
|
|
|
color: @text-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @text-dark;
|
|
|
|
}
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
footer {
|
2022-05-30 18:16:36 +00:00
|
|
|
font-size: 16px;
|
|
|
|
margin-top: auto;
|
|
|
|
padding-top: 10px;
|
|
|
|
text-align: left;
|
2020-10-25 17:02:57 +00:00
|
|
|
}
|
2020-10-12 16:55:36 +00:00
|
|
|
|
2022-03-06 17:04:25 +00:00
|
|
|
small {
|
2022-05-30 18:16:36 +00:00
|
|
|
font-size: 14px;
|
2022-03-06 17:04:25 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
#info {
|
2022-05-30 18:16:36 +00:00
|
|
|
font-size: 16px;
|
|
|
|
margin: 0px;
|
2020-03-06 20:34:31 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
& h3 {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: normal;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
2020-03-06 20:34:31 +00:00
|
|
|
}
|
|
|
|
|
2019-08-13 19:17:08 +00:00
|
|
|
/* Inputs */
|
|
|
|
|
2022-02-13 00:24:34 +00:00
|
|
|
#redundancy, #margin, #txt, #size, input[type=color], input[type=submit], .button {
|
2022-05-30 18:16:36 +00:00
|
|
|
border-width: 2px;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 10px;
|
|
|
|
font-size: 20px;
|
|
|
|
padding-left: 10px;
|
|
|
|
font-weight: normal;
|
|
|
|
transition: border-color 0.1s ease;
|
|
|
|
margin: 6px;
|
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-width: 3px;
|
|
|
|
margin: 5px;
|
|
|
|
border-style: solid;
|
|
|
|
|
|
|
|
@media @light {
|
|
|
|
border-color: @borderHover-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
border-color: @borderHover-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-width: 4px;
|
|
|
|
margin: 4px;
|
|
|
|
border-style: solid;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
@media @light {
|
|
|
|
border-color: @borderFocus-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @dark {
|
|
|
|
border-color: @borderFocus-dark;
|
|
|
|
}
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2022-02-13 00:24:34 +00:00
|
|
|
#redundancy {
|
2022-05-30 18:16:36 +00:00
|
|
|
width: 250px;
|
|
|
|
height: 44px;
|
|
|
|
&:hover {
|
|
|
|
width: 252px;
|
|
|
|
height: 46px;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
width: 254px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
2022-01-10 17:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type=color] {
|
2022-05-30 18:16:36 +00:00
|
|
|
height: 60px;
|
|
|
|
width: 84px;
|
|
|
|
padding: 5px;
|
|
|
|
&:hover {
|
|
|
|
height: 62px;
|
|
|
|
width: 86px;
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
height: 64px;
|
|
|
|
width: 88px;
|
|
|
|
}
|
2021-07-11 19:48:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#size, #margin {
|
2022-05-30 18:16:36 +00:00
|
|
|
width: 234px;
|
|
|
|
height: 38px;
|
2021-07-11 19:48:56 +00:00
|
|
|
}
|
|
|
|
|
2022-02-13 00:24:34 +00:00
|
|
|
#redundancy, #size, #margin {
|
2021-10-19 15:07:51 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
background-color: @bgField-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
background-color: @bgField-dark;
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2022-03-06 17:04:25 +00:00
|
|
|
#txtParam {
|
2022-05-30 18:16:36 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-03-06 17:04:25 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
#txt {
|
2022-05-30 18:16:36 +00:00
|
|
|
padding: 10px;
|
|
|
|
width: auto;
|
|
|
|
scrollbar-width: auto;
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @light {
|
|
|
|
background-color: @bgTextarea-light;
|
|
|
|
color: @textareaText-light;
|
|
|
|
scrollbar-color: @textareaText-light @bgTextarea-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
background-color: @bgTextarea-dark;
|
|
|
|
color: @textareaText-dark;
|
|
|
|
scrollbar-color: @textareaText-dark @bgTextarea-dark;
|
|
|
|
}
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
input[type=submit] {
|
2022-05-30 18:16:36 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 28px;
|
|
|
|
padding: 10px;
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
2019-08-13 19:17:08 +00:00
|
|
|
}
|
|
|
|
|
2020-03-06 20:34:31 +00:00
|
|
|
#txt::placeholder {
|
2022-05-30 18:16:36 +00:00
|
|
|
opacity: 1;
|
|
|
|
font-family: system-ui, sans-serif;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1em;
|
|
|
|
@media @light {
|
|
|
|
color: @textareaPlaceholder-light;
|
|
|
|
}
|
2021-03-07 22:03:33 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
@media @dark {
|
|
|
|
color: @textareaPlaceholder-dark;
|
|
|
|
}
|
2019-02-13 18:27:34 +00:00
|
|
|
}
|
|
|
|
|
2021-11-25 19:34:34 +00:00
|
|
|
a[download]::before {
|
2022-05-30 18:16:36 +00:00
|
|
|
content: "💾 ";
|
2021-11-25 19:34:34 +00:00
|
|
|
|
2022-05-30 18:16:36 +00:00
|
|
|
filter:
|
|
|
|
drop-shadow(-1px 1px 1px white)
|
|
|
|
drop-shadow(1px -1px 1px white);
|
2023-11-26 20:57:57 +00:00
|
|
|
}
|