platform/packages/theme/styles/global.scss
Alexander Platov f6cb336d4d
Fix number and string editors. Update attributes header. (#1823)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
2022-05-22 10:30:59 +06:00

113 lines
3.3 KiB
SCSS

//
// Copyright © 2021 Anticrm Platform Contributors.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
@import "./_colors.scss";
@import "./_layouts.scss";
@import "./common.scss";
@import "./components.scss";
@import "./dialogs.scss";
@import "./popups.scss";
@import "./mixins.scss";
@import "./panel.scss";
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 400;
src: local('IBM Plex Sans'),
local('IBMPlexSans'),
url('../fonts/complete/woff2/IBMPlexSans-Regular.woff2') format('woff2'),
url('../fonts/complete/woff/IBMPlexSans-Regular.woff') format('woff');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 500;
src: local('IBM Plex Sans Medium'),
local('IBMPlexSans-Medium'),
url('../fonts/complete/woff2/IBMPlexSans-Medium.woff2') format('woff2'),
url('../fonts/complete/woff/IBMPlexSans-Medium.woff') format('woff');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 600;
src: local('IBM Plex Sans SemiBold'),
local('IBMPlexSans-SemiBold'),
url('../fonts/complete/woff2/IBMPlexSans-SemiBold.woff2') format('woff2'),
url('../fonts/complete/woff/IBMPlexSans-SemiBold.woff') format('woff');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 700;
src: local('IBM Plex Sans Bold'),
local('IBMPlexSans-Bold'),
url('../fonts/complete/woff2/IBMPlexSans-Bold.woff2') format('woff2'),
url('../fonts/complete/woff/IBMPlexSans-Bold.woff') format('woff');
}
* {
box-sizing: border-box;
scrollbar-color: var(--theme-menu-color) var(--theme-bg-color);
scrollbar-width: thin;
--font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
--timing-shadow: cubic-bezier(0,.65,.35,1);
--timing-main: cubic-bezier(0.25, 0.46, 0.45, 0.94);
// transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar:horizontal {
height: 6px;
}
::-webkit-scrollbar-track, .panel-container .scroll .scroll::-webkit-scrollbar-track {
margin: 6px;
// background-color: var(--theme-scroll-bar);
}
::-webkit-scrollbar-thumb {
background-color: var(--theme-scroll-bar);
border-radius: .25rem;
}
::-webkit-scrollbar-thumb:hover {
background-color: var(--theme-scroll-bar);
border-radius: .25rem;
}
::-webkit-scrollbar-corner {
background-color: var(--theme-scroll-bar);
border-radius: .25rem;
}
.kanban-container .scroll::-webkit-scrollbar-track {
margin: 2.5rem;
}
.normal-font { font-size: 16px; }
.small-font { font-size: 14px; }
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-family: var(--font-family);
font-weight: 400;
font-size: .875rem;
color: var(--content-color);
background-color: var(--body-color);
user-select: none;
}