Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions cssBayan/css/media.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
@media (hover: hover) {
.bayan-wrapper {
cursor: pointer;
}

.bayan-wrapper:hover>.bayan-img {
margin: 3rem auto;
height: 30rem;
width: 25rem;
opacity: 1;
filter: blur(0);
}

.bayan-wrapper:hover>.bayan-head>.bayan-down-icon {
transform: rotate(180deg);
fill: white;
}

.bayan:hover svg {
fill: white;
}

.bayan:hover h2 {
color: white
}
}

@media (hover: none) {
.bayan-toggle:checked~.bayan-img {
animation: none;
}
}

@media only screen and (min-width: 64.5em) {
html {
font-size: 55%;
}
}

@media only screen and (max-width: 64.3em) {
html {
font-size: 40%;
}

.container {
min-height: 111rem;
}
}

@media only screen and (max-width: 43em) {
.title {
font-size: 5rem;
}

.container {
max-width: 75vw;
}

.bayan-content {
font-size: 2rem;
}
}

@media only screen and (max-width: 33em) {
html {
font-size: 40%;
}

.bayan-img {
width: 21rem;
height: 0;
}

.bayan-toggle:checked~.bayan-img {
height: 25rem;
width: 20rem;
}

.container {
min-height: 106rem;
}

.bayan-content {
font-size: 1.6rem;
}
}
159 changes: 159 additions & 0 deletions cssBayan/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
@keyframes bayanClick {
0% {
height: 30rem;
filter: blur(0);
}

25% {
height: 37rem;
filter: blur(.13rem);
transform: translateY(-1rem);
padding-bottom: 3rem;
}

40% {
height: 28rem;
filter: blur(.03rem);
transform: translateY(0);
padding-bottom: 0rem;
}

60% {
height: 30.5rem;
filter: blur(.05);
transform: translateY(-.2rem);
}

80% {
height: 29.87rem;
filter: blur(.03);
transform: translateY(0rem);
}

100% {
height: 30rem;
filter: blur(0);
}
}

* {
box-sizing: inherit;
margin: 0;
padding: 0;
}

html {
font-size: 62.5%;
box-sizing: border-box;
}

body {
font-family: Open Sans, sans-serif;
background-image: linear-gradient(to bottom right, #BB000E, #E31C25);
}

::selection {
background-color: #111111;
color: #BB000E;
}

.container {
max-width: 50vw;
height: 100vh;
margin: 10rem auto;
}

.title {
font-size: 7rem;
color: #1C1C1C;
margin-right: 1.5rem;
font-weight: 800;
margin-bottom: 1.5rem;
}

.bayan {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: center;
justify-content: center;
min-width: 70%;
min-height: 5rem;
margin: 0 auto;
}

.bayan-head {
display: flex;
align-items: center;
justify-content: space-between;
height: 6rem;
background-image: linear-gradient(to right, #E31C25, #BB000E);
}

.bayan-down-icon {
height: 3rem;
width: 3rem;
fill: #1C1C1C;
margin-right: 2rem;
transition: .2s all .1s;
}

.bayan-wrapper {
min-width: 100%;
min-height: 5rem;
background-image: linear-gradient(to bottom right, #111111, #1C1C1C);
color: white;
border-radius: .6rem;
overflow: hidden;
box-shadow: 0 0 6rem rgba(0, 0, 0, .5);
}

.bayan-toggle {
display: none;
}

.bayan-content {
font-weight: 300;
font-size: 2.3rem;
margin-left: 2rem;
color: #1C1C1C;
transition: .2s all .1s;
}

.bayan-img {
display: block;
margin: 1.5rem auto;
width: 21rem;
height: 0;
opacity: 0;
border-radius: .3rem;
filter: blur(.3rem);
will-change: height, width, transform;
transition:
opacity .2s,
height .5s cubic-bezier(.4, .9, 0, 1.08),
width .3s cubic-bezier(.4, .9, 0, 1.08) .4s,
transform .3s,
filter .2s;
}

.bayan-toggle:checked~.bayan-img {
margin: 3rem auto;
height: 30rem;
width: 25rem;
opacity: 1;
filter: blur(0);
animation: bayanClick .5s;
}

.bayan-toggle:checked+.bayan-head>.bayan-content {
color: white;
}

.bayan-toggle:checked+.bayan-head>.bayan-down-icon {
fill: white;
}

.bayan-toggle:checked+.bayan-head>.bayan-down-icon {
transform: rotate(180deg);
}
Binary file added cssBayan/img/cssBayan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssBayan/img/func.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssBayan/img/idea.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssBayan/img/json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions cssBayan/img/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions cssBayan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/media.css">
<title>cssBayan</title>
</head>

<body>
<div class="container">
<h1 class="title">CSS Bayan</h1>
<div class="bayan">
<label for="bayan-one" class="bayan-wrapper">
<input id="bayan-one" class="bayan-toggle" type="radio" name="bayan" checked>
<div class="bayan-head">
<h2 class="bayan-content">Best IDE</h2>
<svg class="bayan-down-icon">
<use xlink:href="img/sprite.svg#icon-chevron-down"></use>
</svg>
</div>
<img class="bayan-img" src="img/idea.jpg" alt="Very funny image 1">
</label>

<label for="bayan-two" class="bayan-wrapper">
<input id="bayan-two" class="bayan-toggle" type="radio" name="bayan">
<div class="bayan-head">
<h2 class="bayan-content">Why is my function not returning anything?</h2>
<svg class="bayan-down-icon">
<use xlink:href="img/sprite.svg#icon-chevron-down"></use>
</svg>
</div>
<img class="bayan-img" src="img/func.jpg" al`t="Very funny image 2">
</label>

<label for="bayan-three" class="bayan-wrapper">
<input id="bayan-three" class="bayan-toggle" type="radio" name="bayan">
<div class="bayan-head">
<h2 class="bayan-content">Jestkiy Bayan</h2>
<svg class="bayan-down-icon">
<use xlink:href="img/sprite.svg#icon-chevron-down"></use>
</svg>
</div>
<img class="bayan-img" src="img/cssBayan.jpg" alt="Very funny image 3">
</label>

<label for="bayan-four" class="bayan-wrapper">
<input id="bayan-four" class="bayan-toggle" type="radio" name="bayan">
<div class="bayan-head">
<h2 class="bayan-content">Backend 🤝 Frontend</h2>
<svg class="bayan-down-icon">
<use xlink:href="img/sprite.svg#icon-chevron-down"></use>
</svg>
</div>
<img class="bayan-img" src="img/json.png" alt="Very funny image 4">
</label>
</div>
</div>
</body>

</html>