]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Use source sans 3 font
authorChocobozzz <me@florianbigard.com>
Tue, 5 Jan 2021 12:48:56 +0000 (13:48 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 13 Jan 2021 08:05:22 +0000 (09:05 +0100)
14 files changed:
client/package.json
client/src/app/+videos/+video-watch/video-watch.component.scss
client/src/app/menu/menu.component.scss
client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
client/src/sass/bootstrap.scss
client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2 [new file with mode: 0644]
client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2 [new file with mode: 0644]
client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2 [new file with mode: 0644]
client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2 [new file with mode: 0644]
client/src/sass/include/_fonts.scss
client/src/sass/include/_mixins.scss
client/src/sass/include/_variables.scss
client/yarn.lock
server/tests/api/notifications/moderation-notifications.ts

index 7ee661193678ee2d3d2655630a07a7279a1e78d2..711be41c2d2d733df5fd647601c86ddfcb29175e 100644 (file)
@@ -96,7 +96,6 @@
     "lodash-es": "^4.17.4",
     "markdown-it": "12.0.2",
     "mini-css-extract-plugin": "^1.3.1",
-    "npm-font-source-sans-pro": "^1.0.2",
     "p2p-media-loader-hlsjs": "^0.6.2",
     "path-browserify": "^1.0.0",
     "primeng": "^11.0.0-rc.1",
index 9d8dffe3d6a3e5297f2a8444b87e99387f458e7f..555126cbc293eb709be5d7248b7b934e953df20b 100644 (file)
@@ -197,7 +197,7 @@ $video-info-margin-left: 44px;
             line-height: 1.37;
 
             a:nth-of-type(2) {
-              font-weight: 500;
+              font-weight: $font-regular;
               font-size: 90%;
             }
 
index f369fa17af40ebe62bd1b61e5cc392ac097cb45a..6a49866b1e184a41d1cf9fd3a65d7d580b53045f 100644 (file)
@@ -15,6 +15,7 @@ $menu-link-icon-margin-right: 18px;
   word-break: break-word;
   padding-right: 20px;
   transition: background-color .1s ease-in-out;
+  line-height: $line-height-normal;
 
   &.active {
     background-color: rgba(255, 255, 255, 0.15);
@@ -208,6 +209,7 @@ menu {
     flex-direction: column;
     align-items: flex-start;
     border-top: 1px solid var(--greyForegroundColor);
+    line-height: $line-height-normal;
 
     a {
       @include menu-link;
index 4f53ffaf6abdc907669b7f0bf684c9adc3606758..2b723a15aaec1fefecc4e701fc5ae074e3775705 100644 (file)
@@ -27,7 +27,7 @@
     border-radius: 3px;
     font-size: 12px;
     font-weight: $font-semibold;
-    line-height: 1.2;
+    line-height: 1.1;
     z-index: z(miniature);
   }
 
index ac53ae7a54eb148c72ded219d7346f6cad711426..ade8d70334465a5a95b12e2ff00527b9701e3bb7 100644 (file)
@@ -88,6 +88,9 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   }
 }
 
+.badge {
+  line-height: 1.1;
+}
 
 @media screen and (min-width: #{breakpoint(md)}) {
   .modal:before {
@@ -377,7 +380,7 @@ ngb-tooltip-window {
   &:not(.callout-light) {
     border-left-width: .25rem;
   }
-  
+
   &.callout-info {
     border-color: pvar(--mainColorLightest);
     border-left-color: pvar(--mainColor);
diff --git a/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2 b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2
new file mode 100644 (file)
index 0000000..4d686e3
Binary files /dev/null and b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2 differ
diff --git a/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2 b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2
new file mode 100644 (file)
index 0000000..6cefd8f
Binary files /dev/null and b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2 differ
diff --git a/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2 b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2
new file mode 100644 (file)
index 0000000..18aab2b
Binary files /dev/null and b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2 differ
diff --git a/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2 b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2
new file mode 100644 (file)
index 0000000..034bc6b
Binary files /dev/null and b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2 differ
index dd1cbadb3325f7180bab524c3761abc91e700c2a..be11321605acf1fc6692f9c402c2930d31e44fda 100644 (file)
@@ -1,23 +1,15 @@
-$FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts';
-$basePath: '#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro';
-
-@mixin fontface($name, $path, $weight: null, $style: null, $exts: woff2) {
-  $src: null;
-  @each $ext in $exts {
-    $src: append($src, url(quote($path + "." + $ext)) format(quote($ext)), comma);
-  }
-  @font-face {
-    font-family: quote($name);
-    font-weight: $weight;
-    font-style: $style;
-    font-stretch: normal;
-    font-display: swap;
-    src: $src;
-  }
+@font-face{
+  font-family: 'Source Sans Pro';
+  font-weight: 200 900;
+  font-style: normal;
+  font-stretch: normal;
+  src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2') format('woff2');
 }
 
-@include fontface('Source Sans Pro', '#{$basePath}-Regular.ttf', 400, normal);
-@include fontface('Source Sans Pro', '#{$basePath}-It.ttf', 400, italic);
-@include fontface('Source Sans Pro', '#{$basePath}-Semibold.ttf', 600, normal);
-@include fontface('Source Sans Pro', '#{$basePath}-SemiboldIt.ttf', 600, italic);
-@include fontface('Source Sans Pro', '#{$basePath}-Bold.ttf', 700, normal);
\ No newline at end of file
+@font-face{
+  font-family: 'Source Sans Pro';
+  font-weight: 200 900;
+  font-style: italic;
+  font-stretch: normal;
+  src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2');
+}
index 10ab44f57a402d8d2c95c17ab4ee662572b7903e..0ce22354e80411d4a9aecbf78b98621be19b9ac5 100644 (file)
 
 @mixin grey-button {
   @include button-focus($grey-button-outline-color);
+
   background-color: $grey-background-color;
   color: pvar(--greyForegroundColor);
 
 }
 
 @mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px) {
+  display: inline-flex;
+  align-items: center;
+  line-height: normal !important;
+
   my-global-icon {
     position: relative;
     width: $width;
   .dashboard-num, .dashboard-text {
     text-align: center;
     font-size: 130%;
-    line-height: 21px;
     color: pvar(--mainForegroundColor);
     line-height: 30px;
     margin-bottom: 20px;
index b1e0431bb61c2f0a74351fc4b7f5ece8baeab02b..acdc8d05f14e5aeec7b3e7bad2995d3e4c6309cf 100644 (file)
@@ -7,6 +7,7 @@ $main-fonts: 'Source Sans Pro', sans-serif;
 $font-regular: 400;
 $font-semibold: 600;
 $font-bold: 700;
+$line-height-normal: 1.2;
 
 $grey-background-color: #E5E5E5;
 $grey-background-hover-color: #EFEFEF;
index d27cdaec8795f833dc1a9ed643666cdeb08854cc..19768b1d2de25ce90ffcbc4e2049d2d536cd33a3 100644 (file)
@@ -7721,11 +7721,6 @@ npm-bundled@^1.0.1:
   dependencies:
     npm-normalize-package-bin "^1.0.1"
 
-npm-font-source-sans-pro@^1.0.2:
-  version "1.0.2"
-  resolved "https://registry.yarnpkg.com/npm-font-source-sans-pro/-/npm-font-source-sans-pro-1.0.2.tgz#c55c8ae368eebdbcaca65425a0d7e1f9a192a03e"
-  integrity sha1-xVyK42juvbysplQloNfh+aGSoD4=
-
 npm-install-checks@^4.0.0:
   version "4.0.0"
   resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-4.0.0.tgz#a37facc763a2fde0497ef2c6d0ac7c3fbe00d7b4"
index 81f02ff993d9d71bc0a9f8eec4313d0eba7cb773..cff19223fd6ae09c252e64579f594dd9ab9f5638 100644 (file)
@@ -604,7 +604,7 @@ describe('Test moderation notifications', function () {
     })
 
     it('Should not send a notification to moderators on new video without auto-blacklist', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       const name = 'video without auto-blacklist ' + uuidv4()