Skip to content

Commit

Permalink
Merge pull request #10 from 3Lord3/dev
Browse files Browse the repository at this point in the history
Адаптивность
  • Loading branch information
3Lord3 authored Dec 1, 2023
2 parents 0f90a1c + 5cf9135 commit 68bd637
Show file tree
Hide file tree
Showing 10 changed files with 299 additions and 223 deletions.
27 changes: 27 additions & 0 deletions css/animations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@keyframes magnification {
0% {
transform: scale(0.5);
}

80% {
transform: scale(1.05);
}

100% {
transform: scale(1.0);
}
}

@keyframes bganimation {
0% {
background-position: 0 0;
}

50% {
background-position: 50% 50%;
}

100% {
background-position: 0 0;
}
}
203 changes: 0 additions & 203 deletions css/body.css

This file was deleted.

6 changes: 6 additions & 0 deletions css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
--red: rgb(206, 75, 75);
--purple: rgb(167, 59, 167);
--blue: rgb(79, 79, 185);

--bg-pink: rgb(250, 139, 255);
--bg-yellow: rgb(236, 255, 127);
--bg-blue: rgb(139, 209, 255);
--bg-cyan: rgb(43, 210, 255);

--mark: rgb(253, 239, 109);

--black-transparent: rgba(0, 0, 0, .75);
Expand Down
27 changes: 27 additions & 0 deletions css/end.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.end-wrapper {
animation: magnification 0.75s 0s;
min-width: 310px;
display: flex;
justify-content: center;
}

#reset {
font-size: 42px;
margin: 0;
padding: 8px;
}

#result {
font-size: 42px;
margin: 0 10px 0 0;
}

@media screen and (max-width: 680px) {
#result {
font-size: 32px;
}

#reset {
font-size: 32px;
}
}
55 changes: 55 additions & 0 deletions css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
* {
box-sizing: border-box;
font-family: sans-serif;
user-select: none;
}

body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow-y: hidden;
margin: 0;

background: linear-gradient(135deg, var(--bg-pink), var(--bg-blue) 30%, var(--bg-yellow), var(--bg-cyan));
background-size: 400%;
animation: bganimation 15s 0s infinite;
}

.block {
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
color: white;
border: 0;
padding: 8px 12px;
border-radius: 6px;
background: var(--black-transparent);
margin-bottom: 10px;
user-select: none;
}

.buttons-block {
display: flex;
flex-direction: column;
margin: 0 2px;
}

button:hover,
button:active {
background: var(--black-more-transparent);
cursor: pointer;
}

@media screen and (max-width: 680px) {
.block {
font-size: 18px;
padding: 8px 8px;
}

.buttons-block button {
font-size: 13px;
}
}
6 changes: 5 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
@import url(./colors.css);
@import url(./body.css);
@import url(./animations.css);
@import url(./global.css);
@import url(./start.css);
@import url(./wrapper.css);
@import url(./end.css);
Loading

0 comments on commit 68bd637

Please sign in to comment.