| Current Path : /home/flapst5/ekmtoronto.com/wp-content/plugins/code-snippets/css/ |
| Current File : /home/flapst5/ekmtoronto.com/wp-content/plugins/code-snippets/css/settings.scss |
@use 'common/checkbox';
@use 'common/codemirror';
@use 'common/subnav';
@use 'common/theme';
@use 'common/toolbar';
@use 'common/wp-admin';
@use 'common/page-header';
$sections: general, editor, debug, version-switch;
.wrap.code-snippets-settings {
margin-block-start: 0;
}
.settings-section input[type='checkbox']:not(.switch) {
@include checkbox.canonical;
margin-inline-end: 8px;
}
.snippets-page-header h1 {
color: #2c3337;
}
p.submit {
display: flex;
justify-content: flex-start;
gap: 14px;
.button-secondary {
background: transparent;
}
}
.settings-section .form-table th {
inline-size: 261px;
font-size: 14px;
font-weight: 700;
color: #2c3337;
}
.settings-section,
p.submit {
max-inline-size: 1020px;
}
.nav-tab-wrapper {
margin-block-end: 1em;
}
input[type='number'] {
inline-size: 4em;
}
.CodeMirror {
max-inline-size: 800px;
inline-size: 100%;
padding-inline-end: 1em;
}
.CodeMirror-sizer::before {
content: '<?php';
}
body.no-js {
.nav-tab-wrapper {
display: none;
}
.settings-section {
display: block !important;
}
}
body.js {
.settings-section-title {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
block-size: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
inline-size: 1px;
word-wrap: normal !important;
}
.nav-tab:not(.nav-tab-active) {
cursor: pointer;
}
.settings-section {
display: none;
}
@each $section in $sections {
.wrap[data-active-tab=#{$section}] .#{$section}-settings {
display: block;
}
}
}
.license-status {
display: inline-block;
padding-inline-end: 2em;
line-height: 2;
color: #646970;
}
.license-status-valid {
color: #2ecc40;
}
.license-status-expired {
color: #dc3232;
}
.wrap[data-active-tab='license'] .submit {
display: none;
}
#code_snippets_remove_license {
color: #b32d2e;
border-color: #b32d2e;
}
#code_snippets_license_key {
font-family: Consolas, Monaco, monospace;
}
#cloud_token {
max-inline-size: 450px;
inline-size: 90vw;
}
.cloud-message {
inline-size: fit-content;
padding: 5px;
border-radius: 5px;
font-weight: 600;
}
.cloud-error {
background: #e53935;
color: #ffebee;
}
.cloud-success {
background: #43a047;
color: #e8f5e9;
}
.refresh-success {
background: #2e7d4f;
color: #fff;
}
.cloud-settings tbody tr:nth-child(n+5) {
display: none;
}
// Version Switch Styles
.code-snippets-version-switch {
.current-version {
font-family: monospace;
font-size: 1.1em;
font-weight: bold;
color: #0073aa;
background: #f0f6fc;
padding: 2px 8px;
border-radius: 3px;
border: 1px solid theme.$control-border;
}
#target_version {
min-inline-size: 200px;
margin-inline-start: 8px;
}
#switch-version-btn {
&[disabled] {
opacity: 0.6;
cursor: not-allowed;
background-color: #f0f0f1 !important;
color: #a7aaad !important;
border-color: #dcdcde !important;
}
}
// Warning box styling
#version-switch-warning {
margin-block-start: 20px !important;
padding: 12px 16px;
border-inline-start: 4px solid #dba617;
background: #fff8e5;
border-radius: 4px;
p {
margin: 0;
color: #8f6914;
strong {
color: #8f6914;
}
}
}
#version-switch-result {
margin-block-start: 12px;
&.notice {
padding: 8px 12px;
border-radius: 4px;
}
}
.notice {
&.notice {
&-success {
border-inline-start-color: #00a32a;
}
&-error {
border-inline-start-color: #d63638;
}
&-warning {
border-inline-start-color: #dba617;
}
&-info {
border-inline-start-color: #72aee6;
}
}
}
}
.version-switch-settings {
.form-table {
th {
inline-size: 180px;
}
}
}
#settings-sections-tabs {
margin: 0;
padding: 0;
ul {
display: flex;
align-items: stretch;
margin: 0;
padding: 0;
list-style: none;
}
.snippet-type-link {
display: flex;
align-items: center;
min-block-size: 52px;
margin: 0;
padding-inline: 24px;
color: #646970;
font-size: 14px;
font-weight: 600;
line-height: 1.5;
border: 0;
border-inline-end: 1px solid #e2e2e4;
background: transparent;
&:hover,
&:focus,
&:active {
color: theme.$accent;
}
&.active-type,
&.active-type:hover,
&.active-type:focus {
color: theme.$accent;
background: #f0f0f1;
}
}
}
@media (width <= 782px) {
body.js {
.settings-type-nav-wrapper {
display: none;
}
.settings-section-title {
position: static;
inline-size: auto;
block-size: auto;
margin: 0 0 16px;
overflow: visible;
clip: auto;
clip-path: none;
font-size: 20px;
line-height: 1.3;
}
.settings-section {
display: block !important;
margin-block-end: 40px;
}
.wrap[data-active-tab='license'] .submit {
display: flex;
}
}
}