test-platform/server/css/base_style.css

274 lines
4.7 KiB
CSS
Raw Normal View History

2024-05-28 17:47:08 +03:00
:root {
--yellow-gradient: linear-gradient(45deg, #ffe88d, #fff8b7);
--yellow-gradient-bright: linear-gradient(45deg, #ffeba1, #fffacb);
--blue-gradient-subtle: linear-gradient(45deg, #e7ebff, #e7efff);
2024-06-01 19:45:47 +03:00
--blue-glassy: #fff9;
2024-05-28 17:47:08 +03:00
--red-gradient: linear-gradient(45deg, #ffd2cc, #ffcccc);
2024-06-01 19:45:47 +03:00
--magical: linear-gradient(45deg, #e0f2ff, #e4fff0, #eee0ff);
2024-05-28 17:47:08 +03:00
}
2024-05-25 19:18:26 +03:00
* {
margin: 0;
padding: 0;
2024-05-28 17:47:08 +03:00
font-family: sans-serif;
2024-05-25 19:18:26 +03:00
}
html {
width: 100%;
2024-05-28 17:47:08 +03:00
background: var(--blue-gradient-subtle);
}
body {
max-width: 600px;
margin: auto;
}
header {
border: solid 2px;
padding: 10px;
margin-top: 20px;
margin-bottom: 20px;
border-radius: 8px;
}
header .top-half, header .lower-half {
text-align: center;
}
2024-06-01 19:45:47 +03:00
header .top-half,
header .lower-half input
{
2024-05-28 17:47:08 +03:00
margin-bottom: 12px;
}
header .top-half .view-test-id-tag {
color: #333333;
font-size: 16pt;
margin-right: 12px;
}
header .top-half .view-test-main-tag {
color: #000;
font-size: 20pt;
font-weight: 600;
}
header .lower-half a.generic-button,
header .lower-half a.sub-button,
main * a.sub-button,
2024-06-01 13:49:13 +03:00
main * a.scary-button,
2024-06-01 19:45:47 +03:00
main a.return-button,
main a.delete-button,
main a.cancel-button,
main a.magic-button
2024-05-28 17:47:08 +03:00
{
text-decoration: none;
border-radius: 15px;
color: #000;
text-align: center;
font-weight: 700;
margin: 4px;
margin-top: 0;
2024-06-01 19:45:47 +03:00
padding: 10px 20px 10px 20px;
2024-05-28 17:47:08 +03:00
display: inline-block;
}
header .lower-half a.generic-button {
background: var(--yellow-gradient);
}
header .lower-half a.generic-button:hover {
background: var(--yellow-gradient-bright);
}
header .lower-half a.sub-button,
2024-06-01 13:49:13 +03:00
main * a.sub-button,
2024-06-01 19:45:47 +03:00
main a.return-button,
main a.cancel-button
2024-05-28 17:47:08 +03:00
{
border: 1px solid #000;
}
main * div.controls
{
display: grid;
grid-auto-flow: column;
margin-top: 13px;
grid-auto-columns: max-content;
justify-content: end;
}
2024-06-01 19:45:47 +03:00
main * a.scary-button,
main a.delete-button
2024-05-28 17:47:08 +03:00
{
background: var(--red-gradient);
color: #500;
}
2024-06-01 19:45:47 +03:00
main a.magic-button
{
background: var(--magical);
/*
animation-name: magic-ani;
animation-duration: 6s;
animation-iteration-count: infinite;
animation-timing-function: linear;
*/
}
2024-05-28 17:47:08 +03:00
main .test-short,
main .question-short,
2024-06-01 19:45:47 +03:00
main .response-option,
main .piece-of-stats
2024-05-28 17:47:08 +03:00
{
padding: 20px;
2024-06-01 19:45:47 +03:00
background: var(--blue-glassy);
2024-06-01 13:49:13 +03:00
margin-bottom: 16px;
2024-05-28 17:47:08 +03:00
border-radius: 14px;
vertical-align: middle;
}
2024-06-01 19:45:47 +03:00
main .piece-of-stats .header
{
display: block;
font-size: 16pt;
font-weight: 600;
margin-bottom: 10px;
}
2024-05-28 17:47:08 +03:00
main .test-short a.test-link,
main .question-short a.question-link {
display: block;
text-decoration: none;
}
main .test-short a.test-link .main-label {
color: #002;
font-weight: 700;
font-size: 16pt;
}
main .test-short a.test-link .sub-label,
main .question-short a.question-link .sub-label {
color: #333;
margin-right: 11px;
}
main .test-short a.test-link {
display: block;
text-decoration: none;
}
main .question-short a.question-link .main-label {
color: #002;
font-weight: 600;
font-size: 15pt;
}
main * .sub-title {
display: block;
margin-top: 12px;
}
2024-06-01 19:45:47 +03:00
main form label
{
display: block;
margin-bottom: 10px;
font-size: 12pt;
}
main form input,
header .lower-half form input
{
display: block;
border-radius: 20px;
padding: 12px 30px 12px 30px;
font-size: 15pt;
width: 90%;
margin: auto;
border: 1px solid #fff;
transition-duration: 300ms;
}
main form input:focus,
header .lower-half form input:focus
{
outline: none;
border: 1px solid;
transition-duration: 300ms;
}
main form input[type=submit]
{
width: auto;
border: none;
border-radius: 20px;
padding: 12px 30px 12px 30px;
background: var(--yellow-gradient);
font-weight: 600;
font-size: 15pt;
}
main form input[type=submit]:hover
{
cursor: pointer;
background: var(--yellow-gradient-bright);
}
2024-06-01 13:49:13 +03:00
main * .response-option-short-list
{
margin-top: 12px;
}
main * .response-option-short
{
display: inline-block;
margin-top: 7px;
background: #F1F1F1;
border-radius: 6px;
padding: 4px;
font-weight: 500;
}
2024-06-01 19:45:47 +03:00
main .response-option a.response-option-mark
{
2024-05-28 17:47:08 +03:00
font-size: 16pt;
text-decoration: none;
display: inline-block;
padding: 2px 10px 3px 10px;
margin-right: 12px;
color: #001;
border-radius: 24px;
border: solid 1px;
font-family: monospace;
2024-05-25 19:18:26 +03:00
}
2024-06-01 13:49:13 +03:00
main .return-button-centerer
{
display: grid;
}
2024-06-01 19:45:47 +03:00
main a.return-button,
main a.delete-button,
main a.cancel-button
2024-06-01 13:49:13 +03:00
{
margin: auto;
margin-bottom: 15px;
}
2024-06-01 19:45:47 +03:00
header .lower-half form input
{
transition-duration: 300ms;
@keyframes magic-ani
{
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}