1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00
se-simulator/web/static/sass/style.scss

212 lines
3.5 KiB
SCSS
Raw Normal View History

2018-03-22 22:52:14 +01:00
$link-color: #07C;
$link-hover-color: #3af;
2018-04-02 22:50:03 +02:00
$mobile-break-point: 500px;
@mixin mobile-only() {
@media (max-width: $mobile-break-point) {
@content ;
}
}
@mixin desktop-only() {
@media (min-width: $mobile-break-point) {
@content ;
}
}
2018-03-22 22:52:14 +01:00
@import "../../milligram/src/milligram";
2018-03-27 20:41:57 +02:00
@import "awesomplete.custom";
2018-03-23 21:28:37 +01:00
@import "pagination";
2018-03-22 22:52:14 +01:00
body {
font-size: 15px;
2018-03-22 22:52:14 +01:00
color: #111;
}
pre > code {
white-space: pre-wrap;
}
.content {
2018-03-22 22:52:14 +01:00
position: relative;
display: flex;
flex-direction: row;
padding: 15px 5px 15px;
2018-04-02 22:50:03 +02:00
&:not(.singlequestion) {
border-bottom: solid lightgray 1px;
}
2018-03-24 17:33:10 +01:00
border-right: solid 10px transparent;
.contentbox {
2018-03-22 22:52:14 +01:00
margin-left: 10px;
2018-03-24 17:33:10 +01:00
width: 100%;
2018-03-22 22:52:14 +01:00
.sitename {
color: grey;
&:hover {
text-decoration: underline;
}
}
2018-04-02 22:50:03 +02:00
.rightwrapper {
display: flex;
flex-direction: row;
justify-content: right;
@include mobile-only {
justify-content: left;
}
.metadata {
font-size: 12px;
color: grey;
}
2018-03-22 22:52:14 +01:00
}
.contentfooter {
2018-03-24 17:33:10 +01:00
display: flex;
justify-content: right;
margin: 0;
.authorbox {
background: #E1ECF9;
font-size: 12px;
padding: 5px;
2018-03-30 15:07:18 +02:00
color: #111;
2018-03-24 17:33:10 +01:00
}
}
2018-03-22 22:52:14 +01:00
}
.title {
font-size: 20px;
color: $link-color;
&:hover {
color: $link-hover-color;
}
}
.vote {
width: 30px;
display: flex;
flex-direction: column;
div {
text-align: center;
margin: 10px 0;
}
a {
font-size: 20px;
width: 0;
height: 0;
border-style: solid;
cursor: pointer;
2018-03-25 20:35:03 +02:00
transition: border-color .3s;
2018-03-22 22:52:14 +01:00
}
.up {
border-width: 0 15px 15px 15px;
border-color: transparent transparent #858c93 transparent;
2018-03-25 20:35:03 +02:00
&:hover, &:focus, &.active {
border-color: transparent transparent darken(#858c93, 20%) transparent;
2018-03-25 20:35:03 +02:00
}
2018-03-22 22:52:14 +01:00
}
.down {
border-width: 15px 15px 0 15px;
border-color: #858c93 transparent transparent transparent;
2018-03-25 20:35:03 +02:00
&:hover, &:focus, &.active {
border-color: darken(#858c93, 20%) transparent transparent transparent;
2018-03-25 20:35:03 +02:00
}
2018-03-22 22:52:14 +01:00
}
}
}
2018-03-24 17:33:10 +01:00
h1, h2 {
2018-03-24 17:33:10 +01:00
border-bottom: solid 1px lightgray;
padding-bottom: 10px;
margin-bottom: 0;
2018-03-25 11:28:37 +02:00
margin-top: 10px;
color: inherit;
2018-03-24 17:33:10 +01:00
}
2018-03-28 15:01:16 +02:00
h2 {
font-size: 18px
}
2018-03-24 17:33:10 +01:00
.siteheader {
background: #ebf2f5;
2018-03-28 15:01:16 +02:00
transition: background-color .3s, color .3s;
2018-03-24 17:33:10 +01:00
display: flex;
height: 50px;
align-items: center;
.gotolink {
margin-left: auto;
2018-03-25 11:28:37 +02:00
color: inherit;
2018-03-24 17:33:10 +01:00
}
}
2018-04-02 22:50:03 +02:00
2018-03-30 22:42:38 +02:00
#quizselector {
2018-03-28 15:01:16 +02:00
margin: 15px;
display: flex;
flex-direction: row;
justify-content: center;
> .awesomplete {
margin-right: 5px;
width: 70%;
input {
font-size: 20px;
width: 100%;
}
}
}
2018-03-30 22:42:38 +02:00
#quizchoices {
margin: 15px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
2018-03-28 15:01:16 +02:00
button {
height: 32px;
background-color: lightgray;
color: #606c76;
border: none;
transition: opacity .3s;
&:hover, &:focus {
opacity: .6;
background-color: lightgray;
color: #606c76;
}
}
#result {
> div {
width: 100%;
padding: 20px 0;
font-size: 25px;
text-align: center;
display: none;
}
}
#correct {
background-color: $success;
}
#incorrect {
background-color: $warning;
}
#stats {
display: flex;
flex-direction: row;
justify-content: space-around;
text-align: center;
padding: 20px 0;
}
2018-04-02 22:50:03 +02:00
footer {
padding: 1rem 2rem;
display: flex;
flex-direction: row;
justify-content: space-between;
a {
color: #111;
}
}