gab-social/app/javascript/styles/gabsocial/basics.scss

149 lines
2.9 KiB
SCSS
Raw Normal View History

2019-07-02 08:10:25 +01:00
@function hex-color($color) {
2019-09-17 00:31:30 +01:00
@if type-of($color)=='color' {
2019-07-02 08:10:25 +01:00
$color: str-slice(ie-hex-str($color), 4);
}
2019-09-17 00:31:30 +01:00
@return '%23'+unquote($color)
2019-07-02 08:10:25 +01:00
}
html {
@include font-roboto();
@include font-weight(normal);
font-size: 62.5%;
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
2019-09-17 00:31:30 +01:00
font-size: 16px;
line-height: 19px;
2019-07-02 08:10:25 +01:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizelegibility;
font-feature-settings: "kern";
2019-09-17 00:31:30 +01:00
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2019-07-02 08:10:25 +01:00
-webkit-tap-highlight-color: transparent;
color: white;
2019-07-02 08:10:25 +01:00
background: $gab-background-base;
2019-09-17 00:31:30 +01:00
&.theme-gabsocial-light {
color: $gab-default-text-light;
background: $gab-background-base-light;
}
2019-07-02 08:10:25 +01:00
&.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
// $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", $font-sans-serif, sans-serif;
}
&.app-body {
position: absolute;
width: 100%;
padding: 0;
overflow: hidden;
overflow-y: scroll;
&.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;
overflow: hidden;
2019-09-17 00:31:30 +01:00
@include size(100%);
2019-07-02 08:10:25 +01:00
}
}
&.admin {
background: darken($ui-base-color, 4%);
position: fixed;
padding: 0;
2019-09-17 00:31:30 +01:00
@include size(100%);
2019-07-02 08:10:25 +01:00
}
&.error {
position: absolute;
text-align: center;
color: $darker-text-color;
background: $ui-base-color;
padding: 0;
2019-09-17 00:31:30 +01:00
@include flex(center, center);
@include size(100%);
2019-07-02 08:10:25 +01:00
.dialog {
vertical-align: middle;
margin: 20px;
&__illustration {
img {
display: block;
max-width: 470px;
margin-top: -120px;
2019-09-17 00:31:30 +01:00
@include size(100%, auto);
2019-07-02 08:10:25 +01:00
}
}
h1 {
2019-09-17 00:31:30 +01:00
@include text-sizing(20px, 400, 28px);
2019-07-02 08:10:25 +01:00
}
}
}
}
button {
font-family: inherit;
cursor: pointer;
&:focus {
outline: none;
}
}
.app-holder {
&,
2019-09-17 00:31:30 +01:00
&>div {
2019-07-02 08:10:25 +01:00
outline: 0 !important;
2019-09-17 00:31:30 +01:00
@include flex(center, start);
@include size(100%);
}
}