diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 15:40:53 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 17:13:51 +0100 |
commit | 80958c78fdc733c02077a9d2200be0c3f5ee623e (patch) | |
tree | a5f024c8127f98e9f08c3db369a9d219cf8c30c7 /client/src/app/videos/+video-edit/shared | |
parent | 83c663ef0e94242762ed5f6d2875fc55f4a5603e (diff) | |
download | PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.gz PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.tar.zst PeerTube-80958c78fdc733c02077a9d2200be0c3f5ee623e.zip |
Add loader when expanding long video description
Diffstat (limited to 'client/src/app/videos/+video-edit/shared')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.scss | 56 | ||||
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.module.ts | 33 |
2 files changed, 89 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.scss b/client/src/app/videos/+video-edit/shared/video-edit.component.scss new file mode 100644 index 000000000..9ee0c520c --- /dev/null +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.scss | |||
@@ -0,0 +1,56 @@ | |||
1 | .btn-file { | ||
2 | position: relative; | ||
3 | overflow: hidden; | ||
4 | display: block; | ||
5 | } | ||
6 | |||
7 | .btn-file input[type=file] { | ||
8 | position: absolute; | ||
9 | top: 0; | ||
10 | right: 0; | ||
11 | min-width: 100%; | ||
12 | min-height: 100%; | ||
13 | font-size: 100px; | ||
14 | text-align: right; | ||
15 | filter: alpha(opacity=0); | ||
16 | opacity: 0; | ||
17 | outline: none; | ||
18 | background: white; | ||
19 | cursor: inherit; | ||
20 | display: block; | ||
21 | } | ||
22 | |||
23 | .form-group { | ||
24 | margin-bottom: 10px; | ||
25 | } | ||
26 | |||
27 | div.tags { | ||
28 | height: 40px; | ||
29 | font-size: 20px; | ||
30 | margin-top: 20px; | ||
31 | |||
32 | .tag { | ||
33 | margin-right: 10px; | ||
34 | |||
35 | .remove { | ||
36 | cursor: pointer; | ||
37 | } | ||
38 | } | ||
39 | } | ||
40 | |||
41 | div.file-to-upload { | ||
42 | height: 40px; | ||
43 | |||
44 | .glyphicon-remove { | ||
45 | cursor: pointer; | ||
46 | } | ||
47 | } | ||
48 | |||
49 | .little-information { | ||
50 | font-size: 0.8em; | ||
51 | font-style: italic; | ||
52 | } | ||
53 | |||
54 | .label-tags { | ||
55 | margin-bottom: 0; | ||
56 | } | ||
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.module.ts b/client/src/app/videos/+video-edit/shared/video-edit.module.ts new file mode 100644 index 000000000..c64cea920 --- /dev/null +++ b/client/src/app/videos/+video-edit/shared/video-edit.module.ts | |||
@@ -0,0 +1,33 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | |||
3 | import { TagInputModule } from 'ngx-chips' | ||
4 | import { TabsModule } from 'ngx-bootstrap/tabs' | ||
5 | |||
6 | import { VideoService, MarkdownService, VideoDescriptionComponent } from '../../shared' | ||
7 | import { SharedModule } from '../../../shared' | ||
8 | |||
9 | @NgModule({ | ||
10 | imports: [ | ||
11 | TagInputModule, | ||
12 | TabsModule.forRoot(), | ||
13 | |||
14 | SharedModule | ||
15 | ], | ||
16 | |||
17 | declarations: [ | ||
18 | VideoDescriptionComponent | ||
19 | ], | ||
20 | |||
21 | exports: [ | ||
22 | TagInputModule, | ||
23 | TabsModule, | ||
24 | |||
25 | VideoDescriptionComponent | ||
26 | ], | ||
27 | |||
28 | providers: [ | ||
29 | VideoService, | ||
30 | MarkdownService | ||
31 | ] | ||
32 | }) | ||
33 | export class VideoEditModule { } | ||