Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# cssBayan
Deploy link: https://intetrix.github.io/cssBayan/ccsBayan/
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
80 changes: 80 additions & 0 deletions ccsBayan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSSBayan</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h1>CSS Bayan</h1>
<div class="accordion">
<div class="accordion__item">
<input
type="radio"
class="accordion__input"
id="accordion-first"
name="input-name"
checked
/>
<label class="accordion__item-title" for="accordion-first">
<span>Git meme</span>
<img class="accordion__icon" src="467264.png" />
<div class="accordion__content">
<img class="accordion__img" src="7IswiMJfyJ0.jpg" />
</div>
</label>
</div>

<div class="accordion__item">
<input
type="radio"
class="accordion__input"
id="accordion-second"
name="input-name"
/>
<label class="accordion__item-title" for="accordion-second">
<span>ChatGPT meme</span>
<img class="accordion__icon" src="467264.png" />
<div class="accordion__content">
<img class="accordion__img" src="OmTgBxoPHD0.jpg" />
</div>
</label>
</div>

<div class="accordion__item">
<input
type="radio"
class="accordion__input"
id="accordion-third"
name="input-name"
/>
<label class="accordion__item-title" for="accordion-third">
<span>Fire rules meme</span>
<img class="accordion__icon" src="467264.png" />
<div class="accordion__content">
<img class="accordion__img" src="firec.jpg" />
</div>
</label>
</div>

<div class="accordion__item">
<input
type="radio"
class="accordion__input"
id="accordion-fours"
name="input-name"
/>
<label class="accordion__item-title" for="accordion-fours">
<span>Read documentation meme</span>
<img class="accordion__icon" src="467264.png" />
<div class="accordion__content">
<img class="accordion__img" src="gig.jpg" />
</div>
</label>
</div>
</div>
</div>
</body>
</html>
122 changes: 122 additions & 0 deletions ccsBayan/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
body {
background: linear-gradient(45deg, #eecfba, #c5dde8);
min-height: 100vh;
}

.container {
max-width: 50vw;
margin: 0 auto;
}

.accordion__input {
-webkit-appearance: none;
appearance: none;
width: 0;
}

.accordion {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

h1 {
-webkit-text-stroke: 0.02em rgb(200, 220, 228);
}

.accordion__item {
width: 50vw;
}

span {
width: 94%;
}

.accordion__icon {
width: 4%;
margin-top: 2%;
transform: translateY(-50%);
transition: 0.5s;
margin-left: auto;
opacity: 0;
}

.accordion__item:active > label .accordion__icon {
border-radius: 0.5em;
background-color: #9766ff;
}
.accordion__item:active > .accordion__item-title {
color: #9766ff;
}

.accordion__input:checked ~ label .accordion__icon {
transform: translateY(-50%) rotate(180deg);
}

.accordion__content {
width: 0;
transform: scale(0.6);
transition: all 0.5s linear;
margin: 1rem auto 0 auto;
}

.accordion__img {
max-width: 100%;
display: block;
}

.accordion__input:checked ~ label .accordion__content {
width: inherit;
transform: scale(1);
}

.accordion__item-title {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
font-size: 1.5em;
padding-top: 0.5em;
font-weight: bold;
box-shadow: 0 -5px 5px -5px #333;
cursor: pointer;
transition: 0.3s all;
}

@media screen and (max-width: 1080px) {
html {
font-size: 15px;
}
@media screen and (max-width: 1180px) {
html {
font-size: 12px;
}
}
@media screen and (max-width: 568px) {
html {
font-size: 8px;
}
}
}

@media (hover: hover) {
.accordion:hover .accordion__icon {
opacity: 1;
}

.accordion:hover {
-webkit-text-stroke: 0.04em rgb(200, 220, 228);
transition: 0.2s;
}

label:hover .accordion__content {
width: inherit;
transform: scale(1);
}

.accordion__item:hover .accordion__icon {
transform: translateY(-50%) rotate(90deg);
transition: 0.9s;
}
}
Empty file removed index.html
Empty file.
Empty file removed style.css
Empty file.