-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopics.scss
149 lines (142 loc) · 2.63 KB
/
topics.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Place all the styles related to the topics controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
// Topics INDEX
.topics-index {
width: 100%;
padding: 40px 5vw;
@media (min-width: $tablet){
padding: 40px 0;
@include grid-column(6);
@include grid-push(3);
}
h1 {
margin: 0;
margin-bottom: 20px;
border-bottom: 1px solid $text-color;
padding-bottom: 20px;
}
ul.all-topics, ul {
list-style: none;
}
ul.all-topics {
margin: 0;
padding: 0;
a {
width: 100%;
display: block;
height: 50px;
margin-top: 40px;
color: lighten($text-color, 20%);
h2 {
margin: 0;
padding-top: 10px;
}
.thumb-circle {
img {
width: 100%;
object-fit: cover;
}
}
&:hover {
color: $text-color;
.thumb-circle {
border:2px solid $main-color;
}
}
}
ul {
li {
a {
height: 40px;
margin-top: 0;
h3 {
padding-top: 13px;
}
}
}
}
}
}
// NEW TOPIC
#new_topic_box {
@include grid-column(12);
background-color: white;
border-radius: 3px;
margin-top: 30px;
padding: 20px;
@media (min-width: $tablet){
@include grid-column(6);
@include grid-push(3);
}
}
// SHOW
.topic-header {
position: relative;
width: 100%;
padding: 30px 0;
.container {
.topic-name {
@include grid-column(12);
h1 {
position: absolute;
top: 10px;
left: 150px;
margin: 0;
margin-top: 20px;
font-size: 200%;
}
.topic-image {
width: 100px;
height: 100px;
overflow: hidden;
border-radius: 100px;
border: 3px solid white;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
}
}
.side-topics {
@include grid-column(12);
padding-top: 20px;
display: none;
h3 {
font-size: 100%;
font-weight: 700;
border-bottom: 1px solid $main-color;
padding-bottom: 20px;
}
a {
display: block;
width: 100%;
height: 50px;
color: $text-color;
.thumb-circle {
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
p {
font-family: $quicksand;
line-height: 50px;
font-weight: 700;
}
&:hover {
.thumb-circle {
border-color: $main-color;
}
}
}
@media (min-width: $tablet){
display: block;
@include grid-column(3);
}
}
// Topics in Posts#INDEX