Last active
January 6, 2025 16:02
-
-
Save SkyyySi/9714c4d37a1c967b51e2352b4194f9e1 to your computer and use it in GitHub Desktop.
Ein UserCSS / UserStyle, um die Webseite der Niederrheinischen IHK zumindest ein bisschen weniger fürchterlich zu machen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name IHK Azubiheft Fix | |
@namespace github.com/SkyyySi | |
@version 1.0.0 | |
@description Ein UserCSS / UserStyle, um die Webseite der Niederrheinischen IHK zumindest ein bisschen weniger fürchterlich zu machen. | |
@author SkyyySi | |
@preprocessor stylus | |
==/UserStyle== */ | |
$header_padding = 1em | |
$header_logo_height = 3em | |
$header_height = ( | |
$header_padding * 2 + $header_logo_height | |
) | |
$accent_weak = #d3dbe9 | |
$accent_strong = #174d85 | |
$content_width = 1000px | |
$padding($x, $y) | |
padding-left: $x !important | |
padding-right: $x !important | |
padding-top: $y !important | |
padding-bottom: $y !important | |
$hide_padding() | |
$padding(0px, 0px) | |
$margin($x, $y) | |
margin-left: $x !important | |
margin-right: $x !important | |
margin-top: $y !important | |
margin-bottom: $y !important | |
$hide_margin() | |
$margin(0px, 0px) | |
$hide_spacing() | |
$hide_padding() | |
$hide_margin() | |
$hide_element() | |
$hide_spacing() | |
width: 0px !important | |
height: 0px !important | |
display: none !important | |
visibility: hidden !important | |
$flex_row() | |
display: flex !important | |
flex-direction: row !important | |
$flex_column() | |
display: flex !important | |
flex-direction: column !important | |
$content_size() | |
width: max-content | |
height: max-content | |
@-moz-document url-prefix("https://www.bildung-ihk-niederrhein.de/120/tibrosBB") | |
.header_fix // Navbar | |
$padding($header_padding, $header_padding) | |
$flex_row() | |
height: $header_height | |
justify-content: space-between | |
align-items: center | |
background-color: $accent_weak | |
box-shadow: 0px 10px 20px rgba(0.0, 0.0, 0.0, 0.3333) | |
.headerbereich // Navbar - left | |
background-image: unset | |
margin-left: 0px !important | |
margin-right: 0px !important | |
margin-top: 0px | |
margin-bottom: 0px | |
height: max-content | |
order: 0 | |
flex: 0 1 0% | |
//margin-right: auto | |
.top_bar_hintergrund | |
$hide_element() | |
.header_content | |
$hide_spacing() | |
$content_size() | |
$flex_row() | |
.header_img | |
$hide_spacing() | |
height: $header_logo_height | |
img | |
height: $header_logo_height | |
float: unset | |
.service | |
$hide_element() | |
.module_fix | |
$hide_spacing() | |
//width: max-content | |
height: max-content | |
display: inherit | |
align-items: center | |
//background: green | |
> .history // Navbar - center | |
$hide_padding() | |
//$margin(auto, 0px) | |
//$hide_spacing() | |
margin-left: auto !important | |
margin-right: auto !important | |
margin-top: 0px | |
margin-bottom: 0px | |
flex: 1 1 //$content_width | |
order: 1 | |
//background: red | |
//width: $content_width | |
height: max-content | |
> .menu_oben // Navbar - right | |
$hide_padding() | |
//$hide_spacing() | |
$content_size() | |
$flex_row() | |
margin-left: 0px !important | |
margin-right: auto !important | |
margin-top: 0px | |
margin-bottom: 0px | |
order: 2 | |
gap: 1em | |
align-items: center | |
flex: 0 0 0% | |
//align-self: flex-end | |
//background: yellow | |
ul.hauptmenu_liste | |
$hide_spacing() | |
> a | |
$content_size() | |
> li.hauptmenu_eintrag.hauptmenu_aktuell | |
$hide_spacing() | |
.login_inline | |
$hide_spacing() | |
$content_size() | |
$flex_row() | |
float: unset | |
gap: 0.5em | |
> a > img | |
$hide_margin() | |
> div:nth-child(3) | |
$hide_element() | |
.content | |
padding-left: 0px | |
padding-right: 0px | |
padding-top: $header_height | |
padding-bottom: 0px | |
.sidemenu | |
height: 100% | |
position: fixed | |
float: left | |
left: 0px | |
.content-container2 | |
width: $content_width | |
padding-top: 2em | |
@-moz-document url-prefix("https://www.bildung-ihk-niederrhein.de/120/tibrosBB/azubiHeftEditForm.jsp") | |
.content .content-container2 | |
.noc_table > div.row:nth-child(9) | |
$comment_box_offset = 14px | |
$flex_column() | |
$margin(-$comment_box_offset, 0px) | |
> div:nth-child(2) | |
$padding(1em, 0.5em) | |
$margin($comment_box_offset, 0px) | |
border-width: 1px | |
border-style: solid | |
border-radius: 0.3333em | |
border-color: hsl(0, 50%, 80%) | |
background-color: hsl(0, 50%, 95%) | |
overflow: scroll | |
overflow-wrap: break-word | |
word-wrap: break-word | |
white-space: pre | |
width: inherit | |
> font | |
color: hsl(0, 75%, 20%)!important | |
font-size: 14px | |
font-family: monospace | |
.info | |
$hide_element() | |
input.form-control[type="text"] | |
width: 34em !important | |
.form-inline .form-control | |
width: inherit | |
border-radius: 0.3333em | |
.input-wrapper > textarea.form-control | |
font-family: monospace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment