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

253 lines
5.7 KiB
SCSS
Raw Permalink Normal View History

2016-06-17 19:37:29 +02:00
.preferences {
2017-11-14 21:27:00 +01:00
width: 100%;
width: #{640 / $base-font-size}rem;
2017-11-14 21:27:00 +01:00
max-width: 100%;
min-height: #{460 / $base-font-size}rem;
max-height: 100%;
z-index: 9999;
padding: 0 #{20 / $base-font-size}rem #{2 / $base-font-size}rem #{20 /
$base-font-size}rem;
2017-11-14 21:27:00 +01:00
display: flex;
flex-direction: column;
outline: none;
2016-06-17 19:37:29 +02:00
}
2016-06-17 20:31:33 +02:00
.preferences__exit-button {
2017-11-14 21:27:00 +01:00
@include icon();
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 {
2017-11-14 21:27:00 +01:00
@include themify() {
@extend %preferences-button;
width: #{32 / $base-font-size}rem;
height: #{32 / $base-font-size}rem;
margin-left: #{6 / $base-font-size}rem;
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__title {
2017-11-14 21:27:00 +01:00
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;
2017-08-09 18:28:28 +02:00
}
.preference__subheadings {
2017-11-14 21:27:00 +01:00
display: flex;
flex-wrap: wrap;
padding-bottom: #{0.1 / $base-font-size}rem;
@include themify() {
border-bottom: 1px solid getThemifyVariable("button-border-color");
2017-11-14 21:27:00 +01:00
}
2017-08-09 18:28:28 +02:00
}
2016-06-20 20:58:15 +02:00
.preference {
2017-11-14 21:27:00 +01:00
display: flex;
flex-wrap: wrap;
padding-bottom: #{12 / $base-font-size}rem;
& + & {
@include themify() {
border-top: 1px dashed getThemifyVariable("button-border-color");
2017-11-14 21:27:00 +01:00
}
}
2016-06-20 20:58:15 +02:00
}
2016-06-20 21:23:42 +02:00
.preference__title {
2017-11-14 21:27:00 +01:00
width: 100%;
font-size: #{16 / $base-font-size}rem;
margin-top: #{13 / $base-font-size}rem;
margin-bottom: #{7 / $base-font-size}rem;
2016-06-20 20:58:15 +02:00
}
2016-08-19 21:51:41 +02:00
.preference__subtitle {
2017-11-14 21:27:00 +01:00
@include themify() {
color: getThemifyVariable("inactive-text-color");
2017-11-14 21:27:00 +01:00
}
width: 100%;
margin-bottom: #{10 / $base-font-size}rem;
margin-top: 0;
2016-08-19 21:51:41 +02:00
}
2016-06-20 20:58:15 +02:00
.preference__value {
2017-11-14 21:27:00 +01:00
@include themify() {
border: #{1 / $base-font-size}rem solid
getThemifyVariable("button-border-color");
// background-color: getThemifyVariable("button-background-color");
color: getThemifyVariable("input-text-color");
background-color: getThemifyVariable('input-background-color');
2017-11-14 21:27:00 +01:00
}
text-align: center;
border-radius: 0%;
outline: none;
width: #{44 / $base-font-size}rem;
height: #{40 / $base-font-size}rem;
2017-11-14 23:00:17 +01:00
margin: 0 #{20 / $base-font-size}rem;
2017-11-14 21:27:00 +01: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 {
2017-11-14 21:27:00 +01:00
@include themify() {
2020-04-27 22:48:55 +02:00
color: getThemifyVariable("secondary-text-color");
2017-11-14 21:27:00 +01:00
&:hover {
2020-04-27 22:48:55 +02:00
color: getThemifyVariable("heavy-text-color");
2017-11-14 21:27:00 +01:00
}
}
margin: #{-15 / $base-font-size}rem 0 0 #{-5 / $base-font-size}rem;
font-size: #{9 / $base-font-size}rem;
width: #{44 / $base-font-size}rem;
2016-07-11 04:52:48 +02:00
}
.react-tabs__tab--selected {
2017-11-14 21:27:00 +01:00
@include themify() {
border-bottom: #{4 / $base-font-size}rem solid
getThemifyVariable("button-background-hover-color");
2017-11-14 21:27:00 +01:00
}
}
.react-tabs__tab--selected .preference__subheading {
2017-11-14 21:27:00 +01:00
@include themify() {
color: getThemifyVariable("primary-text-color");
2017-11-14 21:27:00 +01:00
}
}
.react-tabs__tab {
2017-11-14 21:27:00 +01:00
text-align: center;
color: black;
display: flex;
align-items: center;
border-bottom: #{4 / $base-font-size}rem solid transparent;
& + & {
margin-left: #{45 / $base-font-size}rem;
}
}
2017-08-16 20:23:13 +02:00
.preference__subheading {
2017-11-14 21:27:00 +01:00
@include themify() {
color: getThemifyVariable("inactive-text-color");
&:hover,
&:focus {
color: getThemifyVariable("primary-text-color");
cursor: pointer;
2017-11-14 21:27:00 +01:00
}
&:focus {
color: getThemifyVariable("primary-text-color");
cursor: pointer;
2017-11-14 21:27:00 +01:00
}
}
font-size: #{12 / $base-font-size}rem;
height: #{20 / $base-font-size}rem;
width: 100%;
margin: 0;
padding: 0 #{5 / $base-font-size}rem;
2017-08-09 18:28:28 +02:00
}
2016-07-11 14:44:27 +02:00
.preference__vertical-list {
2017-11-14 21:27:00 +01:00
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-28 21:13:41 +02:00
.preference__add__resource {
2017-11-14 21:27:00 +01:00
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");
2017-11-14 21:27:00 +01:00
}
2017-08-16 20:23:13 +02:00
}
2016-08-25 23:46:30 +02:00
.preference__radio-button {
2017-11-14 21:27:00 +01:00
@extend %hidden-element;
2016-08-25 23:46:30 +02:00
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
2016-07-11 04:52:48 +02:00
.preference__option {
2017-11-14 21:27:00 +01:00
@include themify() {
@extend %preference-option;
2017-11-14 23:00:17 +01:00
margin-right: #{25 / $base-font-size}rem;
2017-11-14 21:27:00 +01:00
}
display: flex;
flex-wrap: wrap;
flex-direction: row;
2016-07-11 04:52:48 +02:00
}
2016-08-09 23:29:17 +02:00
.preference__option:last-child {
2017-11-14 23:00:17 +01:00
margin-right: 0;
}
2016-09-01 05:07:43 +02:00
.preference__preview-button {
2017-11-14 21:27:00 +01:00
@include themify() {
@extend %preference-option;
&:hover {
color: getThemifyVariable("button-background-hover-color");
2017-11-14 21:27:00 +01:00
}
}
margin-left: #{30 / $base-font-size}rem;
2016-09-01 05:07:43 +02:00
}
.preference__option.preference__whitespace-button {
padding-top: #{8 / $base-font-size}rem;
2017-11-14 23:00:17 +01:00
margin-right: 0;
margin-left: #{25 / $base-font-size}rem;
}
2016-08-09 23:29:17 +02:00
.preference__options {
2017-11-14 21:27:00 +01:00
display: flex;
justify-content: center;
2016-08-09 23:29:17 +02:00
}
2016-08-29 20:39:23 +02:00
.preference__radio-button:checked + .preference__option {
2017-11-14 21:27:00 +01:00
@include themify() {
//for some reason this won't work for getThemifyVariable
color: map-get($theme-map, "heavy-text-color");
2017-11-14 21:27:00 +01:00
}
2016-08-29 20:39:23 +02:00
}
2016-08-11 20:09:59 +02:00
.preference--hidden {
2017-11-14 21:27:00 +01:00
@extend %hidden-element;
2016-08-11 20:09:59 +02:00
}
.preference__option.preference__canvas:not(:last-child) {
2017-11-14 21:27:00 +01:00
padding-right: #{14 / $base-font-size}rem;
}
.preference__serve-secure {
display: flex;
align-items: center;
}
.serve-secure__icon {
@include icon();
& svg {
height: #{24 / $base-font-size}rem;
width: #{24 / $base-font-size}rem;
}
}
.serve-secture__tooltip:after {
text-align: left;
font-size: #{12 / $base-font-size}rem;
}