Ukrywaj godziny na planówce, w których nie latasz
eChronometraż Planówka by mateuszjablonski
Details
Authormateuszjablonski
LicenseNo License
Categoryechronometraz.pl
Created
Updated
Size1.8 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name eChronometraż Planówka
@namespace mateuszjablonski.pl/echronometraz
@version 0.0.1
@description Ukrywaj godziny na planówce, w których nie latasz
@author Mateusz Jabłoński
@preprocessor default
@var range startHour "Godzina początkowa" [6, 0, 8]
@var range endHour "Godzina końcowa" [20, 18, 23]
==/UserStyle== */
@-moz-document domain("echronometraz.pl") {
:root {
--hour-col-width: 66px;
--left-column-trim-count: var(--startHour);
--right-column-trim-count: calc(23 - var(--endHour));
--left-offset: calc(var(--hour-col-width) * var(--left-column-trim-count));
--left-offset-neg: calc(var(--left-offset) * -1);
--right-offset: calc(var(--hour-col-width) * var(--right-column-trim-count));
}
/*
HIERARCHY
sc_menu {
sc_header_cell {}
sc_header {
sc_header_scroll {}
}
}
sc_wrapper {
sc_data {}
sc_main_box {
sc_main_scroll {
sc_main {}
}
}
}
INSET
inset(top right bottom left)
*/
#schedule .sc_main_box,
#schedule .sc_data {
max-height: unset;
}
#schedule .sc_header {
clip-path: inset(0 0 0 var(--left-offset));
margin-left: var(--left-offset-neg);
padding-left: var(--left-offset);
}
#schedule .sc_header_scroll {
clip-path: inset(0 var(--right-offset) 0 0);
}
#schedule .sc_main_box {
overflow: hidden;
}
#schedule .sc_main_scroll {
clip-path: inset(0 var(--right-offset) 0 0);
margin-left: var(--left-offset-neg);
}
#schedule .sc_main {
clip-path: inset(0 0 0 var(--left-offset));
}
}