Skip to content

Commit 7d19f3d

Browse files
author
Vlad Sternbach
committed
minor structure change
1 parent ea4a6fc commit 7d19f3d

File tree

5 files changed

+36
-39
lines changed

5 files changed

+36
-39
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
* {
2+
box-sizing: border-box;
3+
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
4+
}
5+
6+
.discussion-timeline {
7+
position: relative;
8+
margin: 0 auto;
9+
width: 760px;
10+
&:before {
11+
position: absolute;
12+
top: 0;
13+
bottom: 0;
14+
left: 79px;
15+
z-index: -1;
16+
display: block;
17+
width: 2px;
18+
content: "";
19+
background-color: #f3f3f3;
20+
}
21+
}

src/components/comments.component.ts src/components/comment-list/comments.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* Created by voland on 4/2/16.
33
*/
4-
import Component from '../decorators';
4+
import Component from '../../decorators';
5+
import './comment-list.scss';
56

67
@Component('app.components', 'comments', {
78
template: `

src/components/comment.component.ts src/components/comment/comment.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Created by voland on 4/2/16.
33
*/
4-
import Component from 'decorators';
5-
import 'components/comment.scss';
4+
import Component from '../../decorators';
5+
import './comment.scss';
66

77
@Component('app.components', 'comment', {
88
template: `

src/components/comment.scss src/components/comment/comment.scss

+9-34
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
* {
2-
box-sizing: border-box;
3-
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
4-
}
5-
6-
.discussion-timeline {
7-
position: relative;
8-
margin: 0 auto;
9-
width: 760px;
10-
}
11-
.discussion-timeline::before {
12-
position: absolute;
13-
top: 0;
14-
bottom: 0;
15-
left: 79px;
16-
z-index: -1;
17-
display: block;
18-
width: 2px;
19-
content: "";
20-
background-color: #f3f3f3;
21-
}
22-
231
.comment-wrapper {
242
position: relative;
253
padding-left: 64px;
@@ -94,7 +72,6 @@
9472
user-select: none;
9573
background-color: transparent;
9674
border: 0;
97-
appearance: none;
9875
}
9976

10077

@@ -141,7 +118,6 @@
141118
}
142119

143120
.comment-tabnav {
144-
padding-top: 0;
145121
background-color: #fff;
146122
padding: 6px 10px 0;
147123
border-radius: 3px 3px 0 0;
@@ -165,14 +141,13 @@
165141
background-color: transparent;
166142
border: 1px solid transparent;
167143
border-bottom: 0;
144+
&:hover {
145+
text-decoration: none;
146+
}
147+
&.selected {
148+
color: #333;
149+
background-color: #fff;
150+
border-color: #ddd;
151+
border-radius: 3px 3px 0 0;
152+
}
168153
}
169-
.tabnav-tab:hover {
170-
text-decoration: none;
171-
}
172-
173-
.tabnav-tab.selected {
174-
color: #333;
175-
background-color: #fff;
176-
border-color: #ddd;
177-
border-radius: 3px 3px 0 0;
178-
}

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import 'angular-ui-router';
77

88
import services from './services/services.module';
99
import components from './components/components.module';
10-
import './components/comment.component.ts';
11-
import './components/comments.component.ts';
10+
import './components/comment/comment.component.ts';
11+
import './components/comment-list/comments.component.ts';
1212

1313
// configure the main module
1414
angular.module('app', [

0 commit comments

Comments
 (0)