mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 16:39:49 -05:00
70 lines
1 KiB
SCSS
70 lines
1 KiB
SCSS
// 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
|
|
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
// Padding & Margin sizes
|
|
$x-small: 5px;
|
|
$small: 10px;
|
|
$medium: 15px;
|
|
$big: 20px;
|
|
$x-big: 30px;
|
|
|
|
// New sizes
|
|
$size-1: 0.25rem;
|
|
$size-2: 0.5rem;
|
|
$size-3: 0.8rem;
|
|
$size-4: 1rem;
|
|
$size-5: 1.5rem;
|
|
$size-6: 2rem;
|
|
|
|
// Border radius
|
|
$br-small: 3px;
|
|
$br-medium: 5px;
|
|
$br-big: 8px;
|
|
|
|
// Alignments
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.row-flex {
|
|
align-items: center;
|
|
display: flex;
|
|
margin-bottom: $x-small;
|
|
|
|
&.column {
|
|
flex-direction: column;
|
|
}
|
|
|
|
&.center {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.flex-grow {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.column-half {
|
|
margin-right: $small;
|
|
}
|
|
|
|
// Display
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.hide {
|
|
opacity: 0;
|
|
}
|
|
|
|
.display {
|
|
opacity: 1 !important;
|
|
}
|