Skip to content

Commit d440bd2

Browse files
committed
Styling fixes
1 parent 78996ae commit d440bd2

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

src/_common/_styles/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
margin-bottom: $content-padding-y-md - $card-margin-bottom;
4343

4444

45-
@include media(xl) {
45+
@include media-up(xl) {
4646
margin-bottom: $content-padding-y-xl - $card-margin-bottom;
4747
}
4848

src/_common/card/card.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.card {
66
box-shadow: none;
77
}
8-
8+
99
margin-bottom: $card-margin-bottom;
1010
border-radius: 0;
1111
border: none;
@@ -43,7 +43,7 @@
4343
padding: 0.5rem $card-padding-x;;
4444

4545

46-
@include media(xl) {
46+
@include media-up(xl) {
4747
padding: 0.5rem $card-padding-x-xl;
4848
}
4949

src/_common/items-list/items-list.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $item-list-col-shrink: 3 !default;
1414
margin: 0;
1515
margin-bottom: 0;
1616
line-height: $item-list-line-height;
17-
17+
1818
@include media(lg) {
1919
font-size: 1rem;
2020
}
@@ -149,7 +149,7 @@ $item-list-col-shrink: 3 !default;
149149
font-size: 0.9rem;
150150
display: none;
151151
color: #666;
152-
font-weight: 700;
152+
font-weight: 700;
153153
padding-right: $item-list-padding-x;
154154

155155
@include media-down(sm) {
@@ -378,11 +378,11 @@ $item-list-col-shrink: 3 !default;
378378
.card > .item-list .item > .item-row {
379379
padding: 0 $card-padding-x;
380380

381-
@include media(xl) {
381+
@include media-up(xl) {
382382
padding: 0 $card-padding-x-xl;
383383
}
384384

385385
@include media-down(sm) {
386386
padding: 0 $card-padding-x-sm;
387387
}
388-
}
388+
}

src/app/_common/sidebar/sidebar.scss

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,24 @@
8787
background-color: $sidebar-color-secondary;
8888
}
8989

90+
.arrow {
91+
float: right;
92+
font-size: 18px;
93+
line-height: initial;
94+
transition: all 0.3s ease;
95+
margin-right: 0;
96+
97+
&:before {
98+
content: "\f105" !important;
99+
}
100+
}
101+
102+
li.open > a {
103+
.arrow {
104+
transform: rotate(90deg);
105+
}
106+
}
107+
90108

91109
// First level items
92110
&> li {
@@ -96,7 +114,7 @@
96114
padding-top: 15px;
97115
padding-bottom: 15px;
98116
padding-left: 20px;
99-
padding-right: 10px;
117+
padding-right: 15px;
100118
}
101119

102120
// First level active links have primary background
@@ -111,28 +129,14 @@
111129
background-color: darken($sidebar-color-primary, 3%);
112130
}
113131

114-
// Open items links
115-
&.open > a {
116-
i.arrow {
117-
transform: rotate(90deg);
118-
}
119-
}
120-
121132
// First level item links arrow
122133
& > a {
123134
i {
124135
margin-right: 5px;
125136
font-size: 16px;
126137

127138
&.arrow {
128-
float: right;
129139
font-size: 20px;
130-
line-height: initial;
131-
transition: all 0.3s ease;
132-
133-
&:before {
134-
content: "\f105" !important;
135-
}
136140
}
137141
}
138142
}
@@ -149,6 +153,7 @@
149153
padding-top: 10px;
150154
padding-bottom: 10px;
151155
padding-left: 50px;
156+
padding-right: 15px;
152157
background-color: darken($sidebar-color-primary, 3%);
153158
}
154159

@@ -162,6 +167,7 @@
162167
& > .sidebar-nav > li {
163168
a {
164169
padding-left: 60px;
170+
padding-right: 15px;
165171
}
166172

167173
& > .sidebar-nav > li {

0 commit comments

Comments
 (0)