]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/application.scss
Begin admin design
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
1 $FontPathSourceSansPro: "../fonts/source-sans-pro";
2 @import '~source-sans-pro/source-sans-pro';
3 @import '~primeng/resources/themes/bootstrap/theme.css';
4 @import '~primeng/resources/primeng.css';
5 @import '~video.js/dist/video-js.css';
6 @import './video-js-custom.scss';
7
8 [hidden] {
9 display: none !important;
10 }
11
12 body {
13 font-family: 'Source Sans Pro';
14 font-weight: $font-regular;
15 color: #000;
16 }
17
18 input.readonly {
19 /* Force blank on readonly inputs */
20 background-color: #fff !important;
21 }
22
23 label {
24 font-weight: $font-bold;
25 font-size: 15px;
26 }
27
28 .form-error {
29 display: block;
30 color: $red-error;
31 margin-top: 5px;
32 }
33
34 .input-error {
35 border-color: $red-error !important;
36 }
37
38 .glyphicon-black {
39 color: black;
40 }
41
42 .main-col {
43 margin-left: $menu-width;
44
45 .margin-content {
46 margin-left: $not-expanded-horizontal-margins;
47 margin-right: $not-expanded-horizontal-margins;
48 }
49
50 .sub-menu {
51 background-color: #F7F7F7;
52 width: 100%;
53 height: 81px;
54 margin-bottom: 30px;
55 display: flex;
56 align-items: center;
57 padding-left: $not-expanded-horizontal-margins;
58 }
59
60 // Override some properties if the main content is expanded (no menu on the left)
61 &.expanded {
62 margin-left: 0;
63
64 .margin-content {
65 margin-left: $expanded-horizontal-margins;
66 margin-right: $expanded-horizontal-margins;
67 }
68
69 .sub-menu {
70 padding-left: $expanded-horizontal-margins;
71 }
72 }
73 }
74
75 .title-page {
76 color: #000;
77 font-size: 16px;
78 display: inline-block;
79 margin-right: 55px;
80 font-weight: $font-semibold;
81 @include disable-default-a-behaviour;
82
83 &.active, &.title-page-single {
84 border-bottom: 2px solid $orange-color;
85 font-weight: $font-bold;
86 margin-top: 30px;
87 margin-bottom: 25px;
88 }
89
90 &:hover, &:active, &:focus {
91 color: #000;
92 }
93 }
94
95 .admin-sub-title {
96 font-size: 20px;
97 font-weight: bold;
98 }
99
100 // On small screen, menu is absolute and displayed over the page
101 @media screen and (max-width: 500px) {
102 .title-menu-left {
103 width: 120px;
104 position: absolute !important;
105 z-index: 10000;
106 }
107
108 .main-col {
109 width: 100% !important;
110 }
111
112 .fake-menu {
113 display: none;
114 }
115 }
116
117 // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
118 .glyphicon-refresh-animate {
119 -animation: spin .7s infinite linear;
120 -ms-animation: spin .7s infinite linear;
121 -webkit-animation: spinw .7s infinite linear;
122 -moz-animation: spinm .7s infinite linear;
123 }
124
125 @keyframes spin {
126 from { transform: scale(1) rotate(0deg);}
127 to { transform: scale(1) rotate(360deg);}
128 }
129
130 @-webkit-keyframes spinw {
131 from { -webkit-transform: rotate(0deg);}
132 to { -webkit-transform: rotate(360deg);}
133 }
134
135 @-moz-keyframes spinm {
136 from { -moz-transform: rotate(0deg);}
137 to { -moz-transform: rotate(360deg);}
138 }
139
140 // ngprime data table customizations
141 p-datatable {
142 .action-cell {
143 text-align: center;
144
145 .glyphicon {
146 cursor: pointer;
147 }
148 }
149 }
150
151 // Bootstrap customizations
152 .dropdown-menu {
153 border-radius: 3px;
154 box-shadow: 0 3px 6px;
155 font-size: 15px;
156
157 .dropdown-item {
158 padding: 3px 15px;
159 }
160
161 a {
162 color: #000 !important;
163 }
164 }
165
166 .modal {
167 .modal-header {
168 border-bottom: none;
169
170 .title-page-single {
171 margin: 0;
172 }
173 }
174 }
175
176 .nav {
177 margin-top: 10px;
178 font-size: 16px !important;
179 border: none !important;
180
181 .nav-item .nav-link {
182 height: 30px !important;
183 margin-right: 30px;
184 padding: 0 15px;
185 display: flex;
186 align-items: center;
187 border-radius: 3px;
188 border: none !important;
189
190 &, & a {
191 color: #000 !important;
192 }
193
194 &.active, &:hover {
195 background-color: #F0F0F0;
196 }
197
198 &.active {
199 font-weight: $font-semibold !important;
200 }
201 }
202
203 .tab-content {
204 min-height: 75px;
205 padding: 15px;
206 }
207 }
208
209
210 .orange-button {
211 @include peertube-button;
212 @include orange-button;
213 }
214
215 .orange-button-link {
216 @include peertube-button-link;
217 @include orange-button;
218 }
219
220 .grey-button {
221 @include peertube-button;
222 @include grey-button;
223 }
224
225 .grey-button-link {
226 @include peertube-button-link;
227 @include grey-button;
228 }