312 lines
4.4 KiB
Text
Executable file
312 lines
4.4 KiB
Text
Executable file
/*
|
|
|
|
This file is part of LibreQR.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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/>.
|
|
|
|
*/
|
|
|
|
* {
|
|
font-family: system-ui, sans-serif;
|
|
scrollbar-color: @text @bg;
|
|
scrollbar-width: auto;
|
|
}
|
|
|
|
a {
|
|
color: @text;
|
|
text-decoration: underline;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 10px;
|
|
}
|
|
|
|
details .helpText {
|
|
background-color: @bgHelp;
|
|
padding: 5px;
|
|
border-radius: 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
#menusDeroulants summary {
|
|
text-align: center;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
#firstWrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#qrCode {
|
|
max-width: 480px;
|
|
}
|
|
|
|
.centered {
|
|
text-align: center;
|
|
}
|
|
|
|
.button {
|
|
padding: 3px 10px 3px 10px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
form {
|
|
flex-grow: 1;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 814px;
|
|
height: 99%;
|
|
}
|
|
|
|
body {
|
|
margin: 18px;
|
|
background-color: @bg;
|
|
color: @text;
|
|
font-weight: normal;
|
|
font-size: 20px;
|
|
height: 99%;
|
|
}
|
|
|
|
html {
|
|
height: 97%;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
height: 64px;
|
|
}
|
|
|
|
#logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
}
|
|
|
|
#titles {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin: 0px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 33px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 22px;
|
|
}
|
|
|
|
#linkTitles {
|
|
text-align: left;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#showOnlyQR {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.param {
|
|
padding: 10px;
|
|
padding-left: 0px;
|
|
margin-left: 0px;
|
|
padding-right: 0px;
|
|
margin-right: 0px;
|
|
}
|
|
|
|
.inputColorContainer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
::selection {
|
|
color: @bg;
|
|
background-color: @text;
|
|
}
|
|
|
|
label[for=txt] {
|
|
padding-left: 22px;
|
|
}
|
|
|
|
#colors {
|
|
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%;
|
|
}
|
|
}
|
|
|
|
.metaText {
|
|
color: @text;
|
|
padding: 6px;
|
|
|
|
& a, a:visited {
|
|
color: @text;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
font-size: 14px;
|
|
padding-top: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
/* Inputs */
|
|
|
|
#redondancy, #margin, #txt, #size, input[type=color], input[type=submit], .button {
|
|
border: 2px @border solid;
|
|
border-radius: 10px;
|
|
font-size: 20px;
|
|
padding-left: 10px;
|
|
font-weight: normal;
|
|
color: @text;
|
|
transition: border 0.1s linear;
|
|
background-color: @bgField;
|
|
margin-top: 8px;
|
|
|
|
&:hover {
|
|
border: 2px @borderHover solid;
|
|
}
|
|
|
|
&:focus {
|
|
border: 2px @borderFocus solid;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
#redondancy, #size, #margin {
|
|
background-color: @bgField;
|
|
width: 250px;
|
|
height: 40px;
|
|
}
|
|
|
|
#txt {
|
|
background-color: @bgTextField;
|
|
color: @text;
|
|
padding: 10px;
|
|
margin: 10px;
|
|
width: 500px;
|
|
scrollbar-color: @text @bgTextField;
|
|
scrollbar-width: auto;
|
|
}
|
|
|
|
input[type=submit] {
|
|
font-size: 28px;
|
|
padding: 10px;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
}
|
|
|
|
#txt::placeholder {
|
|
color: @secondaryText;
|
|
opacity: 1;
|
|
font-family: system-ui, sans-serif;
|
|
font-weight: normal;
|
|
font-size: 1em;
|
|
}
|
|
|
|
input[type=color] {
|
|
height: 60px;
|
|
width: 84px;
|
|
padding: 5px;
|
|
border: 2px @border solid;
|
|
}
|
|
|
|
/* Media queries */
|
|
|
|
@media (max-width: 850px) {
|
|
|
|
main {
|
|
width: auto;
|
|
}
|
|
|
|
#firstWrapper {
|
|
flex-direction: column;
|
|
}
|
|
|
|
body {
|
|
margin: 10px;
|
|
}
|
|
|
|
#txt {
|
|
width: 92%;
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 500px) { // Mobile version
|
|
|
|
#colors {
|
|
flex-direction: column;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 28px;
|
|
padding-top: 6px;
|
|
}
|
|
|
|
#txt {
|
|
width: 85%;
|
|
}
|
|
|
|
#qrCode {
|
|
max-width: 94%;
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 415px) {
|
|
|
|
h1 {
|
|
padding: 0px;
|
|
}
|
|
|
|
}
|