Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Invert CSS logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lubo committed Aug 16, 2023
1 parent efa405c commit 2a42c98
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions src/components/home-page/services-tabs/ServicesTabs.module.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
.root {
display: flex;
flex-direction: column;
max-width: 980px;
margin: 24px auto;
padding: 24px 0;
}

.list {
margin: 36px 0;
display: flex;
flex-direction: row;
width: 100%;
}

.trigger {
flex: 1;
padding-bottom: 13px;
padding-top: 13px;
flex-direction: column;
flex: 0 0 auto;
}

.icon {
display: initial;
display: none;
}

.icon svg {
Expand All @@ -33,41 +27,40 @@
fill: currentColor;
}

.label {
display: none;
.content {
width: 100%;
}

.content ul {
line-height: 1.8;
}

@media screen and (min-width: 1025px) {
@media screen and (max-width: 1024px) {
.root {
flex-direction: row;
flex-direction: column;
}

.list {
flex: 0 0 auto;
flex-direction: column;
margin: 36px 0;
width: auto;
flex-direction: row;
margin: 0;
width: 100%;
}

.trigger {
flex: initial;
padding-bottom: 16px;
padding-top: 16px;
flex: 1;
padding-bottom: 13px;
padding-top: 13px;
}

.icon {
display: none;
display: unset;
}

.label {
display: initial;
display: none;
}

.content {
width: 100%;
width: auto;
}
}

0 comments on commit 2a42c98

Please sign in to comment.