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

137 lines
2.7 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 15:55:53 +00:00
}
margin-right: #{15 / $base-font-size}rem;
& span {
2017-02-17 22:07:53 +00:00
padding-left: #{3 / $base-font-size}rem;
2016-06-21 03:04:41 +00:00
}
2016-05-12 21:22:54 +00:00
}
2016-08-16 00:28:18 +00:00
.toolbar__play-sketch-button {
@extend %hidden-element;
}
2016-05-12 21:22:54 +00:00
.toolbar__stop-button {
@include themify() {
@extend %toolbar-button;
2016-09-28 17:15:50 +00:00
margin-right: #{15 / $base-font-size}rem;
&--selected {
@extend %toolbar-button--selected;
}
2016-06-08 20:35:59 +00:00
}
}
2016-06-17 17:37:29 +00:00
.toolbar__preferences-button {
@include themify() {
@extend %toolbar-button;
2017-02-17 22:07:53 +00:00
line-height: #{52 / $base-font-size}rem;
&--selected {
@extend %toolbar-button--selected;
2017-02-17 22:07:53 +00:00
line-height: #{52 / $base-font-size}rem;
}
2016-06-17 17:37:29 +00:00
}
2017-02-17 22:07:53 +00:00
line-height: #{52 / $base-font-size}rem;
2016-09-14 15:55:53 +00:00
margin-left: auto;
2017-02-17 22:07:53 +00:00
& span {
padding-left: #{1 / $base-font-size}rem;
}
2016-06-17 17:37:29 +00:00
}
.toolbar__logo {
margin-right: #{30 / $base-font-size}rem;
@include themify() {
& g {
fill: getThemifyVariable('logo-color');
}
}
}
.toolbar {
padding: #{20 / $base-font-size}rem #{34 / $base-font-size}rem;
display: flex;
align-items: center;
}
.toolbar__project-name-container {
2016-09-14 22:38:57 +00:00
@include themify() {
border-color: getThemifyVariable('inactive-text-color');
2016-09-14 22:38:57 +00:00
}
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');
& .toolbar__edit-name-button path {
fill: 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 20:35:59 +00:00
}
2016-07-15 20:47:12 +00:00
2016-07-15 15:54:47 +00:00
.toolbar__project-owner {
margin-left: #{5 / $base-font-size}rem;
@include themify() {
color: getThemifyVariable('inactive-text-color');
}
2016-07-15 15:54:47 +00:00
}
2016-09-28 17:15:50 +00: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;
}
.toolbar__edit-name-button {
2016-10-26 21:49:42 +00:00
display: inline-block;
vertical-align: top;
height: #{18 / $base-font-size}rem;
margin-left: #{-4 / $base-font-size}rem;
& svg {
width: #{18 / $base-font-size}rem;
height: #{18 / $base-font-size}rem;
}
@include themify() {
& path {
fill: getThemifyVariable('inactive-text-color');
}
}
}