]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/primeng-custom.scss
Add zh-Hans-CN to client.sh
[github/Chocobozzz/PeerTube.git] / client / src / sass / primeng-custom.scss
CommitLineData
bbe0f064
C
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;
1fd3ef3f 10 color: var(--mainForegroundColor) !important;
bbe0f064
C
11}
12
13// data table customizations
14p-table {
15 font-size: 15px !important;
16
17 td {
18 border: 1px solid #E5E5E5 !important;
19 padding-left: 15px !important;
141b177d
C
20
21 &:not(.action-cell) {
22 overflow: hidden !important;
23 text-overflow: ellipsis !important;
24 white-space: nowrap !important;
25 }
bbe0f064
C
26 }
27
28 tr {
c13e2bf3 29 background-color: var(--mainBackgroundColor) !important;
bbe0f064
C
30 height: 46px;
31 }
32
33 .ui-table-tbody {
34 tr {
35 &:hover {
1fd3ef3f 36 background-color: var(--submenuColor) !important;
bbe0f064
C
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;
b9fcfb1d
C
63 border-bottom: 1px solid !important;
64 border-color: var(--submenuColor) !important;
bbe0f064
C
65 text-align: left !important;
66 padding: 5px 0 5px 15px !important;
67 font-weight: $font-semibold !important;
1fd3ef3f 68 color: var(--mainForegroundColor) !important;
bbe0f064
C
69
70 &.ui-sortable-column:hover {
1fd3ef3f 71 background-color: var(--submenuColor) !important;
b9fcfb1d
C
72 border: 1px solid !important;
73 border-color: var(--submenuColor) !important;
bbe0f064
C
74 border-width: 0 1px !important;
75
76 &:first-child {
77 border-width: 0 1px 0 0 !important;
78 }
79 }
80
81 &.ui-state-highlight {
1fd3ef3f 82 background-color:var(--submenuColor) !important;
bbe0f064
C
83
84 .pi {
85 @extend .glyphicon;
86
87 color: #000;
88 font-size: 11px;
f0d4e7eb 89 top: 0;
bbe0f064
C
90
91 &.pi-sort-up {
92 @extend .glyphicon-triangle-top;
93 }
94
95 &.pi-sort-down {
96 @extend .glyphicon-triangle-bottom;
97 }
98 }
99 }
100 }
101
102 .action-cell {
103 width: 250px !important;
104 padding: 0 !important;
105 text-align: center;
106
107 my-edit-button + my-delete-button {
108 margin-left: 5px;
109 }
110 }
111
112 p-paginator {
113 .ui-paginator-bottom {
1fd3ef3f 114 background-color: var(--mainBackgroundColor) !important;
bbe0f064 115 position: relative;
b9fcfb1d
C
116 border: 1px solid !important;
117 border-color: var(--submenuColor) !important;
bbe0f064
C
118 height: 40px;
119 display: flex;
120 justify-content: center;
121 align-items: center;
122
30eac84e
C
123 .ui-paginator-first,
124 .ui-paginator-prev,
125 .ui-paginator-next,
126 .ui-paginator-last {
127 @include glyphicon-light;
128 padding: 5px 2px;
129 height: auto;
130 outline: none;
131 font-size: 13px;
132 top: -1px;
133
134 &.ui-state-disabled:hover {
135 background-color: #fff !important;
136 }
137
138 &.ui-paginator-first {
139 @extend .glyphicon-step-backward;
140 }
141
142 &.ui-paginator-prev {
143 @extend .glyphicon-chevron-left;
144
145 margin-right: 10px;
146 }
147
148 &.ui-paginator-next {
149 @extend .glyphicon-chevron-right;
150
151 margin-left: 10px;
152 }
153
154 &.ui-paginator-last {
155 @extend .glyphicon-step-forward;
156 }
157 }
158
bbe0f064
C
159 .ui-paginator-pages {
160 height: auto !important;
161
162 a {
163 color: #000 !important;
164 font-weight: $font-semibold !important;
b9fcfb1d 165 margin: 0 10px !important;
bbe0f064
C
166 outline: 0 !important;
167 border-radius: 3px !important;
168 padding: 5px 2px !important;
169 height: auto !important;
170
171 &.ui-state-active {
172 &, &:hover, &:active, &:focus {
173 color: #fff !important;
9a0fc840 174 background-color: var(--mainColor) !important;
bbe0f064
C
175 }
176 }
177 }
178 }
179 }
180 }
181}
182
183// PrimeNG calendar tweaks
184p-calendar .ui-datepicker {
185 a {
186 @include disable-default-a-behaviour;
187 }
188
189 .ui-datepicker-header {
190
191 .ui-datepicker-year {
192 margin-left: 5px;
193 }
194
195 .ui-datepicker-next {
196 @extend .glyphicon-chevron-right;
197 @include glyphicon-light;
198 }
199
200 .ui-datepicker-prev {
201 @extend .glyphicon-chevron-left;
202 @include glyphicon-light;
203 }
204 }
205
206 .ui-timepicker {
207
208 .pi.pi-chevron-up {
209 @extend .glyphicon-chevron-up;
210 @include glyphicon-light;
211 }
212
213 .pi.pi-chevron-down {
214 @extend .glyphicon-chevron-down;
215 @include glyphicon-light;
216 }
217 }
218}