Skip to content

Commit 851e635

Browse files
committed
Added the link and icon for Discord and adjusted the style of the top bar
1 parent 96ee749 commit 851e635

File tree

14 files changed

+151
-44
lines changed

14 files changed

+151
-44
lines changed

source/_themes/wazuh_doc_theme_v3/src/scss/components/_brand.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
position: relative;
99
display: flex;
1010
align-content: flex-end;
11+
padding-bottom: 2px;
1112

1213
img {
1314
width: auto;

source/_themes/wazuh_doc_theme_v3/src/scss/components/_navbar-menu.scss

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,48 @@ header {
1010

1111
.navbar-nav .nav-item {
1212
.nav-link {
13+
display: inline;
1314
padding: 24px 10px;
1415
font-weight: 500;
1516
}
17+
&.install,
18+
&.login {
19+
flex-grow: 0;
20+
.nav-link {
21+
display: flex;
22+
align-items: center;
23+
}
24+
}
25+
&.login {
26+
svg {
27+
width: 13px;
28+
height: 19px;
29+
}
30+
.nav-link {
31+
@include media-only(xl,wzh-xl) {
32+
width: 111.5px;
33+
}
34+
@include media-only(wzh-xl,xxl) {
35+
width: 106.5px;
36+
}
37+
@include media-min(xxl) {
38+
width: 112.1px;
39+
}
40+
}
41+
}
42+
&.install {
43+
.nav-link {
44+
@include media-only(xl,wzh-xl) {
45+
width: 141.8px;
46+
}
47+
@include media-only(wzh-xl,xxl) {
48+
width: 136.8px;
49+
}
50+
@include media-min(xxl) {
51+
width: 146px;
52+
}
53+
}
54+
}
1655
}
1756
}
1857

@@ -66,7 +105,7 @@ header {
66105
border: 1px solid;
67106
border-radius: 10px;
68107
position: absolute;
69-
top: -5px!important;
108+
top: 20px!important;
70109
&::before {
71110
position: absolute;
72111
top: -9px;
@@ -95,7 +134,7 @@ header {
95134
.navbar-nav {
96135
background-color: $light-color-base-space;
97136
.nav-link {
98-
color: $light-color-main-text;
137+
color: $light-color-main-text-extra;
99138
&.active,
100139
&:hover,
101140
&:focus,
@@ -111,7 +150,7 @@ header {
111150
}
112151
}
113152
svg {
114-
fill: $light-color-main-text;
153+
fill: $light-color-main-text-extra;
115154
}
116155
}
117156
}
@@ -123,7 +162,7 @@ header {
123162
border-color: $light-color-primary-lighter;
124163
}
125164
.dropdown-item {
126-
color: $light-color-main-text;
165+
color: $light-color-main-text-extra;
127166
&:hover {
128167
color: $light-color-primary;
129168
background-color: $light-color-base-space;

source/_themes/wazuh_doc_theme_v3/src/scss/components/_version-selector.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ header {
3939
padding: 0 5px;
4040
border: none;
4141
}
42+
@include media-only(xl, wzh-xl) {
43+
width: 263px;
44+
}
45+
@include media-only(wzh-xl, xxl) {
46+
width: 253px;
47+
}
48+
@include media-min(xxl) {
49+
width: 268px;
50+
}
4251
&:focus {
4352
box-shadow: none;
4453
}

source/_themes/wazuh_doc_theme_v3/src/scss/pages/index.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,34 @@
2424
header {
2525

2626
.mobile-secondary-header {
27+
.navbar-nav {
28+
@include media-only(xl,wzh-xl) {
29+
max-width: 900px;
30+
}
31+
@include media-only(wzh-xl,xxl) {
32+
max-width: 930px;
33+
}
34+
@include media-min(xxl) {
35+
max-width: 1000px;
36+
}
37+
}
2738
.nav-item {
2839
&.install,
2940
&.login {
3041
a {
3142
@include media-min(xl) {
3243
border-radius: 8px;
3344
border-width: 1.5px;
34-
font-size: 15px;
3545
height: 40px;
3646
padding: 0 20px;
3747
margin-left: 10px;
3848
}
49+
@include media-only(xl,xxl) {
50+
font-size: 15px;
51+
}
52+
@include media-min(xxl) {
53+
font-size: 16px;
54+
}
3955
}
4056
}
4157
&.install {

source/_themes/wazuh_doc_theme_v3/src/scss/parts/_header.scss

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ header {
3636
}
3737
svg {
3838
height: 33px;
39-
width: 144px;
39+
width: 173px;
40+
@include media-max (xl) {
41+
width: 127px;
42+
height: 26px;
43+
}
4044
@include media-max(sm){
4145
max-width: 180px;
4246
}
4347
@include media-only(xl,wzh-xl){
44-
height: 27px;
45-
width: 127px;
46-
}
47-
@include media-min(wzh-xl){
48-
height: 34px;
49-
width: 170px;
48+
height: 33px;
49+
width: 144px;
5050
}
5151
}
5252
}
@@ -71,6 +71,15 @@ header {
7171
flex-shrink: 0;
7272
flex-wrap: nowrap;
7373
}
74+
@include media-only(xl,wzh-xl) {
75+
width: 956px;
76+
}
77+
@include media-only(wzh-xl,xxl) {
78+
width: 996px;
79+
}
80+
@include media-min(xxl) {
81+
width: 1146px;
82+
}
7483
.container {
7584
@include media-min(xl){
7685
display: flex;
@@ -86,6 +95,16 @@ header {
8695
flex-direction: row;
8796
align-items: center;
8897
margin-left: auto;
98+
width: calc(100% - 30px);
99+
}
100+
@include media-only(xl,wzh-xl) {
101+
max-width: calc(900px - 273px);
102+
}
103+
@include media-only(wzh-xl,xxl) {
104+
max-width: calc(930px - 263px);
105+
}
106+
@include media-min(xxl) {
107+
max-width: calc(1000px - 278px);
89108
}
90109
}
91110
.nav-item {
@@ -101,7 +120,13 @@ header {
101120
padding-left: 8px;
102121
padding-right: 8px;
103122
}
123+
@include media-only(wzh-xl,xxl){
124+
font-size: 16px;
125+
padding-left: 9px;
126+
padding-right: 9px;
127+
}
104128
&.dropdown-toggle {
129+
padding: 0 10px;
105130
@include media-only(xl,wzh-xl){
106131
padding-left: 8px;
107132
padding-right: 2px;
@@ -296,7 +321,7 @@ header {
296321
width: 202px;
297322
}
298323
@include media-only (xl,wzh-xl) {
299-
width: 263px;
324+
width: 262px;
300325
}
301326
@include media-only (wzh-xl,xxl) {
302327
width: 253px;

source/_themes/wazuh_doc_theme_v3/static/css/min/api-reference.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/_themes/wazuh_doc_theme_v3/static/css/min/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/_themes/wazuh_doc_theme_v3/static/css/min/not-found.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/_themes/wazuh_doc_theme_v3/static/css/min/search-results.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/_themes/wazuh_doc_theme_v3/static/css/min/wazuh-documentation.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)