0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-28 17:39:26 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-align-options.scss

64 lines
1.2 KiB
SCSS
Raw Normal View History

2020-04-07 12:18:10 +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>
.align-options {
display: flex;
border-bottom: solid 1px $color-gray-60;
2020-10-20 13:21:32 +02:00
height: 40px;
.align-group {
2021-10-05 10:16:44 +02:00
padding: 0 $size-1;
display: flex;
justify-content: flex-start;
width: 50%;
&:not(:last-child) {
border-right: solid 1px $color-gray-60;
}
}
2020-04-07 12:18:10 +02:00
.align-button {
2020-10-20 13:21:32 +02:00
align-items: center;
2020-04-07 12:18:10 +02:00
cursor: pointer;
2020-10-20 13:21:32 +02:00
display: flex;
2021-09-20 14:29:18 +02:00
height: 30px;
justify-content: center;
margin: 5px 0;
2021-10-05 10:16:44 +02:00
padding: $size-2 $size-1;
2021-09-20 14:29:18 +02:00
width: 25%;
2020-04-07 12:18:10 +02:00
svg {
height: 16px;
width: 16px;
2020-04-14 10:15:39 +02:00
fill: $color-gray-20;
2020-04-07 12:18:10 +02:00
}
&:hover {
background-color: $color-primary;
svg {
fill: $color-gray-50;
}
}
&.disabled {
background-color: transparent;
cursor: default;
svg {
2020-04-14 10:15:39 +02:00
fill: $color-gray-40;
2020-04-07 12:18:10 +02:00
}
}
&.selected svg {
fill: $color-primary;
}
&.selected:hover svg {
fill: $color-white;
}
2020-04-07 12:18:10 +02:00
}
}