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

345 lines
5.6 KiB
SCSS
Raw Normal View History

2018-04-13 21:28:25 +02:00
@import "variables";
2018-04-02 22:50:03 +02:00
@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;
}
@media (max-width: 40rem){
.container {
margin: 0 10px;
}
}
2018-03-22 22:52:14 +01:00
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-04-05 21:48:42 +02:00
&.question:not(.singlequestion) {
border-right: solid 10px lightgray;
}
.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-04-05 21:48:42 +02:00
text-align: right;
2018-04-02 22:50:03 +02:00
}
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 {
2018-04-13 21:28:25 +02:00
background: $stackexchange-blue;
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;
2018-04-05 21:48:42 +02:00
padding: 0 10px;
a {
color: inherit;
}
2018-03-24 17:33:10 +01:00
.gotolink {
margin-left: auto;
2018-04-05 21:48:42 +02:00
}
img {
background: rgba(255, 255, 255, 0.5);
padding: 5px;
border-radius: 50%;
margin-right: 10px;
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-04-05 21:01:06 +02:00
flex-wrap: wrap;
2018-04-13 21:28:25 +02:00
button.selection {
opacity: 1;
}
2018-03-30 22:42:38 +02:00
}
2018-03-28 15:01:16 +02:00
button {
background-color: lightgray;
color: #606c76;
border: none;
transition: opacity .3s;
&:hover, &:focus {
opacity: .6;
background-color: lightgray;
color: #606c76;
}
2018-04-13 21:28:25 +02:00
&:disabled {
&:hover, &:active, &:focus {
background-color: lightgray;
color: #606c76;
opacity: 0.5;
}
}
}
#check {
height: 32px;
line-height: 32px;
2018-03-28 15:01:16 +02:00
}
#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;
2018-04-05 21:48:42 +02:00
2018-04-02 22:50:03 +02:00
}
}
2018-04-04 17:40:22 +02:00
:target {
animation: target-fade 3s 1;
}
@keyframes target-fade {
2018-04-05 21:48:42 +02:00
0% {
background-color: rgba(0, 0, 0, .1);
}
100% {
background-color: rgba(0, 0, 0, 0);
}
2018-04-04 17:40:22 +02:00
}
2018-04-13 21:28:25 +02:00
#filterwrapper {
background-color: $stackexchange-blue;
display: flex;
justify-content: center;
input {
color: currentColor;
background: inherit;
border-radius: 0;
transition: all .3s;
padding: 10px;
&:hover, &:focus {
background-color: white;
color: #606c76;
border-color: lightgray;
}
}
.clear {
@extend input;
padding: 0 10px;
display: flex;
border: 0.1rem solid #d1d1d1;
border-left: none;
span {
align-self: center;
}
}
::placeholder {
color: #666
}
}
#quizteaster {
display: flex;
background-color: $stackexchange-blue;
a {
border: 1px lightgray;
border-top-style: solid;
&:first-child {
border-right-style: solid;
}
display: block;
flex-basis: 50%;
text-align: center;
color: inherit;
padding: 10px;
transition: all .3s;
&:hover, &:focus {
background-color: white;
color: #606c76;
}
}
}
html.quiz {
min-height: 100vh;
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.container {
}
}
.tutorial {
margin: 10px 0;
padding: 5px;
border: solid 1px lightgray;
border-right-width: 4px;
background-color: #ffffe0;
h3 {
font-size: 20px
}
p {
margin-bottom: 3px;
}
strong {
font-weight: 700;
}
a {
color: inherit;
font-weight: 700;
&:hover, &:focus, &:active {
text-decoration: underline;
}
}
}