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

Styling fixes that should have been in #65 #68

Merged
merged 2 commits into from
Jul 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions src/styles/_codeExamples.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
code-example {
display: block;
margin-bottom: 1em;
}

code-example pre {
border-top-left-radius: 0;
border-top-right-radius: 0;
}

.language-switcher {
background: #ccc;
background: linear-gradient(0deg, #aaa, #ddd);
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
color: #333;
border: 1px solid $s-color-neutral6;
border-bottom: none;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
color: $s-color-neutral4;
font-size: 0.75em;
padding: 0.5em 1em;
padding: 0.5em 1em 0 1em;

.code-example-title {
margin-right: 2em;
}

.language-switcher--setter {
border: 1px solid #aaa;
border-radius: 1em;
border: none;
background: transparent;
color: $s-color-neutral5;
margin: 0 1em 0 0;
padding: 0 0.65em;
padding: 0 0.65em 0.4em 0.65em;
}

.language-switcher--setter:not(.selected):hover {
color: $s-color-neutral3;
border-bottom: 3px solid $s-color-neutral3;
}

.language-switcher--setter.selected {
background: #aaa;
background: linear-gradient(180deg, #999, #bbb);
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5) inset;
border-bottom: 3px solid $s-color-primary4;
color: $s-color-primary4;
}
}

13 changes: 13 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,19 @@ s-read-md .codeBlock {
color: red;
}

// sequential navigation for multi-page docs (e.g. "get started")
.sequence-navigation {
overflow: hidden;
margin: 2em 0;
}

.button--previous {
float: left;
}

.button--next {
float: right;
}

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