]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-edit/video-add.component.scss
Support video views/viewers stats in server
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
63c4db6d 3
fbad87b0
C
4$border-width: 3px;
5$border-type: solid;
6$border-color: #EAEAEA;
9181bc0c 7$nav-link-height: 40px;
27e1a06c 8
4e1592da 9.upload-message {
dfe3f7b7
K
10 width: 100%;
11 text-align: center;
4e1592da
MK
12 font-size: 15px;
13 margin-bottom: 0;
52a354ab 14 border-radius: 0;
4e1592da
MK
15
16 &:last-child {
17 margin-bottom: 1rem;
18 }
dfe3f7b7 19
4e1592da
MK
20 .about-link,
21 .contact-link {
dfe3f7b7
K
22 @include peertube-button-link;
23 @include orange-button;
24
25 height: fit-content;
26 margin-top: 10px;
27 }
4e1592da
MK
28}
29
30.upload-image {
31 width: 100%;
32 text-align: center;
dfe3f7b7
K
33
34 img {
35 margin-top: 10px;
36 margin-bottom: 75px;
37 width: 220px;
38 height: auto;
39 }
40
41 @media screen and (max-height: 600px) {
42 img {
43 margin-top: 5px;
44 width: 160px;
45 }
46 }
47}
48
cd3d847d 49.margin-content {
2e7f2627 50 padding-top: 20px;
cd3d847d
C
51}
52
45c6bcf3
C
53::ng-deep .video-add-nav {
54 border-bottom: $border-width $border-type $border-color;
931d3430 55 margin: 20px 0 0 !important;
45c6bcf3 56
23f1b9da
C
57 &.hide-nav {
58 display: none !important;
59 }
60
45c6bcf3
C
61 a.nav-link {
62 @include disable-default-a-behaviour;
63
64 margin-bottom: -$border-width;
9181bc0c 65 height: $nav-link-height !important;
45c6bcf3
C
66 padding: 0 30px !important;
67 font-size: 15px;
68
ed5bb517
K
69 border: $border-width $border-type transparent;
70
71 span {
72 border-bottom: 2px solid transparent;
73 }
74
45c6bcf3 75 &.active {
ed5bb517
K
76 border-color: $border-color;
77 border-bottom-color: transparent;
218f730c 78 background-color: pvar(--submenuBackgroundColor) !important;
45c6bcf3
C
79
80 span {
ed5bb517 81 border-bottom-color: pvar(--mainColor);
cadb46d8 82 }
c182778e 83 }
ed5bb517
K
84
85 &:hover:not(.active) {
86 border-color: transparent;
87 }
c182778e 88 }
45c6bcf3 89}
c182778e 90
45c6bcf3
C
91::ng-deep .upload-video-container {
92 border: $border-width $border-type $border-color;
c9ff8a08 93 border-top: transparent;
45c6bcf3 94
218f730c 95 background-color: pvar(--submenuBackgroundColor);
c9ff8a08
RK
96 border-bottom-left-radius: 3px;
97 border-bottom-right-radius: 3px;
45c6bcf3
C
98 width: 100%;
99 min-height: 440px;
100 padding-bottom: 20px;
101 display: flex;
102 justify-content: center;
2e7f2627 103 padding-top: 20px;
c9ff8a08
RK
104
105 &.dragover {
e66883b3 106 border: 3px dashed pvar(--mainColor);
c9ff8a08 107 }
03652b31 108}
9181bc0c
K
109
110@mixin nav-scroll {
111 ::ng-deep .video-add-nav {
112 height: #{$nav-link-height + $border-width * 2};
113 overflow-x: auto;
114 white-space: nowrap;
115 flex-wrap: unset;
116
117 /* Hide active tab style to not have a moving tab effect */
118 a.nav-link.active {
ed5bb517 119 border-color: transparent;
e66883b3 120 background-color: pvar(--mainBackgroundColor) !important;
9181bc0c
K
121 }
122 }
123}
124
125/* Make .video-add-nav tabs scrollable on small devices */
126@media screen and (max-width: $small-view) {
127 @include nav-scroll();
128}
129
130@media screen and (max-width: #{$small-view + $menu-width}) {
131 :host-context(.main-col:not(.expanded)) {
132 @include nav-scroll();
133 }
134}