Add ability to ban/unban users
[oweals/peertube.git] / client / src / sass / primeng-custom.scss
1 @import '_variables';
2 @import '_mixins';
3
4 @import '~primeng/resources/primeng.css';
5 @import '~primeng/resources/themes/bootstrap/theme.css';
6
7 @mixin glyphicon-light {
8   font-family: 'Glyphicons Halflings';
9   text-decoration: none !important;
10   color: #000 !important;
11 }
12
13 // data table customizations
14 p-table {
15   font-size: 15px !important;
16
17   td {
18     border: 1px solid #E5E5E5 !important;
19     padding-left: 15px !important;
20
21     &:not(.action-cell) {
22       overflow: hidden !important;
23       text-overflow: ellipsis !important;
24       white-space: nowrap !important;
25     }
26   }
27
28   tr {
29     background-color: #fff !important;
30     height: 46px;
31   }
32
33   .ui-table-tbody {
34     tr {
35       &:hover {
36         background-color: #f0f0f0 !important;
37       }
38
39       &:not(:hover) {
40         .action-cell * {
41           display: none !important;
42         }
43       }
44
45       &:first-child td {
46         border-top: none !important;
47       }
48
49       &:last-child td {
50         border-bottom: none !important;
51       }
52     }
53
54     .expander {
55       cursor: pointer;
56       position: relative;
57       top: 1px;
58     }
59   }
60
61   th {
62     border: none !important;
63     border-bottom: 1px solid #f0f0f0 !important;
64     text-align: left !important;
65     padding: 5px 0 5px 15px !important;
66     font-weight: $font-semibold !important;
67     color: #000 !important;
68
69     &.ui-sortable-column:hover {
70       background-color: #f0f0f0 !important;
71       border: 1px solid #f0f0f0 !important;
72       border-width: 0 1px !important;
73
74       &:first-child {
75         border-width: 0 1px 0 0 !important;
76       }
77     }
78
79     &.ui-state-highlight {
80       background-color: #fff !important;
81
82       .pi {
83         @extend .glyphicon;
84
85         color: #000;
86         font-size: 11px;
87
88         &.pi-sort-up {
89           @extend .glyphicon-triangle-top;
90         }
91
92         &.pi-sort-down {
93           @extend .glyphicon-triangle-bottom;
94         }
95       }
96     }
97   }
98
99   .action-cell {
100     width: 250px !important;
101     padding: 0 !important;
102     text-align: center;
103
104     my-edit-button + my-delete-button {
105       margin-left: 5px;
106     }
107   }
108
109   p-paginator {
110     .ui-paginator-bottom {
111       position: relative;
112       border: 1px solid #f0f0f0 !important;
113       height: 40px;
114       display: flex;
115       justify-content: center;
116       align-items: center;
117
118       .ui-paginator-first,
119       .ui-paginator-prev,
120       .ui-paginator-next,
121       .ui-paginator-last {
122         @include glyphicon-light;
123         padding: 5px 2px;
124         height: auto;
125         outline: none;
126         font-size: 13px;
127         top: -1px;
128
129         &.ui-state-disabled:hover {
130           background-color: #fff !important;
131         }
132
133         &.ui-paginator-first {
134           @extend .glyphicon-step-backward;
135         }
136
137         &.ui-paginator-prev {
138           @extend .glyphicon-chevron-left;
139
140           margin-right: 10px;
141         }
142
143         &.ui-paginator-next {
144           @extend .glyphicon-chevron-right;
145
146           margin-left: 10px;
147         }
148
149         &.ui-paginator-last {
150           @extend .glyphicon-step-forward;
151         }
152       }
153
154       .ui-paginator-pages {
155         height: auto !important;
156
157         a {
158           color: #000 !important;
159           font-weight: $font-semibold !important;
160           margin-right: 0 10px !important;
161           outline: 0 !important;
162           border-radius: 3px !important;
163           padding: 5px 2px !important;
164           height: auto !important;
165
166           &.ui-state-active {
167             &, &:hover, &:active, &:focus {
168               color: #fff !important;
169               background-color: $orange-color !important;
170             }
171           }
172         }
173       }
174     }
175   }
176 }
177
178 // PrimeNG calendar tweaks
179 p-calendar .ui-datepicker {
180   a {
181     @include disable-default-a-behaviour;
182   }
183
184   .ui-datepicker-header {
185
186     .ui-datepicker-year {
187       margin-left: 5px;
188     }
189
190     .ui-datepicker-next {
191       @extend .glyphicon-chevron-right;
192       @include glyphicon-light;
193     }
194
195     .ui-datepicker-prev {
196       @extend .glyphicon-chevron-left;
197       @include glyphicon-light;
198     }
199   }
200
201   .ui-timepicker {
202
203     .pi.pi-chevron-up {
204       @extend .glyphicon-chevron-up;
205       @include glyphicon-light;
206     }
207
208     .pi.pi-chevron-down {
209       @extend .glyphicon-chevron-down;
210       @include glyphicon-light;
211     }
212   }
213 }