Update styling for buttons and mobile

This commit is contained in:
Robbie Antenesse 2019-07-02 12:02:51 -06:00 committed by Robbie Antenesse
parent 0eb8be330b
commit 21d91a9920
5 changed files with 63 additions and 39 deletions

View File

@ -18,21 +18,4 @@
@import 'scss/themes/yellow';
@import 'scss/themes/red';
@import 'scss/themes/mint';
@import 'scss/themes/grape';
html, body {
margin: 0;
font-family: $font;
transition: all 0.2s ease-in;
* {
transition: all 0.2s ease-in;
box-sizing: border-box;
}
}
input:not([type="checkbox"]),
select,
textarea {
font-size: 16px;
}
@import 'scss/themes/grape';

View File

@ -1,3 +1,15 @@
html, body {
margin: 0;
font-family: $font;
font-size: 13pt;
transition: all 0.2s ease-in;
* {
transition: all 0.2s ease-in;
box-sizing: border-box;
}
}
header {
display: block;
padding: 5px $general-padding;

View File

@ -8,6 +8,12 @@ p, span {
}
}
input:not([type="checkbox"]),
select,
textarea {
font-size: 12pt;
}
label {
display: block;
font-weight: bold;
@ -24,7 +30,7 @@ label {
input:not([type="checkbox"]):not([type="radio"]) {
padding-bottom: 2px;
line-height: 130%;
line-height: 1.3;
}
input:not([type="checkbox"]):not([type="radio"]),
@ -33,23 +39,27 @@ label {
width: 100%;
}
textarea {
min-height: 100px;
}
.label-button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
line-height: 1.5;
cursor: pointer;
user-select: none;
font-size: 80%;
font-weight: normal;
float: right;
cursor: pointer;
line-height: 80% !important;
line-height: 0.85 !important;
padding: 3px 3px 5px;
&.small {
font-size: 80%;
line-height: 25px;
line-height: 0.8;
}
}
@ -57,18 +67,18 @@ label {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
line-height: 1.5;
cursor: pointer;
user-select: none;
font-size: 70%;
font-weight: normal;
cursor: pointer;
line-height: 70% !important;
line-height: 0.8 !important;
padding: 2px 2px 4px;
&.small {
font-size: 80%;
line-height: 25px;
line-height: 0.8;
}
}
}
@ -81,11 +91,15 @@ ul {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
line-height: 1.5;
&.small {
font-size: 80%;
line-height: 25px;
line-height: 1.3;
}
&+.tag {
margin-top: 5px;
}
}
@ -95,24 +109,28 @@ span .tag {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
line-height: 1.5;
&.small {
font-size: 80%;
line-height: 25px;
line-height: 1.3;
}
&+.tag {
border-left: none;
border-radius: 0 3px 3px 0;
}
&+span .tag {
margin-top: 5px;
}
}
.button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
line-height: 1.5;
cursor: pointer;
user-select: none;
text-decoration: none;
@ -120,7 +138,11 @@ span .tag {
&.small {
font-size: 80%;
line-height: 25px;
line-height: 1.3;
}
&+.button {
margin-top: 5px;
}
}

View File

@ -1,8 +1,8 @@
@media (max-width: 750px) {
html, body {
font-size: 90%;
line-height: 90%;
font-size: 12pt;
line-height: 1;
}
header {
@ -17,7 +17,6 @@ main {
#sideColumn {
display: block;
width: 0;
height: block;
margin: 0;
overflow: visible;
}

View File

@ -2,7 +2,7 @@
#top {
#title {
font-size: 13pt;
width: 150px;
margin-right: 10px;
}
@ -27,12 +27,13 @@
}
}
$mobile-word-form-size: 32px;
#mobileWordFormShow {
position: fixed;
top: $header-height;
top: $header-height - ($mobile-word-form-size / 2);
left: 0;
width: 32px;
height: 32px;
width: $mobile-word-form-size;
height: $mobile-word-form-size;
display: block;
border-radius: 0 3px 3px 0;
font-size: 30px;
@ -48,10 +49,15 @@
display: none;
width: 95%;
max-width: unset;
top: $header-height + 32px;
max-height: 85%;
top: $header-height + ($mobile-word-form-size / 2);
left: 0;
right: 3%;
z-index: 1;
label:not(:last-child) {
margin-bottom: 10px;
}
}
#detailsSection {
@ -60,7 +66,9 @@
}
#detailsPanel {
width: 100%;
max-height: 300px;
padding: 10px 5px;
}
}