Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 88236a2

Browse files
authored
Merge pull request #68 from stellar/lost-styling-fixes
Styling fixes that should have been in #65
2 parents 7b4de3d + f8a271f commit 88236a2

File tree

2 files changed

+40
-12
lines changed

2 files changed

+40
-12
lines changed

src/styles/_codeExamples.scss

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
1+
code-example {
2+
display: block;
3+
margin-bottom: 1em;
4+
}
5+
6+
code-example pre {
7+
border-top-left-radius: 0;
8+
border-top-right-radius: 0;
9+
}
10+
111
.language-switcher {
2-
background: #ccc;
3-
background: linear-gradient(0deg, #aaa, #ddd);
4-
border-top-left-radius: 0.5em;
5-
border-top-right-radius: 0.5em;
6-
color: #333;
12+
border: 1px solid $s-color-neutral6;
13+
border-bottom: none;
14+
border-top-left-radius: 2px;
15+
border-top-right-radius: 2px;
16+
color: $s-color-neutral4;
717
font-size: 0.75em;
8-
padding: 0.5em 1em;
18+
padding: 0.5em 1em 0 1em;
919

1020
.code-example-title {
1121
margin-right: 2em;
1222
}
1323

1424
.language-switcher--setter {
15-
border: 1px solid #aaa;
16-
border-radius: 1em;
25+
border: none;
26+
background: transparent;
27+
color: $s-color-neutral5;
1728
margin: 0 1em 0 0;
18-
padding: 0 0.65em;
29+
padding: 0 0.65em 0.4em 0.65em;
30+
}
31+
32+
.language-switcher--setter:not(.selected):hover {
33+
color: $s-color-neutral3;
34+
border-bottom: 3px solid $s-color-neutral3;
1935
}
2036

2137
.language-switcher--setter.selected {
22-
background: #aaa;
23-
background: linear-gradient(180deg, #999, #bbb);
24-
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5) inset;
38+
border-bottom: 3px solid $s-color-primary4;
39+
color: $s-color-primary4;
2540
}
2641
}
2742

src/styles/index.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,19 @@ s-read-md .codeBlock {
243243
color: red;
244244
}
245245

246+
// sequential navigation for multi-page docs (e.g. "get started")
247+
.sequence-navigation {
248+
overflow: hidden;
249+
margin: 2em 0;
250+
}
251+
252+
.button--previous {
253+
float: left;
254+
}
255+
256+
.button--next {
257+
float: right;
258+
}
246259

247260
// Page specific comes after
248261
@import 'landing0616';

0 commit comments

Comments
 (0)