0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00
penpot/frontend/resources/styles/common/base.scss

270 lines
3.6 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
:root {
--font-family: "worksans", sans-serif;
}
2015-06-18 19:35:50 +02:00
body {
2020-03-03 13:14:37 +01:00
background-color: lighten($color-gray-10, 5%);
color: $color-gray-20;
2015-06-18 19:35:50 +02:00
display: flex;
flex-direction: column;
font-family: var(--font-family);
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;
2020-03-17 12:22:21 +01:00
// transition: all .4s ease;
2015-06-18 19:35:50 +02:00
}
.global-zeroclipboard-container {
transition: none;
#global-zeroclipboard-flash-bridge {
transition: none;
}
object {
transition: none;
}
}
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 {
font-family: "worksans", 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
@include bp(baby-bear) {
font-size: $fs16;
line-height: $lh-143;
2015-06-18 19:35:50 +02:00
}
}
li {
line-height: $lh-133;
2015-06-18 19:35:50 +02:00
@include bp(baby-bear) {
line-height: $lh-143;
2015-06-18 19:35:50 +02:00
}
}
ul {
margin-bottom: 1rem;
}
strong {
font-weight: $fw700;
2015-06-18 19:35:50 +02:00
}
.relative {
position: relative;
}
h1 {
font-size: $fs34;
font-weight: $fw500;
line-height: $lh-115;
2015-06-18 19:35:50 +02:00
@include bp(baby-bear) {
font-size: $fs38;
line-height: $lh-125;
2015-06-18 19:35:50 +02:00
}
&.supertitle {
font-size: $fs44;
font-weight: $fw300;
line-height: $lh-115;
2015-06-18 19:35:50 +02:00
@include bp(baby-bear) {
font-size: $fs44;
line-height: $lh-125;
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
@include bp(baby-bear) {
font-size: $fs32;
line-height: $lh-125;
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
}
@-webkit-keyframes rotation {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(359deg);
}
2015-06-18 19:35:50 +02:00
}
@-webkit-keyframes rotation-negative {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(-359deg);
}
2015-06-18 19:35:50 +02:00
}
@keyframes tooltipAppear {
0% {
opacity: 0;
display: none;
}
1% {
display: block;
opacity: 0;
left: 3rem;
}
100% {
opacity: 1;
left: 2rem;
}
2015-06-18 19:35:50 +02:00
}
@keyframes show {
0% {
opacity: 0;
display: none;
}
1% {
display: block;
opacity: 0;
}
100% {
opacity: 1;
}
2015-06-18 19:35:50 +02:00
}
@keyframes hide {
0% {
opacity: 1;
display: block;
}
99% {
opacity: 0;
display: block;
}
100% {
display: none;
}
2015-06-18 19:35:50 +02:00
}
.hide {
display: none !important;
transition: all 0.5s ease;
}
.visuallyHidden {
opacity: 0 !important;
transition: all 0.5s ease;
}
.show {
animation: show 0.4s linear;
2015-06-18 19:35:50 +02:00
display: block !important;
}
.center {
margin: 0 auto;
text-align: center;
}
.hidden-input {
2015-06-18 19:35:50 +02:00
display: none;
}
.bold {
font-weight: $fw700 !important;
2015-06-18 19:35:50 +02:00
}
.nopd {
padding: 0 !important;
}
.move-cursor {
cursor: move;
}
2015-06-18 19:35:50 +02:00
hr {
2020-03-03 13:14:37 +01:00
border-top: solid 1px $color-gray-60;
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
[data-hidden="true"] {
display: none;
pointer-events: none;
}