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

242 lines
5.6 KiB
SCSS
Raw Normal View History

2016-06-20 22:05:04 +00:00
%toolbar-button {
@include themify() {
display: inline-block;
height: #{44 / $base-font-size}rem;
width: #{44 / $base-font-size}rem;
text-align: center;
border-radius: 100%;
cursor: pointer;
border: none;
outline: none;
background-color: getThemifyVariable('toolbar-button-background-color');
color: getThemifyVariable('toolbar-button-color');
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('toolbar-button-color');
}
&:hover {
background-color: getThemifyVariable('button-background-hover-color');
color: getThemifyVariable('button-hover-color');
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('button-hover-color');
}
2016-05-12 21:22:54 +00:00
}
&--selected {
background-color: getThemifyVariable('button-background-hover-color');
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('button-hover-color');
}
}
2016-05-12 21:22:54 +00:00
}
2016-06-08 20:35:59 +00:00
}
%icon-toast{
@include themify() {
color: $toast-text-color
2020-04-29 22:34:37 +00:00
& g, & path {
fill: $toast-text-color
}
&:hover {
color: getThemifyVariable('icon-toast-hover-color');
2020-04-29 22:34:37 +00:00
& g, & path {
opacity: 1;
fill: getThemifyVariable('icon-toast-hover-color');
}
}
}
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
}
%none-themify-icon {
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
}
%none-themify-icon-with-hover {
color: $medium-dark;
2020-04-29 22:34:37 +00:00
& g, & path {
fill: $medium-dark;
}
&:hover {
color: $p5js-pink;
2020-04-29 22:34:37 +00:00
& g, & path {
opacity: 1;
fill: $p5js-pink;
}
}
background-color: transparent;
border: none;
cursor: pointer;
padding: 0;
}
2016-06-14 01:07:00 +00:00
%button {
2016-09-13 21:05:42 +00:00
@include themify() {
background-color: getThemifyVariable('button-background-color');
color: getThemifyVariable('button-color');
cursor: pointer;
border: 2px solid getThemifyVariable('button-border-color');
2016-09-13 21:05:42 +00:00
border-radius: 2px;
padding: #{10 / $base-font-size}rem #{30 / $base-font-size}rem;
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('button-color');
opacity: 1;
}
2020-04-10 21:13:16 +00:00
&:not(disabled):hover {
2016-09-13 21:05:42 +00:00
border-color: getThemifyVariable('button-background-hover-color');
background-color: getThemifyVariable('button-background-hover-color');
color: getThemifyVariable('button-hover-color');
2020-04-29 22:34:37 +00:00
& g, & path {
2019-01-16 17:35:34 +00:00
fill: getThemifyVariable('button-hover-color');
}
2016-09-13 21:05:42 +00:00
}
2020-04-10 21:13:16 +00:00
&:not(disabled):active {
2016-09-13 21:05:42 +00:00
border-color: getThemifyVariable('button-background-active-color');
background-color: getThemifyVariable('button-background-active-color');
color: getThemifyVariable('button-active-color');
2020-04-29 22:34:37 +00:00
& g, & path {
2019-01-16 17:35:34 +00:00
fill: getThemifyVariable('button-active-color');
}
2016-09-13 21:05:42 +00:00
}
2016-06-14 01:07:00 +00:00
}
}
%preferences-button {
2016-06-21 03:04:41 +00:00
@extend %toolbar-button;
@include themify() {
color: getThemifyVariable('primary-text-color');
background-color: getThemifyVariable('preferences-button-background-color');
padding: 0;
margin-bottom: #{28 / $base-font-size}rem;
line-height: #{50 / $base-font-size}rem;
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('modal-button-color');
}
&:enabled:hover {
background-color: getThemifyVariable('button-background-hover-color');
color: getThemifyVariable('button-hover-color');
2020-04-29 22:34:37 +00:00
& g, & path {
fill: getThemifyVariable('button-hover-color');
}
}
&:disabled:hover {
cursor: not-allowed;
background-color: getThemifyVariable('preferences-button-background-color');
}
}
}
2016-06-17 18:11:52 +00:00
2016-07-11 02:52:48 +00:00
%preference-option {
2016-09-14 15:55:53 +00:00
@include themify() {
background-color: transparent;
color: getThemifyVariable('inactive-text-color');
&:hover {
color: getThemifyVariable('heavy-text-color');
2016-09-14 15:55:53 +00:00
}
}
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;
padding: 0;
2016-07-11 02:52:48 +00:00
margin-bottom: #{5 / $base-font-size}rem;
padding-right: #{5 / $base-font-size}rem;
2016-09-14 15:55:53 +00:00
border: 0;
list-style-type: none;
2016-07-11 02:52:48 +00:00
}
2016-07-15 20:47:12 +00:00
%modal {
2016-09-14 16:46:54 +00:00
@include themify() {
background-color: getThemifyVariable('modal-background-color');
border: 1px solid getThemifyVariable('modal-border-color');
box-shadow: 0 12px 12px getThemifyVariable('shadow-color');
}
border-radius: 2px;
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;
}
%link {
@include themify() {
text-decoration: none;
2020-04-27 20:48:55 +00:00
color: getThemifyVariable('inactive-text-color');
cursor: pointer;
&:hover {
text-decoration: none;
color: getThemifyVariable('heavy-text-color');
}
}
}
%dropdown-open {
@include themify() {
background-color: map-get($theme-map, 'modal-background-color');
border: 1px solid map-get($theme-map, 'modal-border-color');
box-shadow: 0 0 18px 0 getThemifyVariable('shadow-color');
color: getThemifyVariable('primary-text-color');
}
text-align: left;
width: #{180 / $base-font-size}rem;
display: flex;
position: absolute;
flex-direction: column;
top: 95%;
height: auto;
z-index: 9999;
border-radius: #{6 / $base-font-size}rem;
Update sketch list styling (#819) * parent b3c3efcec96b5e5bb4e00be742e8f17a025db409 author Laksh Singla <lakshsingla@gmail.com> 1549106083 +0530 committer Cassie Tarakajian <ctarakajian@gmail.com> 1560540243 -0400 parent b3c3efcec96b5e5bb4e00be742e8f17a025db409 author Laksh Singla <lakshsingla@gmail.com> 1549106083 +0530 committer Cassie Tarakajian <ctarakajian@gmail.com> 1560540198 -0400 parent b3c3efcec96b5e5bb4e00be742e8f17a025db409 author Laksh Singla <lakshsingla@gmail.com> 1549106083 +0530 committer Cassie Tarakajian <ctarakajian@gmail.com> 1560539667 -0400 Created initial html structure and styling for new SketchList design Final styling of ActionDialogueBox commplete Dropdown menu disappearing while clicking anywhere on the table Fixed linting issues and renamed variables Minor tweaks in the SketchList dropdown dialogue UI Themifyed the dropdown Made changes in the dropdown: Arrow positioned slightly updwards, Removed blank space and added box-shadow in dropdown, themifyed dropdowns dashed border color Added Delete and Share functionality to Dialog box Added Duplicate functionality to Dialog box Added download functionality to Dialog box SketchList does not open a sketch if dialogue box is opened SketchList Rename initial UI completed Enter key handled for rename project option [WIP] Updating rename functionality Download option now working for all the sketches Duplicate functionality extended for non opened sketches too Modified overlay behaviour to close only the last overlay Share modal can now display different projects Dropdown closes when Share and Delete are closing for a more natural UX fix broken files from rebasing Created initial html structure and styling for new SketchList design Final styling of ActionDialogueBox commplete Added Delete and Share functionality to Dialog box Added Duplicate functionality to Dialog box [WIP] Updating rename functionality Duplicate functionality extended for non opened sketches too Modified overlay behaviour to close only the last overlay Share modal can now display different projects Final styling of ActionDialogueBox commplete Fixed linting issues and renamed variables Minor tweaks in the SketchList dropdown dialogue UI Themifyed the dropdown Added Delete and Share functionality to Dialog box [WIP] Updating rename functionality Modified overlay behaviour to close only the last overlay Share modal can now display different projects Dropdown closes when Share and Delete are closing for a more natural UX fix broken files from rebasing Final styling of ActionDialogueBox commplete Minor tweaks in the SketchList dropdown dialogue UI Themifyed the dropdown [WIP] Updating rename functionality Duplicate functionality extended for non opened sketches too Modified overlay behaviour to close only the last overlay Share modal can now display different projects Dropdown closes when Share and Delete are closing for a more natural UX * fix bugs in merge commit * move sketch list dialogue to ul/li * update sketch option dropdown to use dropdown placeholder, remove unused css * major refactor of sketchlist component, fix showShareModal action, minor updates ot icon sizing * fix broken links on asset list * remove unused image, fix options for different users in sketch list
2019-06-19 20:21:25 +00:00
& li:first-child {
border-radius: #{5 / $base-font-size}rem #{5 / $base-font-size}rem 0 0;
}
& li:last-child {
border-radius: 0 0 #{5 / $base-font-size}rem #{5 / $base-font-size}rem;
}
& li {
& button,
& a {
@include themify() {
color: getThemifyVariable('primary-text-color');
}
2019-06-12 20:12:19 +00:00
width: 100%;
text-align: left;
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
}
height: #{35 / $base-font-size}rem;
cursor: pointer;
display: flex;
align-items: center;
}
& li:hover {
@include themify() {
background-color: getThemifyVariable('button-background-hover-color');
color: getThemifyVariable('button-hover-color')
}
& button, & a {
@include themify() {
color: getThemifyVariable('button-hover-color');
}
}
}
}
%dropdown-open-left {
@extend %dropdown-open;
left: 0;
}
%dropdown-open-right {
@extend %dropdown-open;
right: 0;
}