mirror of
https://github.com/funamitech/mastodon
synced 2024-11-25 15:46:44 +09:00
f4d549d300
* Verify link ownership with rel="me" * Add explanation about verification to UI * Perform link verifications * Add click-to-copy widget for verification HTML * Redesign edit profile page * Redesign forms * Improve responsive design of settings pages * Restore landing page sign-up form * Fix typo * Support <link> tags, add spec * Fix links not being verified on first discovery and passive updates
140 lines
2.8 KiB
SCSS
140 lines
2.8 KiB
SCSS
@function hex-color($color) {
|
|
@if type-of($color) == 'color' {
|
|
$color: str-slice(ie-hex-str($color), 4);
|
|
}
|
|
@return '%23' + unquote($color)
|
|
}
|
|
|
|
body {
|
|
font-family: 'mastodon-font-sans-serif', sans-serif;
|
|
background: darken($ui-base-color, 8%);
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
font-weight: 400;
|
|
color: $primary-text-color;
|
|
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;
|
|
|
|
&.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;
|
|
}
|
|
|
|
&.app-body {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
background: $ui-base-color;
|
|
|
|
&.with-modals--active {
|
|
overflow-y: hidden;
|
|
}
|
|
}
|
|
|
|
&.lighter {
|
|
background: $ui-base-color;
|
|
}
|
|
|
|
&.with-modals {
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
|
|
&--active {
|
|
overflow-y: hidden;
|
|
margin-right: 13px;
|
|
}
|
|
}
|
|
|
|
&.player {
|
|
text-align: center;
|
|
}
|
|
|
|
&.embed {
|
|
background: lighten($ui-base-color, 4%);
|
|
margin: 0;
|
|
padding-bottom: 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;
|
|
}
|
|
|
|
&.error {
|
|
position: absolute;
|
|
text-align: center;
|
|
color: $darker-text-color;
|
|
background: $ui-base-color;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.dialog {
|
|
vertical-align: middle;
|
|
margin: 20px;
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 470px;
|
|
width: 100%;
|
|
height: auto;
|
|
margin-top: -120px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.app-holder {
|
|
&,
|
|
& > div {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
outline: 0 !important;
|
|
}
|
|
}
|