Skip to content

Commit 27e5fc7

Browse files
committed
refactor: change navnar to header
1 parent a268eb2 commit 27e5fc7

File tree

3 files changed

+137
-2
lines changed

3 files changed

+137
-2
lines changed

scss/_header.scss

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
.app-header {
2+
position: relative;
3+
flex-direction: row;
4+
height: $navbar-height;
5+
padding: 0;
6+
margin: 0;
7+
background-color: $navbar-bg;
8+
@include borders($navbar-border);
9+
10+
.navbar-brand {
11+
display: inline-flex;
12+
align-items: center;
13+
justify-content: center;
14+
width: $navbar-brand-width;
15+
height: $navbar-height;
16+
padding: 0;
17+
margin-right: 0;
18+
background-color: $navbar-brand-bg;
19+
@include borders($navbar-brand-border);
20+
21+
.navbar-brand-minimized {
22+
display: none;
23+
}
24+
}
25+
26+
.navbar-toggler {
27+
min-width: 50px;
28+
padding: $navbar-toggler-padding-y 0;
29+
30+
&:hover .navbar-toggler-icon {
31+
background-image: $navbar-toggler-icon-hover;
32+
}
33+
}
34+
35+
.navbar-toggler-icon {
36+
height: 23px;
37+
background-image: $navbar-toggler-icon;
38+
}
39+
40+
.navbar-nav {
41+
flex-direction: row;
42+
align-items: center;
43+
}
44+
45+
.nav-item {
46+
position: relative;
47+
min-width: 50px;
48+
margin: 0;
49+
text-align: center;
50+
51+
button {
52+
margin: 0 auto;
53+
}
54+
55+
.nav-link {
56+
padding-top: 0;
57+
padding-bottom: 0;
58+
background: 0;
59+
border: 0;
60+
61+
.badge {
62+
position: absolute;
63+
top: 50%;
64+
left: 50%;
65+
margin-top: -16px;
66+
margin-left: 0;
67+
}
68+
69+
> .img-avatar {
70+
height: $navbar-height - 20px;
71+
margin: 0 10px;
72+
}
73+
}
74+
}
75+
76+
.dropdown-menu {
77+
padding-bottom: 0;
78+
line-height: $line-height-base;
79+
}
80+
81+
.dropdown-item {
82+
min-width: 180px;
83+
}
84+
}
85+
86+
// .navbar-brand {
87+
// color: $navbar-active-color;
88+
//
89+
// @include hover-focus {
90+
// color: $navbar-active-color;
91+
// }
92+
// }
93+
94+
.navbar-nav {
95+
.nav-link {
96+
color: $navbar-color;
97+
98+
@include hover-focus {
99+
color: $navbar-hover-color;
100+
}
101+
}
102+
103+
.open > .nav-link,
104+
.active > .nav-link,
105+
.nav-link.open,
106+
.nav-link.active {
107+
@include plain-hover-focus {
108+
color: $navbar-active-color;
109+
}
110+
}
111+
}
112+
113+
.navbar-divider {
114+
background-color: rgba(0, 0, 0, .075);
115+
}
116+
117+
@include media-breakpoint-up(lg) {
118+
.brand-minimized {
119+
.app-header {
120+
.navbar-brand {
121+
width: $navbar-brand-minimized-width;
122+
background-color: $navbar-brand-minimized-bg;
123+
@include borders($navbar-brand-minimized-border);
124+
125+
.navbar-brand-full {
126+
display: none;
127+
}
128+
129+
.navbar-brand-minimized {
130+
display: block;
131+
}
132+
}
133+
}
134+
}
135+
}

scss/coreui-standalone.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
@import "dropdown";
4040
@import "footer";
4141
@import "grid";
42+
@import "header";
4243
@import "images";
4344
@import "input-group";
4445
@import "modal";
4546
@import "nav";
46-
@import "navbar";
4747
@import "progress";
4848
@import "progress-group";
4949
@import "sidebar";

scss/coreui.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
@import "dropdown";
3838
@import "footer";
3939
@import "grid";
40+
@import "header";
4041
@import "input-group";
4142
@import "images";
4243
@import "list-group";
4344
@import "modal";
4445
@import "nav";
45-
@import "navbar";
4646
@import "progress";
4747
@import "progress-group";
4848
@import "sidebar";

0 commit comments

Comments
 (0)