יחידה:ארגז חול/עלי/style.css
< יחידה:ארגז חול | עלי
.tabs__container {
display: flex;
flex-wrap: wrap;
margin: 0 auto 20px;
border-radius: 10px 10px 0 0;
}
.tabs__radio {
position: absolute;
opacity: 0;
}
.tabs__label {
width: 100%;
padding: 22px 20px;
background: #e5e5e5;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
color: #7f7f7f;
transition: background 0.3s, color 0.3s;
border: none;
border-radius: 0;
text-align: center;
}
.tabs__label:hover {
background: #d8d8d8;
}
.tabs__label:active {
background: #ccc;
}
.tabs__radio:checked + .tabs__label {
background: #fff;
color: #000;
border-top: solid 2px #000;
border-left: solid 2px #000;
border-right: solid 2px #000;
border-bottom: none;
}
.tabs__panel {
display: none;
padding: 20px 30px 30px;
background: #fff;
width: 100%;
border-left: solid 2px #000;
border-bottom: solid 2px #000;
border-right: solid 2px #000;
}
.tabs__radio:checked + .tabs__label + .tabs__panel {
display: block;
}
@media (min-width: 600px) {
.tabs__panel {
order: 99;
}
.tabs__label {
border-radius: 10px 10px 0 0;
border-bottom: solid 2px #000;
}
}