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

255 lines
6.2 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;
2017-08-09 18:28:28 +02:00
top: #{113 / $base-font-size}rem;
right: #{192 / $base-font-size}rem;
width: #{640 / $base-font-size}rem;
height: #{540 / $base-font-size}rem;
bottom: #{371 / $base-font-size}rem;
margin-bottom: #{100 / $base-font-size}rem;
margin-right: #{100 / $base-font-size}rem;
2016-06-17 19:37:29 +02:00
display: none;
2017-08-09 18:28:28 +02:00
z-index: 9999;
padding: #{14 / $base-font-size}rem #{20 / $base-font-size}rem #{2 / $base-font-size}rem #{20 / $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
}
@include themify() {
background-color: getThemifyVariable('editor-gutter-color');
}
outline: none;
2016-06-17 19:37:29 +02:00
}
2016-06-17 20:31:33 +02:00
.preferences__exit-button {
@include icon();
2016-09-13 23:05:42 +02:00
padding-top: #{5 / $base-font-size}rem;
margin-right: #{-6 / $base-font-size}rem;
2016-06-17 19:37:29 +02:00
}
2016-06-20 18:45:15 +02:00
.preference__minus-button,
.preference__plus-button {
@include themify() {
@extend %preferences-button;
width: #{32 / $base-font-size}rem;
height: #{32 / $base-font-size}rem;
margin-left: #{6 / $base-font-size}rem;
2017-08-17 14:51:00 +02:00
margin-right: #{10 / $base-font-size}rem;
line-height: #{40 / $base-font-size}rem;
& svg {
width: #{10 / $base-font-size}rem;
}
}
2016-06-20 20:58:15 +02:00
}
.preferences__heading {
display: flex;
2016-06-21 05:04:41 +02:00
flex-direction: row;
justify-content: space-between;
@include themify() {
color: getThemifyVariable('heading-text-color');
}
2016-06-20 18:45:15 +02:00
}
2016-06-20 20:58:15 +02:00
2017-08-09 18:28:28 +02:00
.preferences__title{
width: #{90 / $base-font-size}rem;
height: #{25 / $base-font-size}rem;
font-family: Montserrat;
font-size: #{21 / $base-font-size}rem;
font-weight: bold;
text-align: left;
}
.preference__subheadings {
display: flex;
flex-wrap: wrap;
2017-08-09 19:34:59 +02:00
padding-bottom: #{0.1 / $base-font-size}rem;
2017-08-09 18:28:28 +02:00
@include themify() {
border-bottom: 1px solid getThemifyVariable('button-border-color');
}
}
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
& + & {
2016-09-14 19:03:51 +02:00
@include themify() {
border-top: 1px dashed getThemifyVariable('button-border-color');
2016-09-14 19:03:51 +02:00
}
2016-07-12 04:53:27 +02:00
}
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%;
font-size: #{16 / $base-font-size}rem;
margin-top: #{13 / $base-font-size}rem;
margin-bottom: #{7 / $base-font-size}rem;
@include themify() {
color: getThemifyVariable('heading-text-color');
}
2016-06-20 20:58:15 +02:00
}
2016-08-19 21:51:41 +02:00
.preference__subtitle {
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
2016-08-19 21:51:41 +02:00
width: 100%;
margin-bottom: #{10 / $base-font-size}rem;
margin-top: 0;
}
2016-06-20 20:58:15 +02:00
.preference__value {
2016-09-14 19:03:51 +02:00
@include themify() {
border: #{1 / $base-font-size}rem solid getThemifyVariable('button-border-color');
2016-09-14 19:03:51 +02:00
background-color: getThemifyVariable('button-background-color');
color: getThemifyVariable('input-text-color');
2016-09-14 19:03:51 +02:00
}
2016-06-21 05:04:41 +02:00
text-align: center;
2016-07-12 01:14:45 +02:00
border-radius: 0%;
outline: none;
width: #{44 / $base-font-size}rem;
height: #{40 / $base-font-size}rem;
margin: 0 #{26 / $base-font-size}rem;
2016-07-12 01:14:45 +02:00
padding: 0;
font-size: #{16 / $base-font-size}rem;
font-family: Inconsolata;
2016-06-20 20:58:15 +02:00
}
2016-07-11 04:52:48 +02:00
.preference__label {
@include themify() {
color: getThemifyVariable('inactive-text-color');
&:hover {
color: getThemifyVariable('primary-text-color');
}
}
margin: #{-15 / $base-font-size}rem 0 0 #{-5 / $base-font-size}rem;
2016-08-09 23:29:17 +02:00
font-size: #{9 / $base-font-size}rem;
width: #{44 / $base-font-size}rem;
2016-07-11 04:52:48 +02:00
}
2017-08-16 20:23:13 +02:00
.preference__subheading {
2017-08-09 18:28:28 +02:00
@include themify() {
color: getThemifyVariable('inactive-text-color');
&:hover {
color: getThemifyVariable('primary-text-color');
border-bottom: #{4 / $base-font-size}rem solid getThemifyVariable('button-background-hover-color');
}
}
font-size: #{12 / $base-font-size}rem;
height: #{25 / $base-font-size}rem;
margin-top: #{30 / $base-font-size}rem;
margin-left: #{5 / $base-font-size}rem;
margin-bottom: #{0.1 / $base-font-size}rem;
2017-08-16 20:23:13 +02:00
margin-right: #{60 / $base-font-size}rem;
2017-08-09 18:28:28 +02:00
font-family: Montserrat;
2017-08-16 20:23:13 +02:00
width: #{98 / $base-font-size}rem;
2017-08-09 18:28:28 +02:00
}
2016-07-11 14:44:27 +02:00
.preference__vertical-list {
display: flex;
flex-direction: column;
width: #{44 / $base-font-size}rem;
padding-left: #{25 / $base-font-size}rem;
2016-07-11 14:44:27 +02:00
}
2017-08-16 20:23:13 +02:00
.preference__sketch1{
width: #{601 / $base-font-size}rem;
height: #{100 / $base-font-size}rem;
font-family: Montserrat;
font-size: #{14 / $base-font-size}rem;
line-height: 1.43;
text-align: left;
margin-left: #{5 / $base-font-size}rem;
margin-top: #{40 / $base-font-size}rem;
margin-bottom: #{10 / $base-font-size}rem;
@include themify() {
color: getThemifyVariable('inactive-text-color');
border-bottom: 1px dashed getThemifyVariable('button-border-color');
}
}
2016-08-25 23:46:30 +02:00
.preference__radio-button {
@extend %hidden-element;
}
2016-07-11 04:52:48 +02:00
.preference__option {
2016-09-14 17:55:53 +02:00
@include themify() {
@extend %preference-option;
padding-right: #{44 / $base-font-size}rem;
2016-09-14 17:55:53 +02:00
}
2017-08-17 14:51:00 +02:00
display: flex;
flex-wrap: wrap;
flex-direction: row;
margin-top: #{10 / $base-font-size}rem;
width: #{50 / $base-font-size}rem;
margin-left: #{5 / $base-font-size}rem;
2016-07-11 04:52:48 +02:00
}
2016-08-09 23:29:17 +02:00
.preference__option:last-child {
padding-right: 0;
}
2016-09-01 05:07:43 +02:00
.preference__preview-button {
2016-09-14 17:55:53 +02:00
@include themify() {
@extend %preference-option;
2017-08-17 14:51:00 +02:00
&:hover {
color: getThemifyVariable('button-background-hover-color');
}
2016-09-14 17:55:53 +02:00
}
2017-08-17 14:51:00 +02:00
margin-top: #{7 / $base-font-size}rem;
margin-left: #{30 / $base-font-size}rem;
2016-09-01 05:07:43 +02:00
}
2016-08-09 23:29:17 +02:00
.preference__options {
display: flex;
}
2016-08-29 20:39:23 +02:00
.preference__radio-button:checked + .preference__option {
@include themify() {
2016-09-14 17:55:53 +02:00
//for some reason this won't work for getThemifyVariable
color: map-get($theme-map, 'primary-text-color');
}
2016-08-29 20:39:23 +02:00
}
2016-08-11 20:09:59 +02:00
.preference--hidden {
@extend %hidden-element;
}
.preference__option.preference__canvas:not(:last-child) {
padding-right: #{14 / $base-font-size}rem;
}
2017-08-16 20:23:13 +02:00
/*.tooltip {
display: inline-block;
}
/* Tooltip text */
/*.tooltip .tooltiptext {
margin-top: #{0 / $base-font-size}rem;
margin-bottom: #{50 / $base-font-size}rem;
margin-left: #{130 / $base-font-size}rem;
visibility: hidden;
width: 120px;
height: 120px;
border-color: $p5js-pink transparent transparent $p5js-pink;
padding: 5px 0;
border-radius: 5px;
webkit-border-radius: 20px;
moz-border-radius: 20px;
text-align: center;
color: $white;
background-color: $p5js-pink;
vertical-align: top;
/* Position the tooltip text - see examples below! */
/* content: ' ';
position: absolute;
left: #{15 / $base-font-size}rem;
-webkit-margin-before: 0em;
-webkit-margin-after: 0em;
}
/* Show the tooltip text when you mouse over the tooltip container */
/*.tooltip:hover .tooltiptext {
visibility: visible;
}*//*/*/