mirror of https://github.com/artf/grapesjs.git
45 changed files with 1798 additions and 1545 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
@ -1,140 +1,117 @@ |
|||
.#{$nv-prefix} { |
|||
&selected-parent { |
|||
border: 1px solid $colorYell; |
|||
} |
|||
|
|||
.#{$nv-prefix}selected-parent { |
|||
border: 1px solid $colorYell; |
|||
} |
|||
|
|||
.#{$nv-prefix}opac50{ |
|||
@include opacity(0.50); |
|||
} |
|||
.#{$app-prefix}layers { |
|||
position:relative; |
|||
height: 100%; |
|||
##{$nv-prefix}placeholder{ |
|||
width: 100%; |
|||
position: absolute; |
|||
##{$nv-prefix}plh-int{ |
|||
height: 100%; |
|||
padding: 1px; |
|||
&.#{$nv-prefix}insert{ |
|||
background-color: $colorGreen; |
|||
} |
|||
} |
|||
&opac50 { |
|||
@include opacity(0.5); |
|||
} |
|||
.#{$nv-prefix}item { |
|||
|
|||
&layer { |
|||
font-weight: lighter; |
|||
text-align: left; |
|||
position: relative; |
|||
background-color: rgba(0, 0, 0, 0.1); |
|||
} |
|||
.#{$nv-prefix}item.#{$nv-prefix}hide { |
|||
@include opacity(0.55); |
|||
} |
|||
.#{$nv-prefix}item ##{$nv-prefix}counter { |
|||
font-size: 10px; |
|||
position: absolute; |
|||
right: 27px; |
|||
top: 9px; |
|||
} |
|||
.#{$nv-prefix}item ##{$nv-prefix}btn-eye{ |
|||
@extend .btn; |
|||
height: auto !important; width: auto !important; |
|||
font-size: 13px; |
|||
left: 0; top: 0; |
|||
padding: 7px 5px 7px 10px; |
|||
position: absolute; |
|||
cursor:pointer; |
|||
z-index: 1; |
|||
} |
|||
} |
|||
font-size: $fontSizeS; |
|||
|
|||
.#{$nv-prefix}item ##{$nv-prefix}caret { |
|||
font-size: 7px; |
|||
width: 8px; |
|||
padding: 2px; |
|||
cursor: pointer; |
|||
position: absolute; |
|||
left: -9px; |
|||
top: 6px; |
|||
@include opacity(0.7); |
|||
|
|||
&:hover { |
|||
@include opacity(1); |
|||
} |
|||
} |
|||
&-hidden { |
|||
@include opacity(0.55); |
|||
} |
|||
|
|||
.#{$nv-prefix}title { |
|||
@extend .#{$app-prefix}category-title; |
|||
&-count { |
|||
position: absolute; |
|||
right: 27px; |
|||
top: 9px; |
|||
} |
|||
|
|||
padding: 3px 10px 5px 30px; |
|||
display: flex; |
|||
align-items: center; |
|||
} |
|||
&-vis { |
|||
height: auto !important; |
|||
width: auto !important; |
|||
left: 0; |
|||
top: 0; |
|||
padding: 7px 5px 7px 10px; |
|||
position: absolute; |
|||
cursor: pointer; |
|||
z-index: 1; |
|||
} |
|||
|
|||
.#{$nv-prefix}title-inn { |
|||
position: relative; |
|||
} |
|||
&-caret { |
|||
font-size: 0.5rem; |
|||
width: 8px; |
|||
padding: 2px; |
|||
cursor: pointer; |
|||
position: absolute; |
|||
left: -9px; |
|||
top: 6px; |
|||
@include opacity(0.7); |
|||
|
|||
&:hover { |
|||
@include opacity(1); |
|||
} |
|||
} |
|||
|
|||
.#{$nv-prefix}item .#{$nv-prefix}children .#{$nv-prefix}title{ |
|||
border-left: 1px solid lighten($mainDkColor,2%); |
|||
} |
|||
.#{$nv-prefix}item > .#{$nv-prefix}children { |
|||
display: none; |
|||
} |
|||
.#{$nv-prefix}item.open > .#{$nv-prefix}children { |
|||
display: block; |
|||
} |
|||
&-title { |
|||
@extend .#{$app-prefix}category-title; |
|||
|
|||
.#{$nv-prefix}item > .#{$nv-prefix}no-chld > ##{$nv-prefix}caret::before{ |
|||
content:''; |
|||
} |
|||
padding: 3px 10px 5px 30px; |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
.#{$nv-prefix}no-chld > .#{$nv-prefix}title-inn > ##{$nv-prefix}caret { |
|||
display:none; |
|||
} |
|||
&-inn { |
|||
position: relative; |
|||
} |
|||
} |
|||
|
|||
.#{$nv-prefix}item > ##{$nv-prefix}move { |
|||
position: absolute; |
|||
cursor: move; |
|||
font-size: 12px; |
|||
right: 0; top: 0; |
|||
padding: 7px 10px 7px 5px; |
|||
} |
|||
/* |
|||
.#{$nv-prefix}item{ |
|||
&.#{$nv-prefix}selected{ |
|||
border: 2px solid $colorBlue; |
|||
} |
|||
} |
|||
*/ |
|||
.#{$nv-prefix}selected .#{$nv-prefix}title { |
|||
background-color: rgba(255,255,255,0.1); |
|||
} |
|||
&-name { |
|||
padding: 5px; |
|||
display: inline-block; |
|||
box-sizing: content-box; |
|||
@extend .#{$app-prefix}no-user-select; |
|||
} |
|||
|
|||
.#{$nv-prefix}nav-item-edit { |
|||
visibility: hidden; |
|||
padding: 5px; |
|||
font-size: 9px; |
|||
position: absolute; |
|||
left: -27px; |
|||
top: 1px; |
|||
> .#{$nv-prefix}layer-children { |
|||
display: none; |
|||
} |
|||
|
|||
@include opacity(0.7); |
|||
&.open > .#{$nv-prefix}layer-children { |
|||
display: block; |
|||
} |
|||
|
|||
&:hover { |
|||
@include opacity(1); |
|||
} |
|||
} |
|||
&-no-chld > .#{$nv-prefix}layer-title-inn > .#{$nv-prefix}layer-caret { |
|||
display: none; |
|||
} |
|||
|
|||
.#{$nv-prefix}title-c:hover { |
|||
&-move { |
|||
padding: 7px 10px 7px 5px; |
|||
position: absolute; |
|||
font-size: 12px; |
|||
cursor: move; |
|||
right: 0; |
|||
top: 0; |
|||
} |
|||
|
|||
.#{$nv-prefix}nav-item-edit { |
|||
visibility: visible; |
|||
cursor: pointer; |
|||
&.#{$nv-prefix}selected .#{$nv-prefix}layer-title { |
|||
background-color: rgba(255, 255, 255, 0.1); |
|||
} |
|||
} |
|||
} |
|||
|
|||
.#{$app-prefix}nav-comp-name { |
|||
padding: 5px; |
|||
box-sizing: content-box; |
|||
@extend .#{$app-prefix}no-user-select; |
|||
|
|||
.#{$app-prefix}layers { |
|||
position: relative; |
|||
height: 100%; |
|||
|
|||
##{$nv-prefix}placeholder { |
|||
width: 100%; |
|||
position: absolute; |
|||
|
|||
##{$nv-prefix}plh-int { |
|||
height: 100%; |
|||
padding: 1px; |
|||
|
|||
&.#{$nv-prefix}insert { |
|||
background-color: $colorGreen; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,71 @@ |
|||
.#{$pn-prefix} { |
|||
&panel { |
|||
display: inline-block; |
|||
position: absolute; |
|||
box-sizing: border-box; |
|||
text-align: center; |
|||
padding: 5px; |
|||
z-index: 3; |
|||
|
|||
.icon-undo, |
|||
.icon-redo { |
|||
font-size: 20px; |
|||
height: 30px; |
|||
width: 25px; |
|||
} |
|||
} |
|||
|
|||
&commands { |
|||
width: (100% - $leftWidth); |
|||
left: 0; |
|||
top: 0; |
|||
box-shadow: 0 0 5px $mainDkColor; |
|||
} |
|||
|
|||
&options { |
|||
right: $leftWidth; |
|||
top: 0; |
|||
} |
|||
|
|||
&views { |
|||
border-bottom: 2px solid $mainDkColor; |
|||
right: 0; |
|||
width: $leftWidth; |
|||
z-index: 4; |
|||
|
|||
&-container { |
|||
height: 100%; |
|||
padding: 42px 0 0; |
|||
right: 0; |
|||
width: $leftWidth; |
|||
overflow: auto; |
|||
box-shadow: 0 0 5px $mainDkColor; |
|||
} |
|||
} |
|||
|
|||
&buttons { |
|||
align-items: center; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
} |
|||
|
|||
&btn { |
|||
box-sizing: border-box; |
|||
height: 30px; |
|||
width: 30px; |
|||
line-height: 21px; |
|||
background-color: transparent; |
|||
border: none; |
|||
font-size: 18px; |
|||
margin-right: 5px; |
|||
border-radius: 2px; |
|||
padding: 5px; |
|||
position: relative; |
|||
cursor: pointer; |
|||
|
|||
&.#{$pn-prefix}active { |
|||
background-color: rgba(0, 0, 0, 0.15); |
|||
box-shadow: 0 0 3px rgba(0, 0, 0, 0.25) inset; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
.#{$clm-prefix}field { |
|||
@extend .#{$sm-prefix}field |
|||
} |
|||
|
|||
.#{$clm-prefix}select { |
|||
@extend .#{$sm-prefix}field.#{$sm-prefix}select; |
|||
} |
|||
|
|||
.#{$clm-prefix}tags { |
|||
@extend .#{$sm-prefix}sector; |
|||
|
|||
font-size: $fontSizeS; |
|||
padding: 10px 5px; |
|||
|
|||
##{$clm-prefix}label, |
|||
##{$clm-prefix}sel { |
|||
padding: 7px 0; |
|||
float: left; |
|||
} |
|||
|
|||
##{$clm-prefix}sel { |
|||
font-style: italic; |
|||
margin-left: 5px; |
|||
} |
|||
|
|||
##{$clm-prefix}status-c { |
|||
float: right; |
|||
} |
|||
|
|||
##{$clm-prefix}tags-field { |
|||
clear: both; |
|||
padding: 5px; |
|||
margin-bottom: 5px; |
|||
} |
|||
|
|||
##{$clm-prefix}tags-c { |
|||
display: inline-block; |
|||
vertical-align: top; |
|||
} |
|||
|
|||
##{$clm-prefix}add-tag { |
|||
background-color: rgba(255, 255, 255, 0.15); |
|||
border-radius: 2px; |
|||
padding: $paddElClm; |
|||
box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2) inset; |
|||
border: 1px solid rgba(0, 0, 0, 0.15); |
|||
cursor: pointer; |
|||
} |
|||
|
|||
##{$clm-prefix}new { |
|||
@extend .#{$app-prefix}invis-invis; |
|||
|
|||
color: $fontColor; |
|||
padding: $paddElClm; |
|||
display: none; |
|||
} |
|||
|
|||
.#{$clm-prefix}tag { |
|||
display: inline-block; |
|||
border-radius: 3px; |
|||
margin: 0 3px 3px 0; |
|||
padding: 5px; |
|||
cursor: default; |
|||
} |
|||
|
|||
##{$clm-prefix}close { |
|||
@extend .opac50; |
|||
|
|||
font-size: 20px; |
|||
line-height: 0; |
|||
cursor: pointer; |
|||
color: rgba(255, 255, 255, 0.9); |
|||
@extend .no-select; |
|||
|
|||
&:hover { |
|||
@include opacity(0.7); |
|||
} |
|||
} |
|||
|
|||
##{$clm-prefix}checkbox { |
|||
color: rgba(255, 255, 255, 0.9); |
|||
vertical-align: middle; |
|||
cursor: pointer; |
|||
font-size: 9px; |
|||
} |
|||
|
|||
##{$clm-prefix}tag-label { |
|||
padding: 0 3px; |
|||
cursor: text; |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
.#{$app-prefix} { |
|||
&traits-label { |
|||
border-bottom: 1px solid $mainDkColor; |
|||
font-weight: lighter; |
|||
margin-bottom: 5px; |
|||
padding: 10px; |
|||
text-align: left; |
|||
} |
|||
} |
|||
|
|||
.#{$trt-prefix}trait { |
|||
display: flex; |
|||
justify-content: start; |
|||
padding: 5px 10px; |
|||
font-weight: lighter; |
|||
|
|||
&s { |
|||
font-size: $fontSizeS; |
|||
} |
|||
|
|||
.#{$app-prefix}label { |
|||
width: 30%; |
|||
text-align: left; |
|||
} |
|||
|
|||
.#{$app-prefix}field { |
|||
width: 70%; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue