Lexiconga/src/scss/_elements.scss

278 lines
3.9 KiB
SCSS
Raw Normal View History

a {
text-decoration: underline;
}
p, span {
&.bold {
font-weight: bold;
}
}
2019-07-02 20:02:51 +02:00
input:not([type="checkbox"]),
select,
textarea {
font-size: 12pt;
}
label {
display: block;
font-weight: bold;
2019-05-08 01:34:07 +02:00
line-height: 120%;
cursor: pointer;
&:not(:last-child) {
2019-05-04 07:20:22 +02:00
margin-bottom: $general-padding;
}
small {
font-weight: normal;
}
input:not([type="checkbox"]):not([type="radio"]) {
padding-bottom: 2px;
2019-07-02 20:02:51 +02:00
line-height: 1.3;
}
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
font-weight: normal;
width: 100%;
}
2019-07-02 20:02:51 +02:00
textarea {
min-height: 100px;
}
.label-button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
2019-07-02 20:02:51 +02:00
line-height: 1.5;
cursor: pointer;
user-select: none;
font-size: 80%;
2019-05-07 22:31:54 +02:00
font-weight: normal;
float: right;
cursor: pointer;
2019-07-02 20:02:51 +02:00
line-height: 0.85 !important;
2019-05-07 22:31:54 +02:00
padding: 3px 3px 5px;
&.small {
font-size: 80%;
2019-07-02 20:02:51 +02:00
line-height: 0.8;
}
}
.label-help-button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
2019-07-02 20:02:51 +02:00
line-height: 1.5;
cursor: pointer;
user-select: none;
font-size: 70%;
font-weight: normal;
cursor: pointer;
2019-07-02 20:02:51 +02:00
line-height: 0.8 !important;
padding: 2px 2px 4px;
&.small {
font-size: 80%;
2019-07-02 20:02:51 +02:00
line-height: 0.8;
}
}
}
2019-05-09 00:37:52 +02:00
ul {
padding-left: $general-padding;
}
.tag {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
2019-07-02 20:02:51 +02:00
line-height: 1.5;
2019-05-03 21:59:52 +02:00
&.small {
font-size: 80%;
2019-07-02 20:02:51 +02:00
line-height: 1.3;
}
&+.tag {
margin-top: 5px;
}
}
2019-05-02 23:45:10 +02:00
span .tag {
border-radius: 3px 0 0 3px;
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
2019-07-02 20:02:51 +02:00
line-height: 1.5;
&.small {
font-size: 80%;
2019-07-02 20:02:51 +02:00
line-height: 1.3;
}
2019-05-02 23:45:10 +02:00
&+.tag {
border-left: none;
border-radius: 0 3px 3px 0;
}
2019-07-02 20:02:51 +02:00
&+span .tag {
margin-top: 5px;
}
}
.button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
2019-07-02 20:02:51 +02:00
line-height: 1.5;
cursor: pointer;
user-select: none;
text-decoration: none;
font-weight: bold;
&.small {
font-size: 80%;
2019-07-02 20:02:51 +02:00
line-height: 1.3;
}
&+.button {
margin-top: 5px;
}
}
.modal {
2019-05-03 21:59:52 +02:00
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
.modal-background {
2019-05-03 21:59:52 +02:00
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
opacity: 0.5;
2019-05-02 18:57:56 +02:00
}
.modal-content {
2019-05-03 21:59:52 +02:00
position: absolute;
2019-05-04 07:20:22 +02:00
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 800px;
2019-05-04 07:20:22 +02:00
max-width: 100%;
height: 600px;
max-height: 100%;
border-radius: 5px;
.close-button {
2019-05-03 21:59:52 +02:00
position: absolute;
top: 0;
right: 10px;
z-index: 1;
font-size: 200%;
cursor: pointer;
2019-05-08 01:34:07 +02:00
user-select: none;
text-decoration: none;
}
2019-05-02 18:57:56 +02:00
}
}
.tabs {
li {
display: inline-block;
list-style: none;
margin: 0 2px -1px;
2019-05-04 07:20:22 +02:00
padding: 10px $general-padding;
border-radius: 5px 5px 0 0;
cursor: pointer;
}
2019-05-03 00:51:41 +02:00
}
.split {
display: block;
& > div {
2019-05-03 00:51:41 +02:00
display: inline-block;
vertical-align: top;
margin: 0;
margin-right: 2%;
&:last-child {
margin-right: unset;
margin-left: 2%;
}
}
&.two > div {
2019-05-03 00:51:41 +02:00
width: 46%;
}
&.three > div,
& > div.third {
2019-05-03 00:51:41 +02:00
width: 30%;
}
2019-05-03 21:59:52 +02:00
& > div.two-third {
2019-05-03 21:59:52 +02:00
width: 66%;
}
& > div.quarter {
2019-05-03 21:59:52 +02:00
width: 22%;
}
& > div.three-quarter {
2019-05-03 21:59:52 +02:00
width: 72%;
}
}
.fadeout {
overflow: hidden;
animation-name: shut;
animation-duration: 0.3s;
animation-timing-function: linear;
animation-iteration-count: 1;
animation-fill-mode: both;
}
@keyframes shut {
0% {
opacity: 1;
max-height: 200px;
}
100% {
opacity: 0;
max-height: 0px;
}
}
.pagination {
position: relative;
text-align: center;
margin: $general-padding 0;
.page-selector {
padding: 5px 10px;
}
.prev-button,
.next-button {
position: absolute;
}
.prev-button {
left: 2.5%;
}
.next-button {
right: 2.5%;
}
}