Skip to content

Commit

Permalink
Remove all mixed declarations from the scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Oct 15, 2024
1 parent 75f3892 commit 78f3493
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 45 deletions.
11 changes: 5 additions & 6 deletions src/components/layout-header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ $without-sidebar: '(max-width: 991px)';
}

.searchForm {
@include with-gap;

display: flex;
flex: 0 1 100%;
position: relative;
height: 32px;

@include with-gap;

.fullMode & {
max-width: 380px;
}
Expand Down Expand Up @@ -155,14 +155,14 @@ $without-sidebar: '(max-width: 991px)';
}

.activeElements {
@include with-gap;

display: flex;
flex: 2;
justify-content: flex-end;
height: 40px;
align-items: center;

@include with-gap;

.collapsibleMode & {
flex: 0;
}
Expand Down Expand Up @@ -209,13 +209,12 @@ $without-sidebar: '(max-width: 991px)';
height: 32px;
opacity: 0.4;
transition: opacity 0.3s;
visibility: hidden;

&:hover {
opacity: 0.8;
}

visibility: hidden;

.searchInputContainer:focus-within & {
visibility: visible;
}
Expand Down
18 changes: 7 additions & 11 deletions styles/helvetica/boxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@
font-weight: 700;
margin-bottom: rem(7px);
margin-left: rem(10px);
padding-bottom: rem(2px);

@media (max-width: 991px) {
margin-left: 0;
}

padding-bottom: rem(2px);

.sidelinks {
float: right;
font-size: rem(14px);
Expand All @@ -59,12 +58,11 @@

.box-message {
margin: 0 0 rem(5px) rem(10px);
padding: rem(5px) rem(10px);

@media (max-width: 991px) {
margin-left: 0;
}

padding: rem(5px) rem(10px);
}

// Sidebar Friend block header
Expand Down Expand Up @@ -110,25 +108,23 @@
.content {
.box-body {
padding: 0 0 0 rem(11px);
background-color: #fff;

@include clearfix;

@media (max-width: 991px) {
padding: 0;
}

background-color: #fff;

@include clearfix;
}

.box-footer {
padding: rem(5px) 0 rem(5px) rem(11px);
font-size: rem(11px);
background-color: #fff;

@media (max-width: 991px) {
padding: rem(15px) 0 0;
}

font-size: rem(11px);
background-color: #fff;
}
}

Expand Down
12 changes: 5 additions & 7 deletions styles/shared/comment-likes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@
flex-basis: auto;
margin-right: rem(2px);
margin-top: rem(1px);
opacity: 0;
transition: opacity 0.2s;

@media (min-width: 769px) {
margin-right: rem(6px);
}

opacity: 0;
transition: opacity 0.2s;

&.liked,
&:focus-within {
opacity: 1;
Expand Down Expand Up @@ -114,6 +113,9 @@
text-align: right;
cursor: pointer;
margin-right: rem(2px);
font-size: rem(12px);
width: rem(7px);
color: #898989;

@media (min-width: 769px) {
margin-right: rem(6px);
Expand All @@ -123,10 +125,6 @@
&:active {
text-decoration: underline;
}

font-size: rem(12px);
width: rem(7px);
color: #898989;
}

&.has-my-like {
Expand Down
5 changes: 2 additions & 3 deletions styles/shared/notifications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@

.filter {
margin-left: 10px;
display: flex;
flex-wrap: wrap;

@media (max-width: 991px) {
margin-left: 0;
}

display: flex;
flex-wrap: wrap;

& > * {
margin-right: 10px;
text-decoration: none;
Expand Down
20 changes: 9 additions & 11 deletions styles/shared/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,25 @@ $post-line-height: rem(20px);

.post-body {
margin-left: 63px;
color: #666;
font-size: rem(14px);
line-height: rem(19px);

@media (max-width: 767px) {
margin-left: 0;
}

color: #666;
font-size: rem(14px);
line-height: rem(19px);

.post-text {
margin-bottom: rem(8px);
word-wrap: break-word;
color: #000;
font-size: rem(16px);
line-height: $post-line-height;

@media (max-width: 767px) {
min-height: rem(31px);
}

color: #000;
font-size: rem(16px);
line-height: $post-line-height;

&.modern {
max-height: 5 * $post-line-height;
overflow-y: hidden;
Expand Down Expand Up @@ -446,12 +444,12 @@ code.inline-code {
}

.post-text {
font-size: rem(21px);
line-height: rem(26px);

@media (max-width: 767px) {
min-height: 50px;
}

font-size: rem(21px);
line-height: rem(26px);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions styles/shared/search-feed.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.search-memo {
background-color: #f2f2f2;
padding: 15px 10px;

@media (min-width: 992px) {
margin-left: 10px;
}

background-color: #f2f2f2;
padding: 15px 10px;

.search-memo-header {
margin-bottom: 15px;
font-size: 18px;
Expand Down
7 changes: 3 additions & 4 deletions styles/shared/search-form.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.search-form {
margin-bottom: 15px;
float: right;
width: 100%;
display: flex;

@media (max-width: 768px) {
margin-top: 15px;
Expand All @@ -9,10 +12,6 @@
margin: 28px 0 20px;
}

float: right;
width: 100%;
display: flex;

.search-input {
flex: 1;
margin-top: 4px;
Expand Down

0 comments on commit 78f3493

Please sign in to comment.