0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-06 06:18:32 -05:00
penpot/frontend/resources/styles/common/dependencies/helpers.scss

70 lines
1 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
2015-06-18 19:35:50 +02:00
// Padding & Margin sizes
$size-1: 0.25rem;
$size-2: 0.5rem;
2021-10-05 10:16:44 +02:00
$size-3: 0.75rem;
$size-4: 1rem;
$size-5: 1.5rem;
$size-6: 2rem;
2015-06-18 19:35:50 +02:00
// Border radius
$br-small: 3px;
$br-medium: 5px;
$br-big: 8px;
$br-huge: 12px;
2015-06-18 19:35:50 +02:00
// Alignments
.text-left {
text-align: left;
2015-06-18 19:35:50 +02:00
}
.text-right {
text-align: right;
2015-06-18 19:35:50 +02:00
}
.row-flex {
align-items: center;
display: flex;
2021-10-05 10:16:44 +02:00
margin-bottom: $size-1;
2015-06-18 19:35:50 +02:00
&.column {
flex-direction: column;
}
&.center {
justify-content: center;
}
2015-06-18 19:35:50 +02:00
}
.row-grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.flex-grow {
flex-grow: 1;
}
2016-05-25 17:41:10 +02:00
.column-half {
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
2016-05-25 17:41:10 +02:00
}
2015-06-18 19:35:50 +02:00
// Display
.hidden {
display: none;
2015-06-18 19:35:50 +02:00
}
.hide {
opacity: 0;
2015-06-18 19:35:50 +02:00
}
.display {
opacity: 1 !important;
2015-06-18 19:35:50 +02:00
}