p5.js-web-editor/client/styles/components/_preferences.scss

108 lines
2.1 KiB
SCSS
Raw Normal View History

2016-06-17 19:37:29 +02:00
.preferences {
@extend %modal;
2016-06-21 05:04:41 +02:00
position: absolute;
top: #{66 / $base-font-size}rem;
right: #{40 / $base-font-size}rem;
width: #{336 / $base-font-size}rem;
2016-06-17 19:37:29 +02:00
display: none;
2016-06-21 05:04:41 +02:00
padding: #{16 / $base-font-size}rem #{26 / $base-font-size}rem;
2016-06-17 20:31:33 +02:00
&--selected {
display: flex;
2016-06-20 20:58:15 +02:00
flex-direction: column;
2016-06-17 20:31:33 +02:00
}
2016-06-17 19:37:29 +02:00
}
2016-06-17 20:31:33 +02:00
.preferences__exit-button {
2016-06-21 05:04:41 +02:00
@extend %icon;
padding-top: #{5 / $base-font-size}rem;
2016-06-17 19:37:29 +02:00
}
2016-06-20 18:45:15 +02:00
2016-06-20 21:23:42 +02:00
.preference__plus-button {
2016-06-20 20:58:15 +02:00
@extend %preferences-button;
}
2016-06-20 21:23:42 +02:00
.preference__minus-button {
2016-06-20 20:58:15 +02:00
@extend %preferences-button;
}
.preferences__heading {
display: flex;
2016-06-21 05:04:41 +02:00
flex-direction: row;
justify-content: space-between;
margin-bottom: #{20 / $base-font-size}rem;
2016-06-20 18:45:15 +02:00
}
2016-06-20 20:58:15 +02:00
.preference {
2016-06-21 05:04:41 +02:00
display: flex;
flex-wrap: wrap;
2016-08-12 20:19:23 +02:00
padding-bottom: #{12 / $base-font-size}rem;
2016-07-12 04:53:27 +02:00
& + & {
border-top: 2px dashed $light-button-border-color;
}
2016-06-20 20:58:15 +02:00
}
2016-06-20 21:23:42 +02:00
.preference__title {
2016-06-21 05:04:41 +02:00
width: 100%;
margin-bottom: #{10 / $base-font-size}rem;
2016-06-20 20:58:15 +02:00
}
2016-08-19 21:51:41 +02:00
.preference__subtitle {
width: 100%;
margin-bottom: #{10 / $base-font-size}rem;
margin-top: 0;
color: $light-inactive-text-color;
}
2016-06-20 20:58:15 +02:00
.preference__value {
2016-07-12 18:07:06 +02:00
border: 2px solid $light-button-border-color;
2016-06-21 05:04:41 +02:00
text-align: center;
2016-07-12 01:14:45 +02:00
border-radius: 0%;
2016-06-21 05:04:41 +02:00
width: #{48 / $base-font-size}rem;
2016-07-12 01:14:45 +02:00
height: #{44 / $base-font-size}rem;
margin: 0 #{28 / $base-font-size}rem;
padding: 0;
2016-07-11 02:13:37 +02:00
background-color: $light-button-background-color;
2016-06-20 20:58:15 +02:00
}
2016-07-11 04:52:48 +02:00
.preference__label {
margin: 0;
line-height: #{20 / $base-font-size}rem;
2016-07-12 01:14:45 +02:00
color: $light-inactive-text-color;
2016-08-09 23:29:17 +02:00
font-size: #{9 / $base-font-size}rem;
2016-07-11 04:52:48 +02:00
&:hover {
2016-07-12 01:14:45 +02:00
color: $light-inactive-text-color;
2016-07-11 04:52:48 +02:00
}
}
2016-07-11 14:44:27 +02:00
.preference__vertical-list {
display: flex;
flex-direction: column;
width: #{90 / $base-font-size}rem;
2016-08-09 23:29:17 +02:00
padding-left: #{28 / $base-font-size}rem;
2016-07-11 14:44:27 +02:00
}
2016-08-25 23:46:30 +02:00
.preference__radio-button {
@extend %hidden-element;
}
2016-07-11 04:52:48 +02:00
.preference__option {
@extend %preference-option;
list-style-type: none;
2016-08-09 23:29:17 +02:00
padding: 0;
2016-08-29 20:39:23 +02:00
color: $light-inactive-text-color;
2016-07-11 04:52:48 +02:00
}
2016-08-09 23:29:17 +02:00
.preference__options {
display: flex;
justify-content: space-between;
width: #{70 / $base-font-size}rem;
}
2016-08-29 20:39:23 +02:00
.preference__radio-button:checked + .preference__option {
color: $light-primary-text-color;
}
2016-08-11 20:09:59 +02:00
.preference--hidden {
@extend %hidden-element;
}