Files
MaszToZadanieDomowe.com/assets/css/liczby.css

283 lines
4.8 KiB
CSS
Raw Normal View History

2025-09-22 13:16:18 +02:00
@import url(baza.css);
html {
background: var(--colorCrust);
overflow: hidden !important;
}
header {
padding: 1rem 1.5rem;
2025-09-22 22:46:30 +02:00
height: 1.5rem;
2025-09-22 13:16:18 +02:00
border-bottom: solid 3px var(--colorBase);
}
a {
color: var(--colorText) !important;
text-decoration-color: transparent !important;
}
a:hover {
text-decoration-color: var(--colorText) !important;
}
/* Tytułowe */
2025-09-22 20:37:28 +02:00
#ekrantytulowy {
2025-09-22 13:16:18 +02:00
display: inline-flex;
flex-direction: column;
justify-content: space-between;
position: fixed;
2025-09-22 22:46:30 +02:00
top: 2rem;
2025-09-22 13:16:18 +02:00
width: 100vw;
2025-09-22 22:46:30 +02:00
height: calc(100vh - 2rem);
2025-09-22 13:16:18 +02:00
text-align: center;
background: linear-gradient(180deg,
transparent 0%,
var(--colorSurface0) 20%,
var(--colorSurface1) 30%,
2025-09-22 18:58:40 +02:00
var(--colorSurface0) 90%,
transparent 100%
2025-09-22 13:16:18 +02:00
);
}
2025-09-22 20:37:28 +02:00
#ekrantytulowy div h1 {
2025-09-22 13:16:18 +02:00
font-size: 96pt !important;
margin-top: 13rem;
}
2025-09-22 20:37:28 +02:00
#ekrantytulowy div button {
2025-09-22 13:16:18 +02:00
position: relative;
color: var(--colorText);
text-shadow: 1px 1px 2px var(--colorBase), 0 0 1px var(--colorBase), 0 0 0.2px var(--colorBase);
box-shadow: 4px 10px 10px var(--colorBase);
background-color: var(--colorPeach);
background: linear-gradient(180deg,
var(--colorPeach) 0%,
var(--colorYellow) 35%,
var(--colorPeach) 65%,
var(--colorPeach) 100%
);
border-color: var(--colorText);
padding: 1rem;
border-width: .5rem;
font-size: 56pt;
2025-09-22 18:58:40 +02:00
margin-bottom: 10rem;
2025-09-22 13:16:18 +02:00
animation: ZacznijTracic 5s ease-in-out infinite;
}
@keyframes ZacznijTracic {
0% {
top: 0;
}
40% {
top: -2rem;
scale: 1.01;
}
60% {
top: -2rem;
scale: 1.01;
}
100% {
top: 0;
}
}
2025-09-22 13:45:32 +02:00
/* Formsy */
fieldset {
border: none;
}
legend {
font-size: 1rem;
font-weight: bold;
}
input[type="submit"] {
text-align: center;
font-size: 1.5rem;
padding: .3rem;
margin: auto;
display: block;
}
input[type="number"] {
width: 100%;
font-size: 22pt;
}
2025-09-22 13:16:18 +02:00
/* Animacje */
2025-09-22 16:36:33 +02:00
/* AI WYGENEROWAŁO TE KLASY I KEYFRAMEY */
.pokaz, .dialog-pokaz .okno {
animation: Pokaz 0.35s ease-in-out forwards;
2025-09-22 13:16:18 +02:00
}
2025-09-22 16:36:33 +02:00
.ukryj, .dialog-ukryj .okno {
animation: Ukryj 0.35s ease-in-out forwards;
2025-09-22 18:58:40 +02:00
display: none !important;
2025-09-22 16:36:33 +02:00
}
.dialog-pokaz {
animation: PokazDialog 0.35s ease-in-out forwards;
}
.dialog-ukryj {
animation: UkryjDialog 0.35s ease-in-out forwards;
2025-09-22 18:58:40 +02:00
display: none !important;
2025-09-22 16:36:33 +02:00
width: 0 !important;
height: 0 !important;
}
.ukryte, .ukryte * {
2025-09-22 18:58:40 +02:00
display: none !important;
2025-09-22 16:36:33 +02:00
width: 0 !important;
height: 0 !important;
}
@keyframes Pokaz {
2025-09-22 13:16:18 +02:00
0% {
opacity: 0;
2025-09-22 16:36:33 +02:00
transform: translateY(2rem);
2025-09-22 13:16:18 +02:00
}
100% {
opacity: 1;
2025-09-22 16:36:33 +02:00
transform: translateY(0);
2025-09-22 13:16:18 +02:00
}
}
2025-09-22 16:36:33 +02:00
@keyframes Ukryj {
2025-09-22 13:16:18 +02:00
0% {
opacity: 1;
2025-09-22 16:36:33 +02:00
transform: translateY(0);
display: initial;
2025-09-22 13:16:18 +02:00
}
100% {
opacity: 0;
2025-09-22 16:36:33 +02:00
transform: translateY(2rem);
display: initial;
2025-09-22 13:16:18 +02:00
}
}
2025-09-22 16:36:33 +02:00
@keyframes PokazDialog {
2025-09-22 13:16:18 +02:00
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2025-09-22 16:36:33 +02:00
@keyframes UkryjDialog {
2025-09-22 13:16:18 +02:00
0% {
opacity: 1;
2025-09-22 16:36:33 +02:00
display: initial;
2025-09-22 13:16:18 +02:00
}
100% {
opacity: 0;
2025-09-22 16:36:33 +02:00
display: initial;
2025-09-22 13:16:18 +02:00
}
}
/* Dialog */
.dialog {
position: fixed;
top: 3rem;
left: 0;
z-index: 100002;
background-color: rgba(30, 30, 46, 0.9);
width: 100vw;
height: calc(100vh - 3rem);
2025-09-22 13:45:32 +02:00
display: flex;
2025-09-22 13:16:18 +02:00
}
.okno {
padding: .5rem;
2025-09-22 13:45:32 +02:00
padding-bottom: 1rem;
border: .4rem solid var(--colorSurface1);
border-right-color: var(--colorSurface0);
border-bottom-color: var(--colorSurface0);
2025-09-22 13:16:18 +02:00
background: var(--colorMantle);
margin: auto;
width: 40rem;
}
2025-09-22 13:45:32 +02:00
.okno h2 {
margin-top: .3rem;
margin-left: .3rem;
}
2025-09-22 18:58:40 +02:00
/* Gra */
#gra {
overflow-y: auto;
display: flex;
max-height: calc(100vh - 4rem);
}
2025-09-22 22:46:30 +02:00
#gra table {
margin: auto;
border-radius: .3rem;
background: var(--colorBase);
}
2025-09-22 18:58:40 +02:00
#gra aside {
border-radius: .3rem;
background: var(--colorBase);
position: fixed;
margin: 1rem;
padding: 1rem;
2025-09-22 22:46:30 +02:00
width: 15rem;
2025-09-22 18:58:40 +02:00
}
#gra aside div {
font-size: 1.25rem;
display: flex;
flex-direction: row;
justify-content: space-between;
}
#gra h2 {
text-align: center;
}
#gra table {
margin: auto;
}
2025-09-22 20:37:28 +02:00
#gra td {
cursor: pointer;
}
2025-09-22 18:58:40 +02:00
#gra button {
2025-09-22 20:37:28 +02:00
width: 3.5rem;
2025-09-22 22:46:30 +02:00
height: 3.5rem;
2025-09-22 18:58:40 +02:00
}
#gra button:hover {
scale: 1.1;
box-shadow: 0px 7px 10px var(--colorSubtext0);
}
.bledna {
background: var(--colorRed);
color: var(--colorSurface2);
}
.poprawna {
background: var(--colorGreen);
color: var(--colorSurface2);
}
.bledna:hover {
scale: 1 !important;
box-shadow: 0px 0px 0px #000 !important;
background: var(--colorRed) !important;
color: var(--colorSurface2) !important;
cursor: not-allowed;
}