Skip to content

Commit 2a5a4e4

Browse files
committed
Edit edit-button style
Edit side-nav-item style Edit post-navigator style Add "node_modules" folder to tslint excludes
1 parent 09bec82 commit 2a5a4e4

5 files changed

Lines changed: 30 additions & 5 deletions

File tree

src/app/shared/components/post-header/post-header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<header class="post-header">
22
<h1 class="post-header-text">{{title}}</h1>
3-
<a class="edit-button button" routerLink="/">
3+
<a class="edit-button button btn btn-sm" routerLink="/">
44
<i class="fa fa-pencil"></i>
55
Edit
66
</a>

src/styles/components/_button.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
.button {
22
color: $theme-color;
33
display: inline-block;
4-
font-size: 14px;
5-
font-weight: 400;
6-
line-height: 1.2em;
74
text-transform: uppercase;
85
border-width: 1px;
96
border-style: solid;
107
border-color: $theme-color;
118
border-image: initial;
129
border-radius: 3px;
13-
padding: 10px;
1410
transition: background 0.3s ease 0s, color 0.3s ease 0s;
1511
text-decoration: none;
1612

src/styles/components/_doc-navigator.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,31 @@
44
justify-content: space-between;
55
flex-wrap: wrap;
66

7+
.doc-prev,
8+
.doc-next {
9+
padding: 0.25rem;
10+
}
11+
712
.doc-prev {
813
justify-self: start;
914
}
1015

1116
.doc-next {
1217
justify-self: end;
1318
}
19+
20+
> :only-child {
21+
&.doc-next {
22+
margin-left: auto;
23+
}
24+
}
25+
}
26+
27+
@include screen-max-md {
28+
.doc-prev-next {
29+
.doc-prev,
30+
.doc-next {
31+
margin-top: 1rem;
32+
}
33+
}
1434
}

src/styles/layout/_side-nav.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
.navbar {
1313
display: block;
1414

15+
.nav-item {
16+
margin-bottom: 1rem;
17+
}
18+
1519
.section-title {
1620
font-size: 1rem;
1721
color: $side-nav-section-title-text-color;

tslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"extends": "tslint:recommended",
3+
"linterOptions": {
4+
"exclude": [
5+
"node_modules"
6+
]
7+
},
38
"rules": {
49
"array-type": false,
510
"arrow-parens": false,

0 commit comments

Comments
 (0)