p5.js-web-editor/client/styles/abstracts/_placeholders.scss

125 lines
2.6 KiB
SCSS
Raw Normal View History

2016-06-20 22:05:04 +00:00
%toolbar-button {
display: inline-block;
height: #{44 / $base-font-size}rem;
width: #{44 / $base-font-size}rem;
text-align: center;
border-radius: 100%;
2016-06-21 03:04:41 +00:00
line-height: #{46 / $base-font-size}rem;
cursor: pointer;
2016-06-08 20:35:59 +00:00
border: none;
2016-06-09 22:17:53 +00:00
outline: none;
background-color: $light-button-background-color;
color: $light-button-color;
2016-05-12 21:22:54 +00:00
& g {
fill: $light-toolbar-button-color;
}
&:hover {
background-color: $light-button-background-hover-color;
color: $light-button-hover-color;
& g {
fill: $light-button-hover-color;
}
}
2016-06-10 19:14:55 +00:00
&--selected {
background-color: $light-button-background-hover-color;
& g {
fill: $light-button-hover-color;
}
}
2016-06-08 20:35:59 +00:00
}
2016-06-21 03:04:41 +00:00
%icon {
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
color: $light-icon-color;
& g {
fill: $light-icon-color;
}
&:hover {
color: $light-icon-hover-color;
& g {
2016-07-14 16:47:54 +00:00
opacity: 1;
2016-06-21 03:04:41 +00:00
fill: $light-icon-hover-color;
}
}
}
2016-06-14 01:07:00 +00:00
%button {
background-color: $light-button-background-color;
color: $light-button-color;
cursor: pointer;
border: 1px solid $light-button-border-color;
border-radius: 2px;
padding: #{10 / $base-font-size}rem #{30 / $base-font-size}rem;
&:hover {
border-color: $light-button-background-hover-color;
background-color: $light-button-background-hover-color;
color: $light-button-hover-color;
}
&:active {
border-color: $light-button-background-active-color;
background-color: $light-button-background-active-color;
color: $light-button-active-color;
}
}
%preferences-button {
2016-06-21 03:04:41 +00:00
@extend %toolbar-button;
color: $light-primary-text-color;
background-color: $light-modal-button-background-color;
2016-07-11 02:52:48 +00:00
padding: 0;
2016-08-12 14:13:22 +00:00
margin-bottom: #{28 / $base-font-size}rem;
2016-07-12 16:07:06 +00:00
line-height: #{50 / $base-font-size}rem;
& g {
2016-06-21 03:04:41 +00:00
fill: $light-primary-text-color;
}
&:hover {
2016-06-21 03:04:41 +00:00
background-color: $light-button-background-hover-color;
color: $light-button-hover-color;
& g {
2016-06-21 03:04:41 +00:00
fill: $light-button-hover-color;
}
}
}
2016-06-17 18:11:52 +00:00
%fake-link {
2016-07-12 02:00:11 +00:00
color: $light-inactive-text-color;
2016-06-17 18:11:52 +00:00
cursor: pointer;
&:hover {
color: $light-primary-text-color;
}
}
2016-07-11 02:52:48 +00:00
%preference-option {
2016-07-11 12:44:27 +00:00
background-color: $light-button-background-color;
2016-07-11 23:14:45 +00:00
color: $light-inactive-text-color;
2016-08-09 21:29:17 +00:00
font-size: #{12 / $base-font-size}rem;
2016-07-11 02:52:48 +00:00
cursor: pointer;
text-align: left;
margin-bottom: #{5 / $base-font-size}rem;
2016-07-11 12:44:27 +00:00
border: 0px;
2016-07-11 02:52:48 +00:00
&:hover {
color: $light-primary-text-color;
}
}
2016-07-15 20:47:12 +00:00
%modal {
background-color: $light-modal-background-color;
border: 1px solid $light-modal-border-color;
border-radius: 2px;
box-shadow: 0 12px 12px $light-shadow-color;
2016-08-11 21:41:35 +00:00
z-index: 20;
}
2016-08-11 18:09:59 +00:00
%hidden-element {
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}