]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/primeng-custom.scss
adding shortcuts to videojs, adding frame-by-frame support
[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 {
8b183196 18 // border: 1px solid #E5E5E5 !important;
bbe0f064 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;
8b183196
RK
116 border: none;
117 border-top: 1px solid !important;
b9fcfb1d 118 border-color: var(--submenuColor) !important;
bbe0f064
C
119 height: 40px;
120 display: flex;
121 justify-content: center;
122 align-items: center;
123
30eac84e
C
124 .ui-paginator-first,
125 .ui-paginator-prev,
126 .ui-paginator-next,
127 .ui-paginator-last {
128 @include glyphicon-light;
129 padding: 5px 2px;
130 height: auto;
131 outline: none;
132 font-size: 13px;
133 top: -1px;
134
135 &.ui-state-disabled:hover {
136 background-color: #fff !important;
137 }
138
139 &.ui-paginator-first {
140 @extend .glyphicon-step-backward;
141 }
142
143 &.ui-paginator-prev {
144 @extend .glyphicon-chevron-left;
145
146 margin-right: 10px;
147 }
148
149 &.ui-paginator-next {
150 @extend .glyphicon-chevron-right;
151
152 margin-left: 10px;
153 }
154
155 &.ui-paginator-last {
156 @extend .glyphicon-step-forward;
157 }
158 }
159
bbe0f064
C
160 .ui-paginator-pages {
161 height: auto !important;
162
163 a {
164 color: #000 !important;
165 font-weight: $font-semibold !important;
b9fcfb1d 166 margin: 0 10px !important;
bbe0f064
C
167 outline: 0 !important;
168 border-radius: 3px !important;
169 padding: 5px 2px !important;
170 height: auto !important;
171
172 &.ui-state-active {
173 &, &:hover, &:active, &:focus {
174 color: #fff !important;
9a0fc840 175 background-color: var(--mainColor) !important;
bbe0f064
C
176 }
177 }
178 }
179 }
180 }
181 }
182}
183
184// PrimeNG calendar tweaks
185p-calendar .ui-datepicker {
186 a {
187 @include disable-default-a-behaviour;
188 }
189
190 .ui-datepicker-header {
191
192 .ui-datepicker-year {
193 margin-left: 5px;
194 }
195
196 .ui-datepicker-next {
197 @extend .glyphicon-chevron-right;
198 @include glyphicon-light;
199 }
200
201 .ui-datepicker-prev {
202 @extend .glyphicon-chevron-left;
203 @include glyphicon-light;
204 }
205 }
206
207 .ui-timepicker {
208
209 .pi.pi-chevron-up {
210 @extend .glyphicon-chevron-up;
211 @include glyphicon-light;
212 }
213
214 .pi.pi-chevron-down {
215 @extend .glyphicon-chevron-down;
216 @include glyphicon-light;
217 }
218 }
219}