p5.js-web-editor/client/styles/components/_toolbar.scss
2016-09-21 18:52:44 -04:00

86 lines
1.6 KiB
SCSS

.toolbar__play-button {
@include themify() {
@extend %toolbar-button;
&--selected {
@extend %toolbar-button--selected;
}
}
margin-right: #{15 / $base-font-size}rem;
& span {
padding-left: #{2 / $base-font-size}rem;
}
}
.toolbar__play-sketch-button {
@extend %hidden-element;
}
.toolbar__stop-button {
@include themify() {
@extend %toolbar-button;
&--selected {
@extend %toolbar-button--selected;
}
}
}
.toolbar__preferences-button {
@include themify() {
@extend %toolbar-button;
line-height: #{50 / $base-font-size}rem;
&--selected {
@extend %toolbar-button--selected;
line-height: #{50 / $base-font-size}rem;
}
}
line-height: #{50 / $base-font-size}rem;
margin-left: auto;
}
.toolbar__logo {
margin-right: #{30 / $base-font-size}rem;
}
.toolbar {
padding: #{20 / $base-font-size}rem #{60 / $base-font-size}rem;
display: flex;
align-items: center;
}
.toolbar__project-name-container {
@include themify() {
border-left: 2px dashed map-get($theme-map, 'inactive-text-color');
}
margin-left: #{10 / $base-font-size}rem;
padding-left: #{10 / $base-font-size}rem;
height: 70%;
display: flex;
align-items: center;
}
.toolbar__project-name {
color: $light-inactive-text-color;
cursor: pointer;
&:hover {
color: $light-primary-text-color;
}
&:focus {
color: $light-inactive-text-color;
}
.toolbar__project-name-container--editing & {
display: none;
}
}
.toolbar__project-name-input {
display: none;
border: 0px;
.toolbar__project-name-container--editing & {
display: block;
}
}
.toolbar__project-owner {
margin-left: #{5 / $base-font-size}rem;
}