Skip to content

Commit c6cfe1f

Browse files
committed
Updates css
new svg icons
1 parent 8aca226 commit c6cfe1f

File tree

11 files changed

+85
-26
lines changed

11 files changed

+85
-26
lines changed

src/css/footer.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,37 @@
107107
}
108108

109109
a.facebook-icon:before {
110-
content: url('../img/facebook.png');
110+
content: url('../img/facebook.svg');
111111
width: 32px;
112112
height: 32px;
113113
}
114114

115115
a.twitter-icon:before {
116-
content: url('../img/twitter.png');
116+
content: url('../img/twitter.svg');
117117
width: 32px;
118118
height: 32px;
119119
}
120120

121121
a.git-icon:before {
122-
content: url('../img/git.png');
122+
content: url('../img/github.svg');
123+
width: 32px;
124+
height: 32px;
125+
}
126+
127+
a.medium-icon:before {
128+
content: url('../img/medium.svg');
129+
width: 32px;
130+
height: 32px;
131+
}
132+
133+
a.linkedin-icon:before {
134+
content: url('../img/linkedin.svg');
135+
width: 32px;
136+
height: 32px;
137+
}
138+
139+
a.twitch-icon:before {
140+
content: url('../img/twitch.svg');
123141
width: 32px;
124142
height: 32px;
125143
}

src/css/helios-gcx.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ ul#ds_sites_list li a:active {
176176
}
177177

178178
.navbar-menu {
179+
background: transparent!important;
180+
box-shadow: 0!important;
179181
display: table-cell;
180182
}
181183

@@ -451,9 +453,8 @@ gcx-full .full-articles {
451453
.dark-mode .doc .literalblock .title,
452454
.dark-mode .doc .listingblock .title,
453455
.dark-mode .doc .openblock .title,
454-
.dark-mode .doc .tableblock caption,
455-
.dark-mode .doc a.link {
456-
color: var(--white)
456+
.dark-mode .doc .tableblock caption {
457+
color: var(--white);
457458
}
458459

459460
.doc .sect1 {
@@ -1274,4 +1275,41 @@ label.switch_label:after {
12741275

12751276
.dark-mode .enlighter-t-bootstrap4 .enlighter-k10 {
12761277
color: var(--white)!important;
1278+
}
1279+
1280+
@media only screen and (max-width: 600px) {
1281+
gcx-schema-topbar {
1282+
--gcx-topbar-padding: 10px 0;
1283+
font-size: 12px;
1284+
}
1285+
.is-clipped--navbar .navbar-menu {
1286+
background: #2e394e;
1287+
box-shadow: none!important;
1288+
}
1289+
.is-clipped--navbar #topbar-nav {
1290+
transition: all .7s linear;
1291+
}
1292+
.is-clipped--navbar .ds_buttons_button {
1293+
margin: 12px 0 0;
1294+
}
1295+
.is-clipped--navbar .navbar-switch {
1296+
margin: 12px 0 0;
1297+
}
1298+
.is-clipped--navbar .header {
1299+
padding: 18px 32px 205px 32px
1300+
}
1301+
.is-clipped--navbar .doc-link {
1302+
display: flex!important;
1303+
align-items: flex-start;
1304+
flex-direction: column;
1305+
}
1306+
.navbar-brand a {
1307+
padding-left: 0;
1308+
padding-right: 0;
1309+
}
1310+
.is-clipped--navbar .navbar-end .navbar-end__group {
1311+
display: flex!important;
1312+
align-items: flex-start;
1313+
flex-direction: column;
1314+
}
12771315
}

src/img/facebook.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/github.svg

Lines changed: 1 addition & 12 deletions
Loading

src/img/linkedin.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/medium.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/small-arrow-right.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/twitch.svg

Lines changed: 3 additions & 0 deletions
Loading

src/img/twitter.svg

Lines changed: 1 addition & 5 deletions
Loading

src/js/03-fragment-jumper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
}
1111

1212
/*function computePosition (el, sum) {
13-
return article.contains(el) ? computePosition(el.offsetParent, el.offsetTop + sum) : sum
14-
}*/
13+
return article.contains(el) ? computePosition(el.offsetParent, el.offsetTop + sum) : sum
14+
}*/
1515

1616
function jumpToAnchor (e) {
1717
if (e) {
@@ -22,7 +22,7 @@
2222
//window.scrollTo(0, computePosition(this, 0) - toolbar.getBoundingClientRect().bottom)
2323
var elementToScroll = document.getElementById('#' + this.id)
2424
if (elementToScroll) {
25-
elementToScroll.scrollIntoView()
25+
elementToScroll.scrollIntoView({ block: 'start', behavior: 'smooth' })
2626
}
2727
}
2828

0 commit comments

Comments
 (0)