mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 14:05:11 +01:00
18d3fa953b
* add a system_font_ui setting on the server * Plug the system_font_ui on the front-end * add EN/FR locales for the new setting * put Roboto after all other fonts * remove trailing whitespace so CodeClimate is happy * fix user_spec.rb * correctly write user_spect this time * slightly better way of adding the classes * add comments to the system-font stack for clarification * use .system-font for the class instead * don't use multiple lines for comments * remove trailing whitespace * use the classnames module for consistency * use `mastodon-font-sans-serif` instead of Roboto directly
81 lines
1.8 KiB
SCSS
81 lines
1.8 KiB
SCSS
body {
|
|
font-family: 'mastodon-font-sans-serif', sans-serif;
|
|
background: $ui-base-color url('../images/background-photo.jpg');
|
|
background-size: cover;
|
|
background-attachment: fixed;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
font-weight: 400;
|
|
color: $primary-text-color;
|
|
padding-bottom: 140px;
|
|
text-rendering: optimizelegibility;
|
|
font-feature-settings: "kern";
|
|
text-size-adjust: none;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
&.app-body {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
background: $ui-base-color;
|
|
}
|
|
|
|
&.embed {
|
|
background: transparent;
|
|
margin: 0;
|
|
|
|
.container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
&.admin {
|
|
background: darken($ui-base-color, 4%);
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
@media screen and (max-width: 360px) {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.app-holder {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.system-font {
|
|
// system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
|
|
// -apple-system => Safari <11 specific
|
|
// BlinkMacSystemFont => Chrome <56 on macOS specific
|
|
// Segoe UI => Windows 7/8/10
|
|
// Oxygen => KDE
|
|
// Ubuntu => Unity/Ubuntu
|
|
// Cantarell => GNOME
|
|
// Fira Sans => Firefox OS
|
|
// Droid Sans => Older Androids (<4.0)
|
|
// Helvetica Neue => Older macOS <10.11
|
|
// mastodon-font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
|
|
font-family: system-ui, -apple-system,BlinkMacSystemFont, "Segoe UI","Oxygen", "Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",mastodon-font-sans-serif, sans-serif;
|
|
}
|