Joywork/css/partner_settings_modal.css

810 lines
13 KiB
CSS
Raw Normal View History

2026-05-22 20:21:54 +02:00
.partner-settings-overlay {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
backdrop-filter: saturate(100%) blur(20px);
background: rgba(255, 255, 255, .85);
z-index: 99988;
overflow: auto;
}
.partner-settings-close {
z-index: 10001;
width: 44px;
height: 44px;
position: absolute;
top: -10px;
right: -40px;
line-height: 44px;
text-align: center;
font-size: 28px;
color: rgba(0, 0, 0, 0.55);
cursor: pointer;
user-select: none;
}
.partner-settings-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 50px;
}
.partner-settings-modal {
width: 80%;
max-width: calc(100% - 80px);
background: #fff;
border: 2px solid #2f9e44;
}
.partner-settings-head {
padding: 34px 64px 0;
}
.partner-settings-title {
font-size: 28px;
font-weight: normal;
margin-bottom: 25px;
display: flex;
position: relative;
}
.partner-settings-tabs {
display: flex;
gap: 28px;
align-items: flex-end;
margin-bottom: 10px;
}
.partner-settings-tab {
background: transparent;
border: 0;
padding: 0;
font-weight: bold;
font-size: 17px;
margin-left: 5px;
color: #2b2b2b;
cursor: pointer;
text-decoration: underline;
text-decoration-color: rgb(183, 188, 190);
text-underline-offset: 6px;
}
.partner-settings-tab.is-active {
color: #2f9e44;
text-decoration: none;
font-weight: 700;
}
.partner-settings-line {
height: 1px;
background: rgba(0, 0, 0, 0.2);
}
.partner-settings-body {
padding: 26px 64px 24px;
min-height: 260px;
}
.partner-settings-save {
width: 100%;
height: 76px;
border: 0;
background: linear-gradient(to bottom, rgba(67, 160, 71, 1) 0%, rgba(56, 142, 60, 1) 100%);
color: #fff;
font-family: "Lato";
font-size: 20px;
font-weight: 700;
cursor: pointer;
}
.partner-settings-save:hover {
filter: brightness(0.97);
}
.partner-settings-hidden {
display: none;
}
.partner-settings-link {
display: inline-block;
margin-bottom: 14px;
color: #1f1f1f;
text-decoration: underline;
text-decoration-color: rgba(0, 0, 0, 0.25);
border: none;
/* text-underline-offset: 4px; */
}
.partner-settings-actions {
display: flex;
gap: 12px;
margin-top: 14px;
}
.partner-settings-btn {
height: 44px;
padding: 0 16px;
border: 1px solid #d9d9d9;
background: #fff;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
}
.partner-settings-btn:hover {
background: rgba(0,0,0,.03);
}
.partner-settings-field {
margin-top: 10px;
}
.partner-settings-label {
font-size: 20px;
margin-bottom: 6px;
}
.partner-settings-input {
width: 100%;
height: 44px;
border: 1px solid #d9d9d9;
outline: none;
font-size: 16px;
box-sizing: border-box;
color: #1f1f1f;
background: #fff;
padding: 0 12px;
}
.partner-settings-input[readonly] {
background: rgba(0,0,0,.02);
}
.partner-settings-msg {
margin-block: 10px;
font-size: 15px;
}
.partner-settings-msg-ok {
color: #16a34a;
}
.partner-settings-msg-err {
color: #b91c1c;
}
.ps-upl {
margin-top: 14px;
}
.ps-upl__input {
display: none;
}
.ps-upl__drop {
border: 1px dashed rgba(0,0,0,.25);
background: rgba(0,0,0,.01);
padding: 26px 18px;
text-align: center;
cursor: pointer;
user-select: none;
}
.ps-upl__drop.is-drag {
background: rgba(47,158,68,.06);
border-color: rgba(47,158,68,.45);
}
.ps-upl__icon {
font-size: 26px;
line-height: 1;
color: #2f9e44;
margin-bottom: 10px;
}
.ps-upl__title {
font-weight: 900;
color: rgba(0,0,0,.75);
margin-bottom: 6px;
}
.ps-mat2 {
width: 100%;
}
.ps-mat2__list {
display: flex;
flex-direction: column;
gap: 10px;
}
.ps-mat2__empty {
padding: 18px;
border: 1px dashed rgba(0,0,0,.2);
color: rgba(0,0,0,.55);
margin-top: 10px;
}
.ps-mat2__cat {
border: 1px solid rgba(0,0,0,.12);
background: #fff;
width: 100%;
}
.ps-mat2__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 12px;
}
.ps-mat2__name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 900;
color: rgba(0,0,0,.80);
cursor: pointer;
padding: 8px 4px;
margin: -8px -4px;
display: flex;
align-items: center;
border-radius: 4px;
}
.ps-mat2__actions {
display: inline-flex;
gap: 8px;
align-items: center;
flex: 0 0 auto;
}
.ps-mat2__icon {
width: 34px;
height: 34px;
border: 1px solid rgba(0,0,0,.18);
background: #fff;
border-radius: 8px;
cursor: pointer;
font-weight: 900;
padding: 0;
text-align: center;
user-select: none;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ps-mat2__icon svg {
display: block;
}
.ps-mat2__icon:hover {
background: rgba(0,0,0,.03);
}
.ps-mat2__icon[data-cat-open] {
position: relative;
z-index: 2;
}
.ps-mat2__icon--save {
border-color: rgba(47, 158, 68, .35);
color: #2f9e44;
}
.ps-mat2__input {
width: 100%;
height: 34px;
border: 1px solid rgba(0,0,0,.18);
background: #fff;
border-radius: 8px;
padding: 0 10px;
font-weight: 900;
font-size: 14px;
outline: none;
}
.ps-mat2__body {
border-top: 1px solid rgba(0,0,0,.08);
padding: 12px;
}
.ps-mat2__files {
border: 1px solid rgba(0,0,0,.12);
background: #fff;
}
.ps-mat2__file {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid rgba(0,0,0,.08);
}
.ps-mat2__file:last-child {
border-bottom: 0;
}
.ps-mat2__file-name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 800;
color: rgba(0,0,0,.85);
text-decoration: underline;
text-underline-offset: 3px;
}
.ps-mat2__file-actions {
display: inline-flex;
gap: 8px;
align-items: center;
flex: 0 0 auto;
}
.ps-mat2__bottom {
margin-top: 14px;
width: 100%;
}
.ps-mat2__create {
width: 150px;
height: 46px;
color: #fff;
border: none;
background: linear-gradient(180deg, #429E47 0%, #408942 100%);
font-weight: 700;
cursor: pointer;
}
.ps-news__list {
display: flex;
flex-direction: column;
gap: 10px;
}
.ps-news__empty {
padding: 18px;
border: 1px dashed rgba(0,0,0,.2);
color: rgba(0,0,0,.55);
margin-top: 10px;
}
.ps-news__bottom {
margin-top: 14px;
width: 100%;
}
.ps-news__item {
border: 1px solid rgba(0,0,0,.12);
background: #fff;
width: 100%;
}
.ps-news__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 12px;
}
.ps-news__name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 900;
color: rgba(0,0,0,.80);
}
.ps-news__meta {
flex: 0 0 auto;
font-size: 12px;
color: rgba(0,0,0,.55);
margin-left: 10px;
}
.ps-news__actions {
display: inline-flex;
gap: 8px;
align-items: center;
flex: 0 0 auto;
}
.ps-news__body {
border-top: 1px solid rgba(0,0,0,.08);
padding: 12px 12px 14px;
color: rgba(0,0,0,.85);
}
.ps-news__body img {
max-width: 100%;
height: auto;
}
@media (max-width: 720px) {
.partner-settings-modal {
top: 60px;
width: calc(100% - 24px);
max-width: none;
}
.partner-settings-head,
.partner-settings-body {
padding-left: 22px;
padding-right: 22px;
}
.partner-settings-title {
font-size: 24px;
}
.partner-settings-tabs {
gap: 18px;
flex-wrap: wrap;
}
}
.ps-news-modal {
position: fixed;
inset: 0;
z-index: 100002;
background: rgba(0,0,0,.35);
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}
.ps-news-modal__box {
width: 920px;
max-width: 100%;
background: #fff;
border: 2px solid #2f9e44;
}
.ps-news-modal__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 18px;
border-bottom: 1px solid rgba(0,0,0,.08);
}
.ps-news-modal__title {
font-size: 28px;
font-weight: normal;
}
.ps-news-modal__close {
width: 40px;
height: 40px;
border: 1px solid rgba(0,0,0,.18);
background: #fff;
border-radius: 8px;
cursor: pointer;
font-weight: 900;
font-size: 20px;
line-height: 38px;
text-align: center;
user-select: none;
}
.ps-news-modal__close:hover {
background: rgba(0,0,0,.03);
}
.ps-news-modal__body {
padding: 0 18px;
}
.ps-news-modal__textarea {
width: 100%;
min-height: 260px;
border: 1px solid rgba(0,0,0,.18);
outline: none;
font-size: 14px;
padding: 10px;
}
.ps-news-modal__actions {
display: flex;
gap: 10px;
padding: 16px 18px 18px;
}
.ps-mat2__file {
border: 0;
background: rgba(76, 175, 80, 0.12);
border-radius: 6px;
padding: 10px 12px;
margin-bottom: 8px;
}
.ps-mat2__file:last-child {
margin-bottom: 0;
}
.ps-mat2__file-open {
width: 34px;
height: 34px;
border: 0;
background: transparent;
padding: 0;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
}
.ps-mat2__file-open svg {
display: block;
}
.ps-mat2__file-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 800;
color: rgba(0,0,0,.85);
}
.ps-mat2__file-download {
height: 34px;
padding: 0 14px;
border: 0;
border-radius: 6px;
background: #4CAF50;
color: #fff;
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
}
.ps-mat2__file-download:hover {
filter: brightness(0.97);
}
.ps-news-modal__field {
margin-bottom: 12px;
margin-top: 12px;
}
.ps-news-modal__label {
font-size: 13px;
color: rgba(0,0,0,.55);
margin-bottom: 6px;
}
.ps-news-modal__input {
width: 100%;
height: 40px;
box-sizing: border-box;
border: 1px solid rgba(0,0,0,.18);
padding: 5px 10px;
outline: none;
font-size: 14px;
}
.ps-news__badge {
display: inline-block;
padding: 2px 8px;
margin-right: 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 900;
background: rgba(185, 28, 28, .12);
color: #b91c1c;
vertical-align: middle;
}
.ps-news-modal .checkbox {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0 12px;
}
.ps-news-modal .checkbox input[type="checkbox"] {
width: 18px;
height: 18px;
margin: 0;
cursor: pointer;
}
.ps-news-modal .checkbox .label {
cursor: pointer;
user-select: none;
font-weight: 700;
color: rgba(0,0,0,.75);
font-size: 14px;
}
.ps-news-modal__important {
display: inline-flex;
gap: 8px;
align-items: center;
margin: 10px 0 12px;
user-select: none;
font-weight: 700;
color: rgba(0,0,0,.75);
}
.ps-news-modal__important-chk {
width: 16px;
height: 16px;
}
.ps-news-modal__msg.ps-news-modal__msg--err {
padding: 10px;
color: #b91c1c;
background-color:#ffe2e2;
}
.ps-confirm-modal {
position: fixed;
inset: 0;
z-index: 999999;
background: rgba(0, 0, 0, 0.35);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.ps-confirm-modal__box {
width: 100%;
max-width: 420px;
background: #fff;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
.ps-confirm-modal__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 14px 16px;
border-bottom: 1px solid #eee;
}
.ps-confirm-modal__title {
font-size: 16px;
font-weight: 600;
color: #222;
}
.ps-confirm-modal__close {
border: 0;
background: transparent;
font-size: 22px;
line-height: 1;
color: #666;
cursor: pointer;
padding: 0;
}
.ps-confirm-modal__body {
padding: 16px;
font-size: 14px;
color: #333;
line-height: 1.4;
}
.ps-confirm-modal__actions {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 0 16px 16px 16px;
}
.ps-confirm-modal__danger {
border: 0;
background: #e53935;
color: #fff;
padding: 9px 14px;
cursor: pointer;
font-size: 14px;
}
.ps-confirm-modal__danger:hover {
opacity: 0.95;
}
.ps-news__body {
margin-top: 10px;
padding: 12px;
border: 1px solid #e9e9e9;
background: #fff;
line-height: 1.5;
color: #222;
word-break: break-word;
}
.ps-news__body p {
margin: 0 0 12px 0;
}
.ps-news__body p:last-child {
margin-bottom: 0;
}
.ps-news__body ul,
.ps-news__body ol {
margin: 8px 0 12px 20px;
padding: 0;
}
.ps-news__body li {
margin: 4px 0;
}
.ps-news__body hr {
border: 0;
border-top: 1px solid #e0e0e0;
margin: 12px 0;
}
.ps-news__body h1,
.ps-news__body h2,
.ps-news__body h3,
.ps-news__body h4 {
margin: 0 0 10px 0;
line-height: 1.3;
}
.ps-news__body a {
color: #1976d2;
text-decoration: underline;
}
.ps-news__body img {
max-width: 100%;
height: auto;
display: block;
}
.partner-settings-msg-ok {
background: #e9fff0;
border: 1px solid #4CAF50;
color: #1f7a33;
padding: 10px 12px;
border-radius: 8px;
font-weight: 600;
margin-bottom: 12px;
}
.partner-settings-msg-err {
background: #fff1f0;
border: 1px solid #e53935;
color: #b42318;
padding: 10px 12px;
border-radius: 8px;
margin-bottom: 12px;
}
.ps-upl__hint {
margin-top: 8px;
font-size: 12px;
color: #666;
line-height: 1.35;
text-align: center;
}