qrcode.libre-service.eu-lib.../style.less

420 lines
6.1 KiB
Text
Raw Normal View History

/*
2021-02-15 21:48:26 +01:00
This file is part of LibreQR.
2021-02-15 21:48:26 +01:00
LibreQR 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.
2021-02-15 21:48:26 +01:00
LibreQR 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.
2021-02-15 21:48:26 +01:00
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/>.
*/
@light: ~"(prefers-color-scheme: light)";
@dark: ~"(prefers-color-scheme: dark)";
2019-08-13 21:17:08 +02:00
* {
2021-02-15 21:48:26 +01:00
font-family: system-ui, sans-serif;
scrollbar-width: auto;
@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;
}
}
a {
text-decoration: underline;
@media @light {
color: @text-light;
}
@media @dark {
color: @text-dark;
}
&:hover {
text-decoration: none;
}
}
2021-07-16 19:30:43 +02:00
.helpText {
2021-07-11 21:48:56 +02:00
margin: 5px 0px 0px 0px;
padding: 5px;
border-radius: 10px;
text-align: left;
@media @light {
background-color: @bgHelp-light;
}
@media @dark {
background-color: @bgHelp-dark;
}
}
2021-07-11 21:48:56 +02:00
#sideParams {
text-align: center;
margin-left: 12px;
}
#sideParams summary {
text-align: center;
margin-left: 20px;
}
#firstWrapper {
display: flex;
flex-direction: row;
}
#qrCode {
max-width: 480px;
}
2019-01-26 14:23:19 +01:00
.centered {
text-align: center;
2019-01-26 14:23:19 +01:00
}
.button {
2019-01-26 14:23:19 +01:00
padding: 3px 10px 3px 10px;
text-decoration: none;
2019-01-26 14:23:19 +01:00
}
main {
display: flex;
flex-direction: column;
margin-left: auto;
margin-right: auto;
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;
height: 64px;
2021-07-16 19:26:31 +02:00
display: flex;
justify-content: center;
2019-02-24 19:11:31 +01:00
}
#logo {
width: 64px;
height: 64px;
}
#titles {
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;
}
h2 {
font-size: 22px;
}
#linkTitles {
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-07-11 21:48:56 +02:00
section#output {
flex-grow: 1;
}
#showOnlyQR, #downloadQR {
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
}
.inputColorContainer {
2019-08-13 21:17:08 +02:00
display: flex;
flex-direction: row;
justify-content: center;
}
::selection {
@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
}
#colors {
2019-08-13 21:17:08 +02:00
display: flex;
flex-direction: row;
justify-content: space-between;
text-align: center;
& .param {
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
width: 100%;
}
2019-08-13 21:17:08 +02:00
}
.metaText {
padding: 6px;
@media @light {
color: @text-light;
}
@media @dark {
color: @text-dark;
}
2019-08-13 21:17:08 +02:00
& a, a:visited {
text-decoration: underline;
@media @light {
color: @text-light;
}
@media @dark {
color: @text-dark;
}
2019-08-13 21:17:08 +02:00
}
2019-08-13 21:17:08 +02:00
}
footer {
font-size: 14px;
2021-07-11 21:48:56 +02:00
margin-top: 10px;
text-align: left;
}
2020-10-12 18:55:36 +02:00
header, footer {
flex-shrink: 0;
}
#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 */
#redondancy, #margin, #txt, #size, input[type=color], input[type=submit], .button {
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;
transition: border-color 0.1s ease;
2019-08-13 21:17:08 +02:00
margin-top: 8px;
@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 {
border-width: 2px;
border-style: solid;
@media @light {
border-color: @borderHover-light;
}
@media @dark {
border-color: @borderHover-dark;
}
2019-08-13 21:17:08 +02:00
}
&:focus {
border-width: 2px;
border-style: solid;
outline: none;
@media @light {
border-color: @borderFocus-light;
}
@media @dark {
border-color: @borderFocus-dark;
}
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
@media @light {
background-color: @bgField-light;
}
@media @dark {
background-color: @bgField-dark;
}
2019-08-13 21:17:08 +02:00
}
#txt {
padding: 10px;
margin: 10px;
2019-08-13 21:17:08 +02:00
width: 500px;
scrollbar-width: auto;
@media @light {
background-color: @bgTextarea-light;
color: @textareaText-light;
scrollbar-color: @textareaText-light @bgTextarea-light;
}
@media @dark {
background-color: @bgTextarea-dark;
color: @textareaText-dark;
scrollbar-color: @textareaText-dark @bgTextarea-dark;
}
2019-08-13 21:17:08 +02:00
}
input[type=submit] {
font-size: 28px;
padding: 10px;
padding-left: 14px;
padding-right: 14px;
2019-08-13 21:17:08 +02:00
}
#txt::placeholder {
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;
@media @light {
color: @textareaPlaceholder-light;
}
@media @dark {
color: @textareaPlaceholder-dark;
}
}
2019-08-13 21:17:08 +02:00
input[type=color] {
height: 60px;
width: 84px;
2019-08-13 21:17:08 +02:00
padding: 5px;
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
}
/* Media queries */
@media (max-width: 850px) {
main {
width: auto;
}
#firstWrapper {
flex-direction: column;
}
#txt {
width: 92%;
}
}
2020-10-12 18:55:36 +02:00
@media (max-width: 500px) { // Mobile version
#colors {
flex-direction: column;
}
#txt {
width: 85%;
}
#qrCode {
max-width: 94%;
}
}