scripts/apps/packaging/styles/packaging.scss
// packaging.scss
// Styling for making packages - editor widget
// ----------------------------------------------------------------------------------------
@import '~mixins.scss';
@import '~variables.scss';
.package-item {
@include border-radius(1px);
background: $white;
box-shadow: $block-shadow-depth-2;
padding: 10px;
position: relative;
border-inline-start: 4px solid #fff;
display: flex;
margin-block-end: 10px;
transition: all 0.2s;
&__icon-holder {
margin: 0 12px 0 0 !important;
opacity:0.5;
max-width: 24px;
min-width: 24px;
padding-inline-end: 10px;
}
&__drag-handle {
position: absolute;
inset-block-start:3px;
inset-block-end: 3px;
inset-inline-start:2px;
background: url(~images/draggable-bg.png) repeat 0 0;
width: 6px;
opacity:0;
transition: all 0.2s;
}
&__open-item {
position: absolute;
inset-inline-end: 8px;
inset-block-start: 8px;
opacity: 0;
cursor: pointer;
}
&.locked {
border-left-color: $state-color-red;
}
&.published {
border-left-color: $state-border--published;
}
&.killed {
border-left-color: $state-border--killed;
}
&__thumb-holder {
max-width: 120px;
min-width: 120px;
@include border-radius(2px);
overflow: hidden;
height: 80px;
background: #f0f0f0;
float: inline-start;
margin-inline-end: 16px;
img {
margin: 0 !important;
}
.loading {
margin: 20px 0 0 40px;
}
.error-icon {
@include opacity(50);
height: 80px;
line-height: 80px;
text-align: center;
i {
vertical-align: middle;
zoom: 0.7;
}
}
}
&__item-text-group {
display: flex;
flex-direction: column;
}
&__item-headline {
padding-inline-end: 64px;
max-height: 74px;
overflow: hidden;
font-size: 1.4rem;
line-height: 1.2;
flex-grow: 1;
font-weight: bold;
}
&__item-abstract {
margin-block-start: 5px;
img {
max-width: 100%;
}
}
&__item-creator {
color: #909090;
}
&__action-menu {
position: absolute;
inset-block-start: 6px;
inset-inline-end: 6px;
.more-activity-toggle {
width: 16px;
height: 16px !important;
padding: 2px 6px 3px !important;
font-size: 13px !important;
line-height: 18px !important;
}
}
.loading {
width: 40px;
height: 40px;
background: #f0f0f0 url(~images/loading-large.gif) center center no-repeat;
}
.alert-error {
font-size: 12px;
padding: 10px;
height:80px;
}
&:hover {
.package-item__open-item {
opacity:0.3;
&:hover {
opacity: 1;
}
}
}
}
.sort-item {
.package-item:hover {
box-shadow: 0 0 1px rgba(0,0,0,0.16), 0 1px 6px rgba(0,0,0,0.4);
padding-inline-start: 16px;
cursor: move;
.package-item__drag-handle {
opacity: 0.5;
}
}
}
.packaging-screen {
.page-content-container {
> .content {
width: auto;
max-width: 800px;
min-height: 100%;
max-height: 100%;
margin: 0 auto;
border: 1px solid #ebebeb;
border-width: 0 1px;
background: #fcfcfc;
padding: 30px 60px 20px;
overflow: auto;
}
.toggle-box h6 {
background: var(--sd-editor-colour__main-bg);
color: var(--sd-editor-colour__txt)
}
.package-header {
margin-block-end: 30px;
position: relative;
min-height: 52px;
.title {
font-weight: 600;
font-size: 20px;
line-height: 1.4;
}
input, textarea {
border: 1px solid var(--sd-editor-colour__controls-border);
transition: all ease 0.2s;
border-radius: var(--b-radius--small);
background-color: transparent;
color: var(--sd-editor-colour__txt);
&:focus {
border-color: var(--sd-colour-interactive) !important;
box-shadow: 0 0 0 3px var(--sd-colour-interactive--alpha-30);
}
}
textarea {
padding: 8px;
}
}
}
}
.placeholder {
margin: 20px 0;
}
.item.composite {
.package-details {
display: none;
}
}
.package-edit {
padding: 10px 0 100px;
> li {
margin: 0;
padding: 0;
.group-info {
position: relative;
&:before {
content: " ";
position: absolute;
border-block-end: 1px solid #dcdcdc;
height: 1px;
inset-block-start: 9px;
inset-inline-start: 20px;
inset-inline-end: 0px;
}
h6 {
background: #fcfcfc;
padding: 0 5px;
font-size: 11px;
text-transform: uppercase;
color: #666;
position: relative;
display: inline-block;
}
}
}
.package-edit-items {
min-height: 80px;
.fake {
div {
padding: 10px 0;
}
}
> li:not(.placeholder):not(.fake):first-child {
.item-container {
margin-block-start: 30px;
}
margin-block-start: -15px;
}
> li.fake:first-child {
div {
padding: 40px 0;
}
}
.preview-container {
padding: 20px 20px;
}
.item-container {
position: relative;
.remove {
position: absolute;
inset-inline-end: 38px;
inset-block-start: 6px;
opacity: 0;
}
&:hover {
.remove {
opacity: 0.7;
&:hover {
opacity: 1;
}
}
}
}
}
}