0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 09:38:56 -05:00
penpot/frontend/resources/styles/common/base.scss

155 lines
2.4 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC
2016-03-01 20:39:13 +02:00
2024-06-20 11:56:41 +02:00
// TODO: Legacy sass vars. We should use DS tokens.
$color-gray-50: #303236;
2024-06-20 11:56:41 +02:00
$fs12: 0.75rem;
2024-06-20 14:58:19 +02:00
$fs14: 0.875rem;
2024-06-20 11:56:41 +02:00
$fs18: 1.125rem;
$fs24: 1.5rem;
$fs34: 2.125rem;
$fs44: 2.75rem;
$fw300: 300;
$fw500: 500;
$lh-115: 1.15;
$lh-133: 1.33;
2024-06-20 14:58:19 +02:00
$size-4: 1rem;
2024-06-20 11:56:41 +02:00
2015-06-18 19:35:50 +02:00
body {
background-color: var(--color-background-primary);
color: var(--color-foreground-primary);
2015-06-18 19:35:50 +02:00
display: flex;
flex-direction: column;
font-family: "worksans", "vazirmatn", sans-serif;
2022-01-26 15:16:21 +01:00
width: 100vw;
height: 100vh;
overflow: hidden;
}
#app {
width: 100vw;
height: 100vh;
2015-12-15 13:23:26 +01:00
overflow: hidden;
2023-04-27 12:44:11 +02:00
position: relative;
2015-06-18 19:35:50 +02:00
}
* {
2016-02-20 22:26:07 +01:00
box-sizing: border-box;
scrollbar-width: thin;
2015-06-18 19:35:50 +02:00
}
2024-06-20 14:58:19 +02:00
// Firefox-only hack
@-moz-document url-prefix() {
* {
scrollbar-width: auto;
}
}
2015-06-18 19:35:50 +02:00
img {
height: auto;
width: 100%;
}
svg {
* {
transition: none;
}
}
a {
2016-05-28 16:31:49 +03:00
cursor: pointer;
font-weight: $fw500;
2022-11-28 08:44:19 +01:00
color: $color-gray-50;
2015-06-18 19:35:50 +02:00
&:hover {
2022-11-28 08:44:19 +01:00
text-decoration: underline;
2015-06-18 19:35:50 +02:00
}
}
button {
2024-07-03 07:30:05 +02:00
font-family: "worksans", "vazirmatn", sans-serif;
}
2015-06-18 19:35:50 +02:00
p {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
2015-06-18 19:35:50 +02:00
margin-bottom: 1rem;
line-height: $lh-133;
2015-06-18 19:35:50 +02:00
}
li {
line-height: $lh-133;
2015-06-18 19:35:50 +02:00
}
ul {
margin-bottom: 1rem;
}
h1 {
font-size: $fs34;
font-weight: $fw500;
line-height: $lh-115;
2015-06-18 19:35:50 +02:00
}
2024-06-20 14:58:19 +02:00
2015-06-18 19:35:50 +02:00
h2 {
font-size: $fs24;
font-weight: $fw300;
line-height: $lh-115;
2015-06-18 19:35:50 +02:00
}
h3 {
font-size: $fs24;
font-weight: $fw300;
padding: 0.5rem 0;
2015-06-18 19:35:50 +02:00
}
h4 {
font-size: $fs18;
font-weight: $fw300;
2015-06-18 19:35:50 +02:00
}
hr {
border-top: solid 1px var(--color-background-primary);
2015-06-18 19:35:50 +02:00
border-right: 0;
border-left: 0;
border-bottom: 0;
margin: 1rem 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
2015-06-18 19:35:50 +02:00
}
2020-06-03 08:48:21 +02:00
input[type="number"] {
2020-06-03 08:48:21 +02:00
-moz-appearance: textfield;
}
2020-11-30 17:59:39 +01:00
[contenteditable] {
-webkit-user-select: text;
user-select: text;
2020-11-30 17:59:39 +01:00
}
2023-09-04 11:20:11 +02:00
2024-06-20 14:58:19 +02:00
input,
select {
box-sizing: border-box;
2024-07-03 07:30:05 +02:00
font-family: "worksans", "vazirmatn", sans-serif;
2024-06-20 14:58:19 +02:00
font-size: $fs14;
margin-bottom: $size-4;
-webkit-appearance: none;
-moz-appearance: none;
}
[draggable] {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
/* Required to make elements draggable in old WebKit */
-khtml-user-drag: element;
-webkit-user-drag: element;
2023-09-04 11:20:11 +02:00
}