aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-05 13:48:56 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-13 09:05:22 +0100
commit26171379d0196ac645923e72b12e1cf29089835b (patch)
tree678e4c0f3f03387f6a3388e2479004ceb9e59dbc /client/src
parentfeaf98d528851d025730b4f220e36f14ff5c29c7 (diff)
downloadPeerTube-26171379d0196ac645923e72b12e1cf29089835b.tar.gz
PeerTube-26171379d0196ac645923e72b12e1cf29089835b.tar.zst
PeerTube-26171379d0196ac645923e72b12e1cf29089835b.zip
Use source sans 3 font
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.scss2
-rw-r--r--client/src/app/menu/menu.component.scss2
-rw-r--r--client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss2
-rw-r--r--client/src/sass/bootstrap.scss5
-rw-r--r--client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2bin0 -> 112112 bytes
-rw-r--r--client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2bin0 -> 117748 bytes
-rw-r--r--client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2bin0 -> 139788 bytes
-rw-r--r--client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2bin0 -> 144620 bytes
-rw-r--r--client/src/sass/include/_fonts.scss34
-rw-r--r--client/src/sass/include/_mixins.scss6
-rw-r--r--client/src/sass/include/_variables.scss1
11 files changed, 27 insertions, 25 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.scss b/client/src/app/+videos/+video-watch/video-watch.component.scss
index 9d8dffe3d..555126cbc 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.scss
+++ b/client/src/app/+videos/+video-watch/video-watch.component.scss
@@ -197,7 +197,7 @@ $video-info-margin-left: 44px;
197 line-height: 1.37; 197 line-height: 1.37;
198 198
199 a:nth-of-type(2) { 199 a:nth-of-type(2) {
200 font-weight: 500; 200 font-weight: $font-regular;
201 font-size: 90%; 201 font-size: 90%;
202 } 202 }
203 203
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss
index f369fa17a..6a49866b1 100644
--- a/client/src/app/menu/menu.component.scss
+++ b/client/src/app/menu/menu.component.scss
@@ -15,6 +15,7 @@ $menu-link-icon-margin-right: 18px;
15 word-break: break-word; 15 word-break: break-word;
16 padding-right: 20px; 16 padding-right: 20px;
17 transition: background-color .1s ease-in-out; 17 transition: background-color .1s ease-in-out;
18 line-height: $line-height-normal;
18 19
19 &.active { 20 &.active {
20 background-color: rgba(255, 255, 255, 0.15); 21 background-color: rgba(255, 255, 255, 0.15);
@@ -208,6 +209,7 @@ menu {
208 flex-direction: column; 209 flex-direction: column;
209 align-items: flex-start; 210 align-items: flex-start;
210 border-top: 1px solid var(--greyForegroundColor); 211 border-top: 1px solid var(--greyForegroundColor);
212 line-height: $line-height-normal;
211 213
212 a { 214 a {
213 @include menu-link; 215 @include menu-link;
diff --git a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
index 4f53ffaf6..2b723a15a 100644
--- a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
+++ b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
@@ -27,7 +27,7 @@
27 border-radius: 3px; 27 border-radius: 3px;
28 font-size: 12px; 28 font-size: 12px;
29 font-weight: $font-semibold; 29 font-weight: $font-semibold;
30 line-height: 1.2; 30 line-height: 1.1;
31 z-index: z(miniature); 31 z-index: z(miniature);
32 } 32 }
33 33
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index ac53ae7a5..ade8d7033 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -88,6 +88,9 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
88 } 88 }
89} 89}
90 90
91.badge {
92 line-height: 1.1;
93}
91 94
92@media screen and (min-width: #{breakpoint(md)}) { 95@media screen and (min-width: #{breakpoint(md)}) {
93 .modal:before { 96 .modal:before {
@@ -377,7 +380,7 @@ ngb-tooltip-window {
377 &:not(.callout-light) { 380 &:not(.callout-light) {
378 border-left-width: .25rem; 381 border-left-width: .25rem;
379 } 382 }
380 383
381 &.callout-info { 384 &.callout-info {
382 border-color: pvar(--mainColorLightest); 385 border-color: pvar(--mainColorLightest);
383 border-left-color: pvar(--mainColor); 386 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
index 000000000..4d686e31a
--- /dev/null
+++ b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2
Binary files 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
index 000000000..6cefd8f3d
--- /dev/null
+++ b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2
Binary files 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
index 000000000..18aab2b90
--- /dev/null
+++ b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2
Binary files 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
index 000000000..034bc6b9f
--- /dev/null
+++ b/client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2
Binary files differ
diff --git a/client/src/sass/include/_fonts.scss b/client/src/sass/include/_fonts.scss
index dd1cbadb3..be1132160 100644
--- a/client/src/sass/include/_fonts.scss
+++ b/client/src/sass/include/_fonts.scss
@@ -1,23 +1,15 @@
1$FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; 1@font-face{
2$basePath: '#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro'; 2 font-family: 'Source Sans Pro';
3 3 font-weight: 200 900;
4@mixin fontface($name, $path, $weight: null, $style: null, $exts: woff2) { 4 font-style: normal;
5 $src: null; 5 font-stretch: normal;
6 @each $ext in $exts { 6 src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2') format('woff2');
7 $src: append($src, url(quote($path + "." + $ext)) format(quote($ext)), comma);
8 }
9 @font-face {
10 font-family: quote($name);
11 font-weight: $weight;
12 font-style: $style;
13 font-stretch: normal;
14 font-display: swap;
15 src: $src;
16 }
17} 7}
18 8
19@include fontface('Source Sans Pro', '#{$basePath}-Regular.ttf', 400, normal); 9@font-face{
20@include fontface('Source Sans Pro', '#{$basePath}-It.ttf', 400, italic); 10 font-family: 'Source Sans Pro';
21@include fontface('Source Sans Pro', '#{$basePath}-Semibold.ttf', 600, normal); 11 font-weight: 200 900;
22@include fontface('Source Sans Pro', '#{$basePath}-SemiboldIt.ttf', 600, italic); 12 font-style: italic;
23@include fontface('Source Sans Pro', '#{$basePath}-Bold.ttf', 700, normal); \ No newline at end of file 13 font-stretch: normal;
14 src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2');
15}
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index 10ab44f57..0ce22354e 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -180,6 +180,7 @@
180 180
181@mixin grey-button { 181@mixin grey-button {
182 @include button-focus($grey-button-outline-color); 182 @include button-focus($grey-button-outline-color);
183
183 background-color: $grey-background-color; 184 background-color: $grey-background-color;
184 color: pvar(--greyForegroundColor); 185 color: pvar(--greyForegroundColor);
185 186
@@ -247,6 +248,10 @@
247} 248}
248 249
249@mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px) { 250@mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px) {
251 display: inline-flex;
252 align-items: center;
253 line-height: normal !important;
254
250 my-global-icon { 255 my-global-icon {
251 position: relative; 256 position: relative;
252 width: $width; 257 width: $width;
@@ -807,7 +812,6 @@
807 .dashboard-num, .dashboard-text { 812 .dashboard-num, .dashboard-text {
808 text-align: center; 813 text-align: center;
809 font-size: 130%; 814 font-size: 130%;
810 line-height: 21px;
811 color: pvar(--mainForegroundColor); 815 color: pvar(--mainForegroundColor);
812 line-height: 30px; 816 line-height: 30px;
813 margin-bottom: 20px; 817 margin-bottom: 20px;
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss
index b1e0431bb..acdc8d05f 100644
--- a/client/src/sass/include/_variables.scss
+++ b/client/src/sass/include/_variables.scss
@@ -7,6 +7,7 @@ $main-fonts: 'Source Sans Pro', sans-serif;
7$font-regular: 400; 7$font-regular: 400;
8$font-semibold: 600; 8$font-semibold: 600;
9$font-bold: 700; 9$font-bold: 700;
10$line-height-normal: 1.2;
10 11
11$grey-background-color: #E5E5E5; 12$grey-background-color: #E5E5E5;
12$grey-background-hover-color: #EFEFEF; 13$grey-background-hover-color: #EFEFEF;