MM-37087 - Updating heading fonts (#908)

This commit is contained in:
Asaad Mahmood 2021-08-10 00:34:48 +05:00 committed by GitHub
parent cdc72c31f8
commit d816af323e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 75 additions and 26 deletions

View file

@ -8,7 +8,7 @@
border-radius: 3px; border-radius: 3px;
margin-bottom: 10px; margin-bottom: 10px;
padding: 8px 16px; padding: 12px 16px;
box-shadow: rgba(var(--center-channel-color-rgb), 0.1) 0px 0px 0px 1px, box-shadow: rgba(var(--center-channel-color-rgb), 0.1) 0px 0px 0px 1px,
rgba(var(--center-channel-color-rgb), 0.1) 0px 2px 4px; rgba(var(--center-channel-color-rgb), 0.1) 0px 2px 4px;
@ -46,11 +46,13 @@
.octo-icontitle { .octo-icontitle {
flex: 1 1 auto; flex: 1 1 auto;
font-weight: 500; font-weight: 600;
line-height: 20px;
margin-bottom: 8px;
.octo-icon { .octo-icon {
font-size: 16px; font-size: 16px;
margin-right: 5px; margin-right: 8px;
} }
} }
.IconButton { .IconButton {

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,64 @@
h1,
h2,
h3,
.title {
font-family: Metropolis, sans-serif;
font-weight: 600;
}
.focalboard-body {
.title {
font-size: 40px;
line-height: 40px;
margin: 0 0 10px 0;
}
}
h1 {
font-size: 40px;
line-height: 40px;
margin: 0 0 10px 0;
}
// Metropolis font definitions
@font-face {
font-family: 'Metropolis';
font-style: normal;
font-weight: 600;
src: url('../fonts/metropolis/Metropolis-SemiBold.woff2') format('woff2');
}
@font-face {
font-family: 'Metropolis';
font-style: italic;
font-weight: 600;
src: url('../fonts/metropolis/Metropolis-SemiBoldItalic.woff2') format('woff2');
}
@font-face {
font-family: 'Metropolis';
font-style: normal;
font-weight: 400;
src: url('../fonts/metropolis/Metropolis-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Metropolis';
font-style: italic;
font-weight: 400;
src: url('../fonts/metropolis/Metropolis-RegularItalic.woff2') format('woff2');
}
@font-face {
font-family: 'Metropolis';
font-style: normal;
font-weight: 300;
src: url('../fonts/metropolis/Metropolis-Light.woff2') format('woff2');
}
@font-face {
font-family: 'Metropolis';
font-style: italic;
font-weight: 300;
src: url('../fonts/metropolis/Metropolis-LightItalic.woff2') format('woff2');
}

View file

@ -1,4 +1,6 @@
@import "compass-icons"; @import "_compass-icons";
@import "_typography";
html { html {
height: 100%; height: 100%;
} }
@ -20,18 +22,6 @@ html {
} }
.focalboard-body { .focalboard-body {
@font-face {
font-family: 'compass-icons';
src: url('../fonts/compass-icons/compass-icons.eot?45182295');
src: url('../fonts/compass-icons/compass-icons.eot?45182295#iefix') format('embedded-opentype'),
url('../fonts/compass-icons/compass-icons.woff2?45182295') format('woff2'),
url('../fonts/compass-icons/compass-icons.woff?45182295') format('woff'),
url('../fonts/compass-icons/compass-icons.ttf?45182295') format('truetype'),
url('../fonts/compass-icons/compass-icons.svg?45182295#compass-icons') format('svg');
font-weight: normal;
font-style: normal;
}
* { * {
box-sizing: border-box; box-sizing: border-box;
outline: 0; outline: 0;
@ -103,14 +93,6 @@ html {
margin: 50px auto; margin: 50px auto;
} }
.title,
h1 {
font-size: 40px;
line-height: 40px;
margin: 0 0 10px 0;
font-weight: 600;
}
/* App frame */ /* App frame */
#root { #root {
@ -144,7 +126,7 @@ html {
.octo-icon { .octo-icon {
font-family: "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, font-family: "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji,
"Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols; "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols;
line-height: 1.5em; line-height: 1.2;
align-self: baseline; align-self: baseline;
overflow: visible; overflow: visible;
} }
@ -160,8 +142,9 @@ html {
/*-- Property list --*/ /*-- Property list --*/
.octo-propertyvalue { .octo-propertyvalue {
font-size: 12px;
color: rgb(var(--center-channel-color-rgb)); color: rgb(var(--center-channel-color-rgb));
padding: 0 5px;
&.empty { &.empty {
color: rgba(var(--center-channel-color-rgb), 0.4); color: rgba(var(--center-channel-color-rgb), 0.4);
} }