Skip to content

Commit

Permalink
Merge pull request #5993 from tomachalek/compact_styles
Browse files Browse the repository at this point in the history
Make styles from rev f6138b0 more compact
  • Loading branch information
tomachalek authored Aug 9, 2023
2 parents 8e1a8c4 + 27293a4 commit 2dc313d
Showing 1 changed file with 18 additions and 120 deletions.
138 changes: 18 additions & 120 deletions templates/base_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,126 +32,24 @@
{%- endfor -%}

<style>
body {
font-family: "Roboto", "Segoe UI", Arial, sans-serif;
color: {{ theme.color_default_text }};
background-image: url("{{ theme.main_background }}");
font-size: 10pt;
margin: 0;
padding: 0;
height: 100%;
}

h1 {
font-size: 170%;
margin-top: 0;
}

h2 {
font-size: 140%;
margin: 0.5em auto 0.5em 0.5em;
font-weight: 500;
}

#viewport {
position: absolute;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
top: 0;
width: 100%;
min-height: 100%;
}

#common-bar {
height: 40px;
overflow: hidden;
background-color: rgba(82, 80, 78, 0.199);
color: #000000;
width: 100%;
}

header#topbar {
padding: 0;
color: #000000;
}

header#topbar > * {
vertical-align: top;
}

header#topbar #menu-bar {
white-space: nowrap;
}

header#topbar .navig-wrapper {
display: inline-block;
padding: 2em 1em 0 0;
}

header#topbar a#logo-wrapper {
display: inline;
background-color: transparent;
}

header#topbar a#logo-wrapper img {
display: inline-block;
vertical-align: middle;
}

#menu-bar {
margin: 0;
display: inline-block;
white-space: nowrap;
background-color: transparent;
font-size: 1.2em;
width: auto;
height: 3em;
}

#main-menu-mount {
box-sizing: border-box;
margin: 0 0 0 1em;
padding: 0 0.7em;
display: inline-block;
height: 100%;
vertical-align: middle;
background-color: transparent;
border: 2px solid transparent;
border-radius: 5px;
}

#main-menu-mount ul {
margin: 0;
padding: 0;
display: inline-block;
list-style-type: none;
}

#main-menu-mount ul li {
display: inline-block;
margin-top: 0;
padding: 0.6em 0.3em 0 0.3em;
line-height: 1.4em;
font-weight: normal;
border: 1px solid transparent;
}

#main-menu-mount ul li.disabled .menu-link {
color: {{ theme.color_light_text }};
}

#main-menu-mount ul li .menu-link {
display: block;
text-decoration: none;
color: {{ theme.color_default_text }};
}

#main-menu-mount ul li.active {
position: relative;
background-color: {{ theme.color_default_green }};
border: 1px solid {{ theme.color_default_green }};
}
body {font-family: "Roboto", "Segoe UI", Arial, sans-serif;color: {{ theme.color_default_text }};background-image: url("{{ theme.main_background }}");font-size: 10pt;margin: 0;padding: 0;height: 100%;}
h1 {font-size: 170%;margin-top: 0;}
h2 {font-size: 140%;margin: 0.5em auto 0.5em 0.5em;font-weight: 500;}
#viewport {position: absolute;display: flex;flex-direction: column;flex-wrap: nowrap;top: 0;width: 100%;min-height: 100%;}
#common-bar {height: 40px;overflow: hidden;background-color: rgba(82, 80, 78, 0.199);color: #000000;width: 100%;}
header#topbar {padding: 0;color: #000000;}
header#topbar > * {vertical-align: top;}
header#topbar #menu-bar {white-space: nowrap;}
header#topbar .navig-wrapper {display: inline-block;padding: 2em 1em 0 0;}
header#topbar a#logo-wrapper {display: inline;background-color: transparent;}
header#topbar a#logo-wrapper img {display: inline-block;vertical-align: middle;}
#menu-bar {margin: 0;display: inline-block;white-space: nowrap;background-color: transparent;font-size: 1.2em;width: auto;height: 3em;}
#main-menu-mount {box-sizing: border-box;margin: 0 0 0 1em;padding: 0 0.7em;display: inline-block;height: 100%;vertical-align: middle;background-color: transparent;border: 2px solid transparent;border-radius: 5px;}
#main-menu-mount ul {margin: 0;padding: 0;display: inline-block;list-style-type: none;}
#main-menu-mount ul li {display: inline-block;margin-top: 0;padding: 0.6em 0.3em 0 0.3em;line-height: 1.4em;font-weight: normal;border: 1px solid transparent;}
#main-menu-mount ul li.disabled .menu-link {color: {{ theme.color_light_text }};}
#main-menu-mount ul li .menu-link {display: block;text-decoration: none;color: {{ theme.color_default_text }};}
#main-menu-mount ul li.active {position: relative;background-color: {{ theme.color_default_green }};border: 1px solid {{ theme.color_default_green }};}
</style>

<link rel="stylesheet" type="text/css" href="{{ files_path }}/dist/{{ page_model }}.css{{ deployment_suff }}" />
Expand Down

0 comments on commit 2dc313d

Please sign in to comment.