Skip to content

Commit

Permalink
avoid CSS * selector
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Jun 12, 2024
1 parent f18a662 commit 2d66aa4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ $linkColorFilterFromWhite: brightness(0) saturate(100%) invert(59%) sepia(0%) sa
$darkBgHighlight: #666;
$contentPad: 0.9rem;

* {
margin: 0;
padding: 0;
text-decoration: none;
touch-action: manipulation;
}

html,
body>div {
overflow: hidden;
overscroll-behavior: none;
touch-action: none;
}

body {
Expand All @@ -29,6 +23,7 @@ body {
background: #333;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 0.9em;
margin: 0;
}


Expand Down Expand Up @@ -564,6 +559,7 @@ $sidebarBoxShadowNormal: 0.1em 0 0.3em 0.1em rgba(0,0,0,0.3);
z-index: 3;
box-shadow: $sidebarBoxShadowNormal;
contain: size layout style;
touch-action: none;
}

@media (min-width: calc(3*$minWidth)) {
Expand Down Expand Up @@ -652,8 +648,9 @@ body.showSidebar::before {

-webkit-hyphens: auto;
hyphens: auto;
overscroll-behavior: contain;

overscroll-behavior: contain;
touch-action: pan-y;
contain: strict;

p, ul, ol {
Expand Down Expand Up @@ -938,6 +935,7 @@ abbr {
h3,
h4 {
margin-top: 1em;
margin-bottom: 0;
}

h3 {
Expand All @@ -950,6 +948,7 @@ h4 {

h5 {
margin-top: 0.5em;
margin-bottom: 0;
font-size: 0.9rem;
font-weight: normal;
font-style: italic;
Expand Down Expand Up @@ -1141,6 +1140,7 @@ table.route-list {
p, form {
text-align: justify;
margin-top: 0.6rem;
margin-bottom: 0;
}

h5 + p {
Expand Down

0 comments on commit 2d66aa4

Please sign in to comment.