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 2a00d3d5b9
commit 07028f28a8
5 changed files with 63 additions and 39 deletions

View File

@ -18,21 +18,4 @@
@import 'scss/themes/yellow'; @import 'scss/themes/yellow';
@import 'scss/themes/red'; @import 'scss/themes/red';
@import 'scss/themes/mint'; @import 'scss/themes/mint';
@import 'scss/themes/grape'; @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;
}

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 { header {
display: block; display: block;
padding: 5px $general-padding; padding: 5px $general-padding;

View File

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

View File

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

View File

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