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

113 lines
2.2 KiB
SCSS
Raw Normal View History

.toolbar__play-button {
@include themify() {
@extend %toolbar-button;
&--selected {
@extend %toolbar-button--selected;
}
&:disabled {
cursor: auto;
& g {
fill: getThemifyVariable('button-border-color');
}
&:hover {
background-color: getThemifyVariable('toolbar-button-background-color');
& g {
fill: getThemifyVariable('button-border-color');
}
}
}
2016-09-14 17:55:53 +02:00
}
margin-right: #{15 / $base-font-size}rem;
& span {
padding-left: #{2 / $base-font-size}rem;
2016-06-21 05:04:41 +02:00
}
2016-05-12 23:22:54 +02:00
}
2016-08-16 02:28:18 +02:00
.toolbar__play-sketch-button {
@extend %hidden-element;
}
2016-05-12 23:22:54 +02:00
.toolbar__stop-button {
@include themify() {
@extend %toolbar-button;
2016-09-28 19:15:50 +02:00
margin-right: #{15 / $base-font-size}rem;
&--selected {
@extend %toolbar-button--selected;
}
2016-06-08 22:35:59 +02:00
}
}
2016-06-17 19:37:29 +02:00
.toolbar__preferences-button {
@include themify() {
@extend %toolbar-button;
2016-09-22 00:52:44 +02:00
line-height: #{50 / $base-font-size}rem;
&--selected {
@extend %toolbar-button--selected;
2016-09-22 00:52:44 +02:00
line-height: #{50 / $base-font-size}rem;
}
2016-06-17 19:37:29 +02:00
}
2016-09-14 17:55:53 +02:00
line-height: #{50 / $base-font-size}rem;
margin-left: auto;
2016-06-17 19:37:29 +02:00
}
.toolbar__logo {
margin-right: #{30 / $base-font-size}rem;
@include themify() {
& g {
fill: getThemifyVariable('logo-color');
}
}
}
.toolbar {
2016-09-22 03:46:23 +02:00
padding: #{15 / $base-font-size}rem #{34 / $base-font-size}rem;
display: flex;
align-items: center;
}
.toolbar__project-name-container {
2016-09-15 00:38:57 +02:00
@include themify() {
border-color: getThemifyVariable('inactive-text-color');
2016-09-15 00:38:57 +02:00
}
border-left: 2px dashed;
margin-left: #{10 / $base-font-size}rem;
padding-left: #{10 / $base-font-size}rem;
height: 70%;
display: flex;
align-items: center;
}
.toolbar__project-name {
@include themify() {
color: getThemifyVariable('inactive-text-color');
&:hover {
color: getThemifyVariable('primary-text-color');
}
}
cursor: pointer;
.toolbar__project-name-container--editing & {
display: none;
}
}
.toolbar__project-name-input {
display: none;
border: 0px;
.toolbar__project-name-container--editing & {
display: block;
}
2016-06-08 22:35:59 +02:00
}
2016-07-15 22:47:12 +02:00
2016-07-15 17:54:47 +02:00
.toolbar__project-owner {
margin-left: #{5 / $base-font-size}rem;
}
2016-09-28 19:15:50 +02:00
.toolbar__autorefresh-label {
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
margin-left: #{5 / $base-font-size}rem;
font-size: #{12 / $base-font-size}rem;
}