]> git.ipfire.org Git - ipfire.org.git/commitdiff
Bug 11335 modified font smoothing and weight
authorSven <sven.hoehn@posteo.de>
Thu, 11 May 2017 06:17:25 +0000 (08:17 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Apr 2018 10:12:40 +0000 (12:12 +0200)
static/css/style.css
static/scss/bootstrap-4.0.0-alpha.6/scss/_custom.scss
static/scss/style.scss

index 4cd10169c242127e2cca19b5900ee4094951b92f..91193d89e5b3110ae5a2c75c78442aff1e37386f 100644 (file)
@@ -220,7 +220,7 @@ html {
 body {
   font-family: "Ubuntu", sans-serif;
   font-size: 1rem;
-  font-weight: 300;
+  font-weight: 400;
   line-height: 1.5;
   color: #263238;
   background-color: #eceff1; }
@@ -432,7 +432,7 @@ hr {
 small,
 .small {
   font-size: 0.875rem;
-  font-weight: 300; }
+  font-weight: 400; }
 
 mark,
 .mark {
@@ -1670,7 +1670,7 @@ fieldset[disabled] a.btn {
     border-color: #d9534f; }
 
 .btn-link {
-  font-weight: 300;
+  font-weight: 400;
   color: #b71c1c;
   border-radius: 0; }
   .btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
@@ -4846,7 +4846,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
   text-transform: capitalize !important; }
 
 .font-weight-normal {
-  font-weight: 300; }
+  font-weight: 400; }
 
 .font-weight-bold {
   font-weight: 500; }
@@ -4969,6 +4969,76 @@ a.text-gray-dark:focus, a.text-gray-dark:hover {
   .hidden-print {
     display: none !important; } }
 
+body {
+  font-smoothing: antialiased; }
+
+h1 {
+  line-height: 3rem; }
+
+h2 {
+  line-height: 2.75rem; }
+
+h3 {
+  line-height: 2rem; }
+  @media (max-width: 767px) {
+    h3 {
+      font-size: 1em; } }
+
+h4 {
+  font-weight: 500;
+  line-height: 1.75rem; }
+  @media (max-width: 767px) {
+    h4 {
+      font-size: 1em; } }
+
+h5 {
+  line-height: 1.5rem; }
+
+p {
+  line-height: 1.5rem; }
+  @media (max-width: 767px) {
+    p {
+      font-size: .85em; } }
+  p.lead {
+    line-height: 2rem; }
+    @media (max-width: 991px) {
+      p.lead {
+        font-size: 1.5rem;
+        line-height: 2rem; } }
+    @media (max-width: 767px) {
+      p.lead {
+        font-size: 1rem;
+        line-height: 1.5rem; } }
+
+.display-2 {
+  margin-bottom: 4rem; }
+  @media (max-width: 991px) {
+    .display-2 {
+      font-size: 2.5rem;
+      line-height: 3.5rem;
+      margin-bottom: 3rem; } }
+  @media (max-width: 767px) {
+    .display-2 {
+      font-size: 2rem;
+      line-height: 2.75rem; } }
+
+@media (max-width: 575px) {
+  .display-4 {
+    font-size: .875rem;
+    line-height: 1.25rem; } }
+
+small {
+  line-height: 1rem; }
+  @media (max-width: 767px) {
+    small {
+      font-size: .75em; } }
+
+.truncate {
+  width: 100%;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis; }
+
 #mask {
   width: 100vw;
   height: 100vh;
@@ -5260,73 +5330,6 @@ button:focus {
 .amber-800 {
   color: #ff8f00; }
 
-h1 {
-  line-height: 3rem; }
-
-h2 {
-  line-height: 2.75rem; }
-
-h3 {
-  line-height: 2rem; }
-  @media (max-width: 767px) {
-    h3 {
-      font-size: 1em; } }
-
-h4 {
-  font-weight: 500;
-  line-height: 1.75rem; }
-  @media (max-width: 767px) {
-    h4 {
-      font-size: 1em; } }
-
-h5 {
-  line-height: 1.5rem; }
-
-p {
-  line-height: 1.5rem; }
-  @media (max-width: 767px) {
-    p {
-      font-size: .85em; } }
-  p.lead {
-    line-height: 2rem; }
-    @media (max-width: 991px) {
-      p.lead {
-        font-size: 1.5rem;
-        line-height: 2rem; } }
-    @media (max-width: 767px) {
-      p.lead {
-        font-size: 1rem;
-        line-height: 1.5rem; } }
-
-.display-2 {
-  margin-bottom: 4rem; }
-  @media (max-width: 991px) {
-    .display-2 {
-      font-size: 2.5rem;
-      line-height: 3.5rem;
-      margin-bottom: 3rem; } }
-  @media (max-width: 767px) {
-    .display-2 {
-      font-size: 2rem;
-      line-height: 2.75rem; } }
-
-@media (max-width: 575px) {
-  .display-4 {
-    font-size: .875rem;
-    line-height: 1.25rem; } }
-
-small {
-  line-height: 1rem; }
-  @media (max-width: 767px) {
-    small {
-      font-size: .75em; } }
-
-.truncate {
-  width: 100%;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis; }
-
 img.img-fluid {
   width: 100%;
   max-width: 100%;
index 523969780d57dc7fa8252ec3fff152b1a5babcd6..6d50852b728d6d8ecd0fd5ee771c4611db570dc0 100755 (executable)
@@ -101,7 +101,7 @@ $font-family-base:       $font-family-sans-serif;
 
 $font-size-lg:   1.25rem;
 
-$font-weight-normal: 300;
+$font-weight-normal: 400;
 $font-weight-bold: 500;
 
 $font-weight-base: $font-weight-normal;
index 27ab0e99e9388bc90ad4b4bbe723b60a8fda3693..18621ad448460d7d4d222a6882270e7aa886a9aa 100644 (file)
@@ -54,7 +54,8 @@
 @import "bootstrap-4.0.0-alpha.6/scss/utilities";
 
 // Custom stuff
-@import '_custom_nav';
+@import '_fonts';
+@import '_nav';
 @import '_buttons';
 
 
        color: $amber-800;
 }
 
-// Fonts
-h1 {
-       line-height: 3rem;
-}
-
-h2 {
-       line-height: 2.75rem;
-}
-
-h3 {
-       line-height: 2rem;
-       @include media-breakpoint-down(sm) {
-               font-size: 1em;
-       }
-}
-
-h4 {
-       font-weight: 500;
-       line-height: 1.75rem;
-       @include media-breakpoint-down(sm) {
-               font-size: 1em;
-       }
-}
-
-h5 {
-       line-height: 1.5rem;
-}
-
-p {
-       line-height: 1.5rem;
-       @include media-breakpoint-down(sm) {
-               font-size: .85em;
-       }
-       &.lead {
-               line-height: 2rem;
-               @include media-breakpoint-down(md) {
-                       font-size: 1.5rem;
-                       line-height: 2rem;
-               }
-               @include media-breakpoint-down(sm) {
-                       font-size: 1rem;
-                       line-height: 1.5rem;
-               }
-       }
-}
-
-.display-2 {
-       margin-bottom: 4rem;
-       @include media-breakpoint-down(md) {
-               font-size: 2.5rem;
-               line-height: 3.5rem;
-               margin-bottom: 3rem;
-       }
-       @include media-breakpoint-down(sm) {
-               font-size: 2rem;
-               line-height: 2.75rem;
-       }
-}
-
-.display-4 {
-       @include media-breakpoint-down(xs) {
-               font-size: .875rem;
-               line-height: 1.25rem;
-       }
-}
-
-small {
-       line-height: 1rem;
-       @include media-breakpoint-down(sm) {
-               font-size: .75em;
-       }
-}
-
-.truncate {
-  width: 100%;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
 // Images
 img {
        &.img-fluid {