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

265 lines
6 KiB
SCSS
Raw Normal View History

2016-06-17 17:37:29 +00:00
.preferences {
2017-11-14 20:27:00 +00:00
width: 100%;
width: #{640 / $base-font-size}rem;
2017-11-14 20:27:00 +00: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 ;
display: flex;
flex-direction: column;
outline: none;
2016-06-17 17:37:29 +00:00
}
2016-06-17 18:31:33 +00:00
.preferences__exit-button {
2017-11-14 20:27:00 +00:00
@include icon();
padding-top: #{5 / $base-font-size}rem;
margin-right: #{-6 / $base-font-size}rem;
2016-06-17 17:37:29 +00:00
}
2016-06-20 16:45:15 +00:00
.preference__minus-button,
.preference__plus-button {
2017-11-14 20:27:00 +00: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 18:58:15 +00:00
}
.serve__over__https {
2017-11-14 20:27:00 +00:00
text-align: center;
margin-left: #{9 / $base-font-size}rem;
font-width: #{108 / $base-font-size}rem;
font-height: #{15 / $base-font-size}rem;
font-family: Montserrat;
font-size: #{12 / $base-font-size}rem;
margin-top: #{2 / $base-font-size}rem;
}
2016-06-20 18:58:15 +00:00
.preferences__heading {
2017-11-14 20:27:00 +00:00
display: flex;
flex-direction: row;
justify-content: space-between;
@include themify() {
color: getThemifyVariable('heading-text-color');
}
2016-06-20 16:45:15 +00:00
}
2016-06-20 18:58:15 +00:00
2017-08-09 16:28:28 +00:00
.preferences__title{
2017-11-14 20:27:00 +00:00
width: #{90 / $base-font-size}rem;
height: #{25 / $base-font-size}rem;
2017-08-09 16:28:28 +00:00
font-family: Montserrat;
font-size: #{21 / $base-font-size}rem;
font-weight: bold;
text-align: left;
}
.preference__subheadings {
2017-11-14 20:27:00 +00: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-08-09 16:28:28 +00:00
}
2016-06-20 18:58:15 +00:00
.preference {
2017-11-14 20:27:00 +00:00
display: flex;
flex-wrap: wrap;
padding-bottom: #{12 / $base-font-size}rem;
& + & {
@include themify() {
border-top: 1px dashed getThemifyVariable('button-border-color');
}
}
2016-06-20 18:58:15 +00:00
}
2016-06-20 19:23:42 +00:00
.preference__title {
2017-11-14 20:27:00 +00: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 18:58:15 +00:00
}
2016-08-19 19:51:41 +00:00
.preference__subtitle {
2017-11-14 20:27:00 +00:00
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
width: 100%;
margin-bottom: #{10 / $base-font-size}rem;
margin-top: 0;
2016-08-19 19:51:41 +00:00
}
2016-06-20 18:58:15 +00:00
.preference__value {
2017-11-14 20:27:00 +00: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');
}
text-align: center;
border-radius: 0%;
outline: none;
width: #{44 / $base-font-size}rem;
height: #{40 / $base-font-size}rem;
2017-11-14 22:00:17 +00:00
margin: 0 #{20 / $base-font-size}rem;
2017-11-14 20:27:00 +00:00
padding: 0;
font-size: #{16 / $base-font-size}rem;
font-family: Inconsolata;
2016-06-20 18:58:15 +00:00
}
2016-07-11 02:52:48 +00:00
.preference__label {
2017-11-14 20:27:00 +00:00
@include themify() {
color: getThemifyVariable('inactive-text-color');
&:hover {
color: getThemifyVariable('primary-text-color');
}
2017-11-14 20:27:00 +00: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 02:52:48 +00:00
}
.react-tabs__tab--selected {
2017-11-14 20:27:00 +00:00
@include themify() {
border-bottom: #{4 / $base-font-size}rem solid getThemifyVariable('button-background-hover-color');
}
}
.react-tabs__tab--selected .preference__subheading {
2017-11-14 20:27:00 +00:00
@include themify() {
color: getThemifyVariable('primary-text-color');
}
}
.react-tabs__tab {
2017-11-14 20:27:00 +00: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 18:23:13 +00:00
.preference__subheading {
2017-11-14 20:27:00 +00:00
@include themify() {
color: getThemifyVariable('inactive-text-color');
&:hover, &:focus{
color: getThemifyVariable('primary-text-color');
cursor: pointer;
}
&:focus {
color: getThemifyVariable('primary-text-color');
cursor: pointer;
}
}
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 16:28:28 +00:00
}
2016-07-11 12:44:27 +00:00
.preference__vertical-list {
2017-11-14 20:27:00 +00:00
display: flex;
flex-direction: column;
width: #{44 / $base-font-size}rem;
padding-left: #{25 / $base-font-size}rem;
2016-07-11 12:44:27 +00:00
}
2017-08-28 19:13:41 +00:00
.preference__add__resource {
2017-11-14 20:27:00 +00: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-08-16 18:23:13 +00:00
}
2016-08-25 21:46:30 +00:00
.preference__radio-button {
2017-11-14 20:27:00 +00:00
@extend %hidden-element;
2016-08-25 21:46:30 +00:00
}
2016-07-11 02:52:48 +00:00
.preference__option {
2017-11-14 20:27:00 +00:00
@include themify() {
@extend %preference-option;
2017-11-14 22:00:17 +00:00
margin-right: #{25 / $base-font-size}rem;
2017-11-14 20:27:00 +00:00
}
display: flex;
flex-wrap: wrap;
flex-direction: row;
2016-07-11 02:52:48 +00:00
}
2016-08-09 21:29:17 +00:00
.preference__option:last-child {
2017-11-14 22:00:17 +00:00
margin-right: 0;
}
2016-09-01 03:07:43 +00:00
.preference__preview-button {
2017-11-14 20:27:00 +00:00
@include themify() {
@extend %preference-option;
&:hover {
color: getThemifyVariable('button-background-hover-color');
}
}
margin-left: #{30 / $base-font-size}rem;
2016-09-01 03:07:43 +00:00
}
.preference__option.preference__whitespace-button {
padding-top: #{8 / $base-font-size}rem;
2017-11-14 22:00:17 +00:00
margin-right: 0;
margin-left: #{25 / $base-font-size}rem;
}
2016-08-09 21:29:17 +00:00
.preference__options {
2017-11-14 20:27:00 +00:00
display: flex;
justify-content: center;
2016-08-09 21:29:17 +00:00
}
2016-08-29 18:39:23 +00:00
.preference__radio-button:checked + .preference__option {
2017-11-14 20:27:00 +00:00
@include themify() {
//for some reason this won't work for getThemifyVariable
color: map-get($theme-map, 'primary-text-color');
}
2016-08-29 18:39:23 +00:00
}
2016-08-11 18:09:59 +00:00
.preference--hidden {
2017-11-14 20:27:00 +00:00
@extend %hidden-element;
2016-08-11 18:09:59 +00:00
}
.preference__option.preference__canvas:not(:last-child) {
2017-11-14 20:27:00 +00: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;
}