Skip to content

Commit a241c56

Browse files
committed
Header buttons
1 parent 4bac608 commit a241c56

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="header-block header-block-buttons">
2+
<button type="button" class="btn btn-secondary btn-sm rounded-s buttons">
3+
<i class="fa fa-github-alt"></i>
4+
View on GitHub
5+
</button>
6+
<button type="button" class="btn btn-secondary btn-sm rounded-s buttons">
7+
<i class="fa fa-cloud-download"></i>
8+
Download .zip
9+
</button>
10+
<button type="button" class="btn btn-secondary btn-sm rounded-s buttons">
11+
<i class="fa fa-share-alt"></i>
12+
Share
13+
</button>
14+
</div>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.header .header-block-buttons {
2+
text-align: center;
3+
margin-left: auto;
4+
margin-right: auto;
5+
6+
.buttons {
7+
background-color: $color-divider;
8+
border: 1px solid $color-text;
9+
}
10+
11+
button:hover {
12+
background-color: $color-divider;
13+
border-color: $color-primary;
14+
color: $color-primary;
15+
}
16+
17+
button:active {
18+
background-color: $color-divider;
19+
border-color: $color-primary;
20+
}
21+
22+
button:focus {
23+
background-color: $color-divider;
24+
border-color: $color-primary;
25+
}
26+
}

src/app/_common/header/header.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{{> app/_common/header/collapse/collapse}}
44

55
{{> app/_common/header/search/search}}
6+
7+
{{> app/_common/header/buttons/buttons}}
68

79
{{> app/_common/header/nav/nav}}
810

0 commit comments

Comments
 (0)