feat: add ismu style

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-08-05 18:28:59 +02:00
parent 906c7f8285
commit 28d255a229
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8
2 changed files with 55 additions and 0 deletions

View file

@ -2,6 +2,7 @@
## List of available styles ## List of available styles
* [ismu](./ismu.user.css)
* [mikrotik](./mikrotik.user.css) * [mikrotik](./mikrotik.user.css)
* [notion](./notion.user.css) * [notion](./notion.user.css)
* [pagure](./pagure.user.css) * [pagure](./pagure.user.css)

54
ismu.user.css Normal file
View file

@ -0,0 +1,54 @@
/* ==UserStyle==
@name IS MU
@namespace git.mfocko.xyz/mfocko/usercss
@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/ismu.user.css
@version 1.1.1
@description Enlarge font size in notepads and change layout on smaller display.
@author mfocko <me@mfocko.xyz>
@preprocessor stylus
==/UserStyle== */
@-moz-document domain("is.muni.cz") {
.zu_pozn_blok {
font-size: 15px;
}
.hide-for-1280-only {
display: inline !important;
}
@media only screen and (min-width: 0px) {
.left_menu_enabled #rows_wrapper {
max-width: calc(100% - 200px);
margin-left: 200px;
margin-right: 0;
}
.left_menu_enabled #left_menu {
left: -230px;
}
.left_menu_enabled #sticky_panel,
.left_menu_enabled #rows_wrapper footer,
.left_menu_enabled #rows_wrapper footer a.skip_up {
margin-left: -200px;
padding-left: 200px;
}
.left_menu_enabled .toolkit_expand.is_expanded .content_row {
margin-left: -200px;
}
}
}
@-moz-document regexp("https://is.muni.cz/.*/(IB111|PB161)/.*\\.(py|cpp)(\\.html)?") {
body {
transform-origin: center;
transform: translateX(calc(100% / 3));
/*
margin-left: 45em;
margin-right: 45em;
*/
}
}