Skip to content

Commit 4db620f

Browse files
committed
adding buttons
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 34bb286 commit 4db620f

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Critical items to know are:
1414
- changed behaviour
1515

1616
## [master](https://github.com/vsoch/mkdocs-jekyll/tree/master)
17+
- adding colored buttons, various fixed to navigation (0.0.11)
1718
- getting search working (0.0.1)
1819
- start of theme (0.0.0)

_docs/getting-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ folder that will parse into the site [feed]({{ site.baseurl }}/feed.xml)
162162
The bottom of the page links the user to a post archive, where posts are organized
163163
according to the year.
164164

165+
### Buttons
166+
167+
Buttons come in a nice array of colors. Here is the code for a basic example,
168+
and you'd want to vary the `.btn-<tag>` to get different classes.
169+
170+
```html
171+
<button class="btn btn-success">.btn-success</button>
172+
```
173+
174+
<button class="btn btn-success">.btn-success</button>
175+
<button class="btn btn-info">.btn-info</button>
176+
<button class="btn btn-secondary">.btn-secondary</button>
177+
<button class="btn btn-primary">.btn-primary</button>
178+
<button class="btn btn-danger">.btn-danger</button>
179+
<button class="btn btn-warning">.btn-warning</button>
180+
165181
### Badges
166182

167183
For news post items, it's nice to be able to tag it with something that indicates

assets/css/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ input {
7878
color: #888;
7979
font-style: italic; }
8080

81+
/* Badges */
82+
8183
span.badge {
8284
font-family: "Open Sans", sans-serif;
8385
padding: 2px 5px;
@@ -106,6 +108,35 @@ span.badge-success {
106108
background: forestgreen;
107109
color: #fff; }
108110

111+
/* Buttons */
112+
113+
.btn {
114+
border-radius: 3px;
115+
padding: 5px;
116+
color: white;
117+
}
118+
119+
.btn-primary {
120+
background: #3c7dae;
121+
color: #fff; }
122+
.btn-secondary {
123+
background: #999;
124+
color: #fff; }
125+
.btn-danger {
126+
background: firebrick;
127+
color: #fff; }
128+
.btn-warning {
129+
background: darkorange;
130+
color: #fff; }
131+
.btn-info {
132+
background: royalblue;
133+
color: #fff; }
134+
.btn-success {
135+
background: forestgreen;
136+
color: #fff; }
137+
138+
/* Primary Styles */
139+
109140
.md-clipboard:before, .md-icon, .md-nav__button, .md-nav__link:after, .md-nav__title:before, .md-search-result__article--document:before, .md-source-file:before, .md-typeset .admonition>.admonition-title:before, .md-typeset .admonition>summary:before, .md-typeset .critic.comment:before, .md-typeset .footnote-backref, .md-typeset .task-list-control .task-list-indicator:before, .md-typeset details>.admonition-title:before, .md-typeset details>summary:before, .md-typeset summary:after {
110141
font-family: Material Icons;
111142
font-style: normal;

0 commit comments

Comments
 (0)