-
Notifications
You must be signed in to change notification settings - Fork 0
/
Clean DU.styl
321 lines (251 loc) · 7.31 KB
/
Clean DU.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
/* ==UserStyle==
@name Clean DU
@version 2024-11-16_0035
@namespace https://userstyles.world/user/egezenn
@description Clean utility websites, quickfixes for some stuff and theme consistency.
@author egezenn
@license MIT
@preprocessor stylus
@var checkbox force-dark-mode "force dark mode" 0
@var checkbox force-light-mode "force light mode" 0
@var checkbox obs-clutter-removal "clutter removal for obs login page. breaks announcements, use with caution" 0
@var checkbox show-announcement-images "show unnecessarily big & incomprehensible images in announcement pages" 0
==/UserStyle== */
/* ([^:])/ /.* -> $1 */
i = !important
handle-mode()
if (force-dark-mode)
dark-style()
else if (force-light-mode)
light-style()
else
@media (prefers-color-scheme dark)
dark-style()
@media (prefers-color-scheme light)
light-style()
@-moz-document url-prefix("https://akademik.duzce.edu.tr")
/* util - akademik */
.orta-panel > img,
.orta-panel > h3,
.stats-container,
.footer
display none i
.orta-panel
height 100px i
.img-container
border none i
/* idk why this doesn't work */
a > .profil,
.k-ad,
.k-birim,
.k-unvan
text-decoration none i
.k-ad
font-size 1.2rem i
.k-birim
font-size 1rem i
@-moz-document url-prefix("https://kablosuzerisim.duzce.edu.tr")
/* util - wireless network auth */
/* yoinked */
.portalButton,
.formValue > input
width 100px i
height 100px i
scale 1 i
#regLoginTable,
.formDiv
margin-top 15% i
scale 3 i
#copyright
color rgba(220, 220, 220, 1) i
#footerBar
background rgba(20, 20, 20, 1) i
#menubars,
.topContent > p,
#footer,
iframe,
.bottomContent > br,
.submitMessageDiv,
.requiredField
display none i
@-moz-document url-prefix("https://obs.duzce.edu.tr/account")
/* obs login */
.d-flex.flex-column.flex-lg-row-fluid.py-10
background-image none i
.d-flex.flex-column.flex-lg-row-fluid.py-10
padding 0 i
if (obs-clutter-removal)
/* this also disables announcements on the left ¯\_(ツ)_/¯ */
.d-flex.flex-column.flex-lg-row-auto.w-xl-400px.positon-xl-relative,
.d-flex.flex-center.flex-wrap.fs-6.p-5.pb-0
display none i
@-moz-document url-prefix("https://obs.duzce.edu.tr/student")
/* obs pages */
/* https://obs.duzce.edu.tr/student */
/* info about the student */
.dropdown-menu.scroller.active-dept
width 30vw i
.dropdown-menu.scroller.active-dept > li.selected-dept > a > .row > *
font-size 1.5rem i
/* no */
.dropdown.dropdown-user.dropdown-dark > .dropdown-toggle > img
display none i
/* readable exam results */
#confirmationReport-list > .row > div > .portlet > .portlet-title > .caption > .caption-helper > span
font-size 1.5rem i
color #7090a6
#confirmationReport-list > .row > div > .portlet > .portlet-title > .caption > .caption-helper > span > b
color #3598DC
.portlet-body > div > table > tbody > tr > td
font-size 1.5rem i
@-moz-document regexp("https?://(haber\\.)?duzce\\.edu\\.tr/tum-duyurular(/.*)?"), regexp("https?://(haber\\.)?duzce\\.edu\\.tr/duyuru/.*/.*")
/* announcement pages */
dark-style()
body
background-color #000000 i
.box-content-inner.clearfix,
.widget-main
background-color #202020 i
light-style()
body
background-color #FFFFFF i
.box-content-inner.clearfix,
.widget-main
background-color #EFEFEF i
handle-mode() /* fix overflow, corners */
.head-bar
width auto
.head-menu
border-radius 0px 0px 30px 30px i
/* a bit messy on mobile */
.head-menu,
.head-menu > ul,
.head-logo
width 70vw i
.head-menu > ul
display flex i
justify-content space-evenly i
/* corner fix */
.box-content-inner.clearfix,
.widget-main
border-radius 30px i
/* fix for content page amount listing thingy */
div.container > div.row:nth-of-type(2) > div.col-md-8 > div.text-center > ul > li
display inline i
/* properly centering content */
body > .out-container
margin 0 auto
width 70vw
/* useless elements */
.out-container > .container > .page-title.clearfix,
.widget-main-title,
.view-details
display none i
/* spreading of categories */
.widget-inner > .blog-categories > .row > ul
padding 0 40px i
display flex
justify-content space-evenly i
.widget-inner > .blog-categories > .row > ul > li
display inline-block i
text-align center i
if (show-announcement-images)
div.list-event-thumb > a > img
max-height 120px i
max-width 210px i
else
div.list-event-thumb,
div.list-event-thumb > a > img
display none i
@-moz-document regexp("https://w3\\.api\\.duzce\\.edu\\.tr/akademik/(fakulte|merkez)/(.*/)?tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/akademik/(fakulte|merkez)/(.*/)?duyurular/.*"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/idari/.*/tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/idari(/.*)*/duyuru/.*"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/tum-duyurular/?"), regexp("https://w3\\.api\\.duzce\\.edu\\.tr/duyuru/.*")
/* old announcement pages */
dark-style()
.du-header > .bar,
.top-bar .nav > li a
background #181A1B i
light-style()
.du-header > .bar,
.top-bar .nav > li a
background #FFFFFF i
color #000000 i
handle-mode()
nav.dn
display flow i
nav > .event-nav
display flex i
flex-wrap wrap i
justify-content space-evenly i
width 75vw i
.events > .wrapper.flex.container > .content
width 75vw i
/* better filtration inputs */
#filter
width 30% i
display inline-flex i
.pull-right
width 10% i
display inline-flex i
.bar-headline
display none i
@-moz-document url-prefix("https://duzce.edu.tr")
/* homepage */
body
margin 0 i
.out-container
border 0px i
.head-bar.gb-lr
display none i
@-moz-document regexp("https?://duzce\\.edu\\.tr/?(.*)?"), url-prefix("https://haber.duzce.edu.tr/")
/* useless search filter inputs */
.search
display none i
@-moz-document url-prefix("https://akademik.duzce.edu.tr"), url-prefix("https://kablosuzerisim.duzce.edu.tr")
/* background replacement */
dark-style()
html,
body
background black i
light-style()
html,
body
background white i
handle-mode()
@-moz-document url-prefix("https://ogr.duzce.edu.tr")
/* student mail bg rm */
.cont
background-image none i// ogr.duzce.edu.tr")
@-moz-document url-prefix("https://ebs.duzce.edu.tr/")
/* ebs bg rm */
body
background-image none i// ebs.duzce.edu.tr/")
@-moz-document regexp("https?://(.*\\.)?duzce\\.edu\\.tr/?(.*)?")
/* scrollbar(s) */
dark-style()
html,
body
scrollbar-width thin i
scrollbar-color #33CCCC #2C2C2C i
/* for non-mozilla */
/* not tested, fingers crossed */
::-webkit-scrollbar
width 6px i
::-webkit-scrollbar-track
background #2C2C2C i
::-webkit-scrollbar-thumb
background #33CCCC i
::-webkit-scrollbar-thumb:hover
background #0FA6A6 i
light-style()
html,
body
scrollbar-width thin i
scrollbar-color #33CCCC lightgray i
::-webkit-scrollbar
width 6px i
::-webkit-scrollbar-track
background lightgray i
::-webkit-scrollbar-thumb
background #33CCCC i
::-webkit-scrollbar-thumb:hover
background #0FA6A6 i
handle-mode()