Browse Source

Update file style

up-style-manager
Artur Arseniev 4 years ago
parent
commit
326397c467
  1. 2
      dist/css/grapes.min.css
  2. 4
      src/style_manager/view/PropertyFileView.js
  3. 648
      src/styles/scss/_gjs_style_manager.scss

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

4
src/style_manager/view/PropertyFileView.js

@ -18,8 +18,8 @@ export default PropertyView.extend({
</div>
<div style="clear:both;"></div>
</div>
<div id="${pfx}preview-box" class="${pfx}preview-file-box">
<div id="${pfx}preview-file" class="${pfx}preview-file"></div>
<div id="${pfx}preview-box" class="${pfx}preview-file">
<div id="${pfx}preview-file" class="${pfx}preview-file-cnt"></div>
<div id="${pfx}close" class="${pfx}preview-file-close">&Cross;</div>
</div>
</div>

648
src/styles/scss/_gjs_style_manager.scss

@ -74,413 +74,409 @@
display: flex;
align-items: center;
}
}
/* ------------------Field-------------------- */
/* ------------------Field-------------------- */
.#{$sm-prefix}field {
width: 100%;
position: relative;
.#{$sm-prefix}field {
input,
select {
background-color: transparent;
color: $mainLhlColor;
border: none;
width: 100%;
}
input {
box-sizing: border-box;
}
select {
position: relative;
z-index: 1;
input,
select {
background-color: transparent;
color: $mainLhlColor;
border: none;
width: 100%;
}
@include appearance(none);
input {
box-sizing: border-box;
&::-ms-expand {
display: none;
}
}
select {
position: relative;
z-index: 1;
select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 $mainLhlColor;
}
@include appearance(none);
input:focus,
select:focus {
outline: none;
}
&::-ms-expand {
display: none;
}
}
.#{$sm-prefix}unit {
position: absolute;
right: 10px;
top: 3px;
font-size: 10px;
color: $mainLhlColor;
cursor: pointer;
}
select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 $mainLhlColor;
}
.#{$clm-prefix}sel-arrow,
.#{$sm-prefix}int-arrows,
.#{$sm-prefix}sel-arrow {
height: 100%;
width: 9px;
position: absolute;
right: 0;
top: 0;
cursor: ns-resize;
}
input:focus,
select:focus {
outline: none;
}
.#{$sm-prefix}sel-arrow {
cursor: pointer;
}
.#{$sm-prefix}unit {
position: absolute;
right: 10px;
top: 3px;
font-size: 10px;
color: $mainLhlColor;
cursor: pointer;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-arrow,
.#{$sm-prefix}d-s-arrow,
.#{$sm-prefix}u-arrow {
position: absolute;
height: 0;
width: 0;
border-left: 3px solid transparent;
border-right: 4px solid transparent;
cursor: pointer;
}
.#{$clm-prefix}sel-arrow,
.#{$sm-prefix}int-arrows,
.#{$sm-prefix}sel-arrow {
height: 100%;
width: 9px;
position: absolute;
right: 0;
top: 0;
cursor: ns-resize;
}
.#{$sm-prefix}u-arrow {
border-bottom: 4px solid $mainLhlColor;
top: 4px;
}
.#{$sm-prefix}sel-arrow {
cursor: pointer;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-arrow,
.#{$sm-prefix}d-s-arrow {
border-top: 4px solid $mainLhlColor;
bottom: 4px;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-arrow,
.#{$sm-prefix}d-s-arrow,
.#{$sm-prefix}u-arrow {
position: absolute;
height: 0;
width: 0;
border-left: 3px solid transparent;
border-right: 4px solid transparent;
cursor: pointer;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-s-arrow {
bottom: 7px;
}
.#{$sm-prefix}u-arrow {
border-bottom: 4px solid $mainLhlColor;
top: 4px;
}
&.#{$sm-prefix}color,
&.#{$sm-prefix}input,
&.#{$sm-prefix}integer,
&.#{$sm-prefix}list,
&.#{$sm-prefix}select {
background-color: $mainDkColor;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 1px 1px 0 $mainLhColor;
color: $mainLhlColor;
border-radius: 2px;
box-sizing: border-box;
padding: 0 5px;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-arrow,
.#{$sm-prefix}d-s-arrow {
border-top: 4px solid $mainLhlColor;
bottom: 4px;
}
&.#{$sm-prefix}composite {
border-radius: 2px;
}
.#{$clm-prefix}d-s-arrow,
.#{$sm-prefix}d-s-arrow {
bottom: 7px;
}
&.#{$sm-prefix}select {
padding: 0;
}
&.#{$sm-prefix}color,
&.#{$sm-prefix}input,
&.#{$sm-prefix}integer,
&.#{$sm-prefix}list,
&.#{$sm-prefix}select {
background-color: $mainDkColor;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 1px 1px 0 $mainLhColor;
color: $mainLhlColor;
border-radius: 2px;
box-sizing: border-box;
padding: 0 5px;
}
&.#{$sm-prefix}select select {
height: 20px;
}
&.#{$sm-prefix}composite {
border-radius: 2px;
}
&.#{$sm-prefix}select option {
padding: 3px 0;
}
&.#{$sm-prefix}select {
padding: 0;
}
&.#{$sm-prefix}composite {
background-color: $mainDklColor;
border: 1px solid rgba(0, 0, 0, 0.25);
}
&.#{$sm-prefix}select select {
height: 20px;
}
&.#{$sm-prefix}list {
width: auto;
padding: 0;
overflow: hidden;
float: left;
&.#{$sm-prefix}select option {
padding: 3px 0;
input {
display: none;
}
&.#{$sm-prefix}composite {
background-color: $mainDklColor;
border: 1px solid rgba(0, 0, 0, 0.25);
label {
cursor: pointer;
padding: 5px;
display: block;
}
&.#{$sm-prefix}list {
width: auto;
padding: 0;
overflow: hidden;
float: left;
input {
display: none;
}
label {
cursor: pointer;
padding: 5px;
display: block;
}
.#{$sm-prefix}radio:checked + label {
background-color: rgba(255, 255, 255, 0.2);
}
.#{$sm-prefix}icon {
background-repeat: no-repeat;
background-position: center;
text-shadow: none;
line-height: normal;
//padding: 5px 19px;
}
.#{$sm-prefix}radio:checked + label {
background-color: rgba(255, 255, 255, 0.2);
}
&.#{$sm-prefix}integer select {
width: auto;
padding: 0;
.#{$sm-prefix}icon {
background-repeat: no-repeat;
background-position: center;
text-shadow: none;
line-height: normal;
//padding: 5px 19px;
}
}
/* ------------------END Field-------------------- */
&.#{$sm-prefix}integer select {
width: auto;
padding: 0;
}
}
.#{$sm-prefix}list .#{$sm-prefix}el {
float: left;
border-left: 1px solid $mainDkColor;
/* ------------------END Field-------------------- */
&:first-child {
border: none;
}
.#{$sm-prefix}list .#{$sm-prefix}el {
float: left;
border-left: 1px solid $mainDkColor;
&:hover {
background: $mainDkColor;
}
&:first-child {
border: none;
}
/* ------------------Property-------------------- */
.#{$sm-prefix} {
&slider {
.#{$app-prefix}field-integer {
flex: 1 1 65px;
}
}
&:hover {
background: $mainDkColor;
}
}
.#{$sm-prefix}property {
box-sizing: border-box;
float: left;
width: 50%;
margin-bottom: 5px;
padding: 0 5px;
&--full,
&.#{$sm-prefix}composite,
&.#{$sm-prefix}file,
&.#{$sm-prefix}list,
&.#{$sm-prefix}stack,
&.#{$sm-prefix}slider,
&.#{$sm-prefix}color {
width: 100%;
}
.#{$sm-prefix}btn {
background-color: lighten($mainDkColor, 13%);
border-radius: 2px;
box-shadow: 1px 1px 0 lighten($mainDkColor, 2%), 1px 1px 0 lighten($mainDkColor, 17%) inset;
padding: 5px;
position: relative;
text-align: center;
height: auto;
width: 100%;
cursor: pointer;
color: $fontColor;
box-sizing: border-box;
text-shadow: -1px -1px 0 $mainDkColor;
border: none;
@include opacity(0.85);
}
/* ------------------Property-------------------- */
.#{$sm-prefix}btn-c {
box-sizing: border-box;
float: left;
width: 100%;
.#{$sm-prefix} {
&slider {
.#{$app-prefix}field-integer {
flex: 1 1 65px;
}
}
}
.#{$sm-prefix}preview-file-box {
background-color: $lightBorder;
border-radius: 2px;
margin-top: 5px;
position: relative;
overflow: hidden;
.#{$sm-prefix}property {
box-sizing: border-box;
float: left;
width: 50%;
margin-bottom: 5px;
padding: 0 5px;
&--full,
&.#{$sm-prefix}composite,
&.#{$sm-prefix}file,
&.#{$sm-prefix}list,
&.#{$sm-prefix}stack,
&.#{$sm-prefix}slider,
&.#{$sm-prefix}color {
width: 100%;
}
&.#{$sm-prefix}show {
border: 1px solid darken($lightBorder, 1%);
padding: 3px 20px;
}
.#{$sm-prefix}btn {
background-color: lighten($mainDkColor, 13%);
border-radius: 2px;
box-shadow: 1px 1px 0 lighten($mainDkColor, 2%), 1px 1px 0 lighten($mainDkColor, 17%) inset;
padding: 5px;
position: relative;
text-align: center;
height: auto;
width: 100%;
cursor: pointer;
color: $fontColor;
box-sizing: border-box;
text-shadow: -1px -1px 0 $mainDkColor;
border: none;
.#{$sm-prefix}preview-file-close {
@extend .#{$sm-prefix}close-btn;
@include opacity(0.85);
}
top: -5px;
display: block;
}
}
.#{$sm-prefix}btn-c {
box-sizing: border-box;
float: left;
width: 100%;
}
&.#{$sm-prefix}file .#{$sm-prefix}show ##{$sm-prefix}preview-file {
height: 50px;
}
.#{$sm-prefix}preview-file {
background-color: $lightBorder;
border-radius: 2px;
margin-top: 5px;
position: relative;
overflow: hidden;
border: 1px solid darken($lightBorder, 1%);
padding: 3px 20px;
&.#{$sm-prefix}file ##{$sm-prefix}preview-file {
&-cnt {
background-size: auto 100%;
background-repeat: no-repeat;
background-position: center center;
height: 50px;
}
.#{$sm-prefix}layers {
margin-top: 5px;
padding: 1px 3px;
min-height: 30px;
}
&-close {
@extend .#{$sm-prefix}close-btn;
.#{$sm-prefix}layer {
background-color: rgba(255, 255, 255, 0.055);
border-radius: 2px;
margin: 2px 0;
padding: 7px;
position: relative;
&.#{$sm-prefix}active {
background-color: rgba(255, 255, 255, 0.12);
}
.#{$sm-prefix}label-wrp {
display: flex;
align-items: center;
}
##{$sm-prefix}move {
height: 14px;
width: 14px;
min-width: 14px;
cursor: grab;
}
##{$sm-prefix}label {
flex-grow: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 0 5px;
}
&-preview {
@extend .checker-bg;
height: 15px;
width: 15px;
min-width: 15px;
margin-right: 5px;
border-radius: 2px;
&-cnt {
border-radius: 2px;
background-color: white;
height: 100%;
width: 100%;
background-size: cover !important;
}
}
##{$sm-prefix}close-layer {
display: block;
cursor: pointer;
height: 14px;
width: 14px;
min-width: 14px;
@include opacity(0.5);
&:hover {
@include opacity(0.8);
}
}
top: -5px;
display: block;
}
}
}
##{$sm-prefix}text-shadow ##{$sm-prefix}preview::after {
color: #000;
content: "T";
font-weight: 900;
line-height: 17px;
padding: 0 4px;
}
// Layers
.#{$sm-prefix}layers {
margin-top: 5px;
padding: 1px 3px;
min-height: 30px;
}
/* ------------------END Property-------------------- */
.#{$sm-prefix}layer {
background-color: rgba(255, 255, 255, 0.055);
border-radius: 2px;
margin: 2px 0;
padding: 7px;
position: relative;
.#{$sm-prefix}stack .#{$sm-prefix}properties {
padding: 5px 0 0;
&.#{$sm-prefix}active {
background-color: rgba(255, 255, 255, 0.12);
}
.#{$sm-prefix}stack ##{$sm-prefix}add {
@extend .#{$app-prefix}color-main;
.#{$sm-prefix}label-wrp {
display: flex;
align-items: center;
}
background: none;
border: none;
cursor: pointer;
outline: none;
position: absolute;
right: 0;
top: -17px;
opacity: 0.75;
padding: 0;
width: 18px;
height: 18px;
##{$sm-prefix}move {
height: 14px;
width: 14px;
min-width: 14px;
cursor: grab;
}
&:hover {
@include opacity(1);
}
##{$sm-prefix}label {
flex-grow: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 0 5px;
}
.#{$sm-prefix}colorp-c {
@extend .#{$app-prefix}bg-main;
&-preview {
@extend .checker-bg;
height: 100%;
width: 20px;
position: absolute;
right: 0;
top: 0;
box-sizing: border-box;
height: 15px;
width: 15px;
min-width: 15px;
margin-right: 5px;
border-radius: 2px;
padding: 2px;
.#{$app-prefix}checker-bg {
&-cnt {
border-radius: 2px;
background-color: white;
height: 100%;
width: 100%;
border-radius: 1px;
background-size: cover !important;
}
}
.#{$sm-prefix}color-picker {
background-color: $fontColor;
##{$sm-prefix}close-layer {
display: block;
cursor: pointer;
height: 16px;
width: 100%;
margin-top: -16px;
box-shadow: 0 0 1px $mainDkColor;
border-radius: 1px;
height: 14px;
width: 14px;
min-width: 14px;
@include opacity(0.5);
&:hover {
@include opacity(0.8);
}
}
}
.#{$sm-prefix}btn-upload ##{$sm-prefix}upload {
left: 0;
top: 0;
position: absolute;
width: 100%;
opacity: 0;
cursor: pointer;
##{$sm-prefix}text-shadow ##{$sm-prefix}preview::after {
color: #000;
content: "T";
font-weight: 900;
line-height: 17px;
padding: 0 4px;
}
/* ------------------END Property-------------------- */
.#{$sm-prefix}stack .#{$sm-prefix}properties {
padding: 5px 0 0;
}
.#{$sm-prefix}stack ##{$sm-prefix}add {
@extend .#{$app-prefix}color-main;
background: none;
border: none;
cursor: pointer;
outline: none;
position: absolute;
right: 0;
top: -17px;
opacity: 0.75;
padding: 0;
width: 18px;
height: 18px;
&:hover {
@include opacity(1);
}
}
.#{$sm-prefix}colorp-c {
@extend .#{$app-prefix}bg-main;
.#{$sm-prefix}btn-upload ##{$sm-prefix}label {
padding: 2px 0;
height: 100%;
width: 20px;
position: absolute;
right: 0;
top: 0;
box-sizing: border-box;
border-radius: 2px;
padding: 2px;
.#{$app-prefix}checker-bg {
height: 100%;
width: 100%;
border-radius: 1px;
}
}
.#{$sm-prefix}color-picker {
background-color: $fontColor;
cursor: pointer;
height: 16px;
width: 100%;
margin-top: -16px;
box-shadow: 0 0 1px $mainDkColor;
border-radius: 1px;
}
.#{$sm-prefix}btn-upload ##{$sm-prefix}upload {
left: 0;
top: 0;
position: absolute;
width: 100%;
opacity: 0;
cursor: pointer;
}
.#{$sm-prefix}btn-upload ##{$sm-prefix}label {
padding: 2px 0;
}
.#{$sm-prefix}layer > ##{$sm-prefix}move {
@include opacity(0.7);

Loading…
Cancel
Save