]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/video-watch/video-watch.component.scss
Client: try to be responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-watch / video-watch.component.scss
CommitLineData
e31f6ad6 1#video-container {
e56b20f5 2 width: 100%;
e31f6ad6 3 height: 100%;
e56b20f5
C
4}
5
9c89a45c
C
6#video-not-found {
7 height: 300px;
8 line-height: 300px;
9 margin-top: 50px;
10 text-align: center;
11 font-weight: bold;
12}
13
cb11e775 14.embed-responsive {
9ced64e0 15 height: 500px;
cb11e775 16}
da932efc 17
9ced64e0
C
18#torrent-info {
19 font-size: 10px;
a64668c0
C
20 margin-top: 10px;
21 text-align: center;
9ced64e0
C
22
23 div {
a64668c0
C
24 min-width: 60px;
25 }
26}
27
28.embed-responsive {
29 @media screen and (max-width: 600px) {
30 height: 300px;
9ced64e0
C
31 }
32}
d1992b93
C
33
34#video-info {
09223546
C
35 .video-name-views {
36 font-weight: bold;
37 font-size: 18px;
38 height: $video-watch-title-height;
39 line-height: $video-watch-title-height;
897ec54d
C
40
41 .video-name {
42 padding-left: $video-watch-info-padding-left;
43 }
d1992b93 44
09223546
C
45 .video-views {
46 text-align: right;
897ec54d
C
47 // Keep a symmetry with the video name
48 padding-right: $video-watch-info-padding-left
d1992b93 49 }
3eeeb87f 50
09223546 51 }
d1992b93 52
09223546 53 .video-small-blocks {
ea9f487b 54 height: $video-watch-info-height;
09223546
C
55 color: $video-watch-info-color;
56 border-color: $video-watch-border-color;
57 border-width: 1px 0px;
58 border-style: solid;
59
60 .video-small-block {
61 height: $video-watch-info-height;
62 display: flex;
63 flex-direction: column;
64 justify-content: center;
65 text-align: center;
66
67 a {
68 cursor: pointer;
69 transition: color 0.3s;
3eeeb87f
C
70 white-space: nowrap;
71 overflow: hidden;
72 text-overflow: ellipsis;
09223546
C
73
74 &, &:hover {
75 color: inherit;
76 text-decoration:none;
77 }
d38b8281 78
09223546
C
79 &:hover {
80 color: #000 !important;
81 }
d38b8281
C
82 }
83
09223546
C
84 .option .glyphicon {
85 font-size: 22px;
86 color: inherit;
8ce9e815 87 opacity: 0.6;
09223546 88 margin-bottom: 10px;
d38b8281
C
89 }
90
09223546
C
91 .video-small-block-text {
92 font-size: 15px;
93 font-weight: bold;
d38b8281
C
94 }
95 }
96
09223546
C
97 .video-small-block:not(:last-child) {
98 border-width: 0 1px 0 0;
99 border-color: $video-watch-border-color;
100 border-style: solid;
d1992b93 101 }
4f8c0eb0 102
09223546
C
103 .video-small-block-author {
104 font-size: 15px;
105 font-weight: bold;
897ec54d
C
106 text-align: left;
107 padding-left: $video-watch-info-padding-left;
4f8c0eb0 108 }
d1992b93 109
09223546
C
110 .video-small-block-share, .video-small-block-more {
111 a.option {
112 display: block;
d1992b93 113
09223546
C
114 .glyphicon {
115 display: block;
116 }
117 }
d1992b93
C
118 }
119
09223546
C
120 .video-small-block-more .video-small-block-dropdown {
121 position: relative;
122
123 .dropdown-item .glyphicon {
124 margin-right: 5px;
125 }
d1992b93 126 }
d1992b93 127
09223546 128 .video-small-block-rating {
d1992b93 129
09223546
C
130 .video-small-block-like {
131 margin-bottom: 10px;
132 }
05a9feaa 133
09223546
C
134 .video-small-block-text {
135 vertical-align: top;
136 }
d1992b93 137
09223546
C
138 .glyphicon {
139 font-size: 18px;
140 margin: 0 10px 0 0;
141 }
6e07c3de 142
09223546
C
143 .interactive {
144 cursor: pointer;
145 transition: color 0.3s;
146
147 &.activated, &:hover {
148 color: #000;
149 }
150 }
6e07c3de
C
151 }
152 }
153
09223546
C
154 .video-details {
155 margin-top: 30px;
d07137b9 156
09223546 157 .video-details-date-description {
897ec54d 158 padding-left: $video-watch-info-padding-left;
d1992b93 159
09223546
C
160 .video-details-date {
161 font-weight: bold;
162 margin-bottom: 30px;
163 }
164 }
165
166 .video-details-attributes {
d1992b93 167 font-weight: bold;
09223546
C
168 font-size: 12px;
169
170 .video-details-attribute-label {
171 color: $video-watch-info-color;
172 display: inline-block;
173 width: 60px;
174 margin-right: 5px;
175 }
d1992b93 176 }
8ce9e815
C
177
178 .video-details-tags {
179 display: inline-block;
180
181 a {
182 display: inline-block;
183 margin-right: 3px;
184 font-size: 11px;
185 }
186 }
d1992b93 187 }
3eeeb87f
C
188
189 @media screen and (max-width: 400px) {
190 .video-name-views {
191 font-size: 16px !important;
192 }
193 }
194
195 @media screen and (max-width: 800px) {
196 .video-name-views {
197 .video-name {
198 padding-left: 5px;
199 padding-right: 0px;
200 }
201
202 .video-views {
203 padding-left: 0px;
204 padding-right: 5px;
205 }
206 }
207
208 .video-small-blocks {
209 a, .video-small-block-text {
210 font-size: 13px !important;
211 }
212
213 .glyphicon {
214 font-size: 18px !important;
215 }
216
217 .video-small-block-author {
218 padding-left: 10px;
219 }
220 }
221
222 .video-details {
223 .video-details-date-description {
224 padding-left: 10px;
225 font-size: 13px !important;
226 }
227
228 .video-details-attributes {
229 font-size: 11px !important;
230
231 .video-details-attribute-label {
232 width: 50px;
233 }
234 }
235 }
236 }
d1992b93 237}