mirror of
https://github.com/yazanammar/obsidian-theme-engine.git
synced 2026-07-22 06:44:37 +00:00
653 lines
12 KiB
CSS
653 lines
12 KiB
CSS
.color-master-text-input {
|
|
width: 100px;
|
|
}
|
|
|
|
.setting-item-control input[type="color"],
|
|
.color-master-text-input {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.is-ltr .color-master-text-input {
|
|
margin-left: 8px;
|
|
}
|
|
.is-ltr .setting-item-name,
|
|
.is-ltr .setting-item-description,
|
|
.is-ltr h2,
|
|
.is-ltr h3 {
|
|
text-align: left;
|
|
}
|
|
|
|
.is-rtl {
|
|
direction: rtl;
|
|
}
|
|
.is-rtl .color-master-text-input {
|
|
margin-right: 8px;
|
|
}
|
|
.is-rtl .setting-item-name,
|
|
.is-rtl .setting-item-description,
|
|
.is-rtl h2,
|
|
.is-rtl h3 {
|
|
text-align: right;
|
|
}
|
|
|
|
.setting-item-control input[type="color"] {
|
|
-webkit-appearance: none;
|
|
width: 28px;
|
|
height: 28px;
|
|
min-width: 28px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.setting-item-control input[type="color"]::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
}
|
|
.setting-item-control input[type="color"]::-webkit-color-swatch {
|
|
border-radius: 50%;
|
|
border: 1px solid var(--background-modifier-border);
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* --- Styles for Graph View Header Buttons --- */
|
|
.cm-graph-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.cm-graph-header h3 {
|
|
margin: 0;
|
|
}
|
|
.cm-graph-buttons-container button:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* --- Styles for the Graph View header buttons wrapper --- */
|
|
.cm-buttons-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cm-refresh-button-setting {
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.cm-refresh-button-setting .setting-item-control {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.cm-temporary-buttons {
|
|
display: contents;
|
|
}
|
|
/* --- Styles for Accessibility Checker --- */
|
|
.cm-accessibility-checker {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px 8px;
|
|
border-radius: 5px;
|
|
margin-left: 10px; /* For LTR */
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.is-rtl .cm-accessibility-checker {
|
|
margin-left: 0;
|
|
margin-right: 10px; /* For RTL */
|
|
}
|
|
|
|
/* Accessibility Rating Colors */
|
|
.cm-accessibility-pass {
|
|
background-color: #28a74520;
|
|
color: #28a745;
|
|
border-color: #28a74580;
|
|
}
|
|
.cm-accessibility-warn {
|
|
background-color: #ffc10720;
|
|
color: #b58900;
|
|
border-color: #ffc10780;
|
|
}
|
|
.cm-accessibility-fail {
|
|
background-color: #dc354520;
|
|
color: #dc3545;
|
|
border-color: #dc354580;
|
|
}
|
|
|
|
.cm-search-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 5px;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Color Master — Search UI */
|
|
.cm-search-container {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin: 8px 0 12px;
|
|
}
|
|
.cm-search-left {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.cm-search-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
.cm-search-info {
|
|
font-size: 12px;
|
|
color: var(--muted-text);
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.cm-var-row.cm-hidden,
|
|
.cm-category-container.cm-hidden,
|
|
.cm-static-sections.cm-hidden {
|
|
display: none !important;
|
|
}
|
|
.cm-var-row .cm-var-name {
|
|
font-weight: 600;
|
|
}
|
|
.cm-highlight {
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(255, 255, 0, 0.25),
|
|
rgba(255, 255, 0, 0.05)
|
|
);
|
|
padding: 0 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.cm-filter-badge {
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 8px;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
color: var(--text-normal);
|
|
margin-left: 6px;
|
|
}
|
|
.cm-search-small {
|
|
font-size: 12px;
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
background-color: var(--background-secondary);
|
|
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
|
|
}
|
|
.cm-search-small.is-active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* Profile copy / paste buttons */
|
|
.cm-profile-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin: 10px 0 14px;
|
|
}
|
|
.cm-profile-action-btn {
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--interactive-border);
|
|
background: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
}
|
|
.cm-profile-action-btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
.cm-profile-action-btn.mod-cta {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
.cm-profile-action-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.cm-banner-svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.cm-content-wrapper {
|
|
display: flex;
|
|
gap: 20px;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.cm-like-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
align-self: stretch;
|
|
}
|
|
.cm-like-stats {
|
|
flex: 3;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cm-like-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
align-self: stretch;
|
|
|
|
flex: 2;
|
|
|
|
max-width: 150px;
|
|
}
|
|
.cm-like-action {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
/* ===== Stats Progress Bars ===== */
|
|
.cm-like-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
margin-top: 12px;
|
|
width: 100%;
|
|
}
|
|
.cm-stat-box {
|
|
width: 100%;
|
|
}
|
|
.cm-stat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 6px;
|
|
}
|
|
.cm-stat-header .title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|
|
.cm-stat-header .value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
}
|
|
.cm-stat-box .skill-bar {
|
|
height: 8px;
|
|
width: 100%;
|
|
border-radius: 6px;
|
|
background-color: var(--background-modifier-border);
|
|
overflow: hidden;
|
|
}
|
|
.skill-bar .skill-per {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: block;
|
|
height: 100%;
|
|
width: 0%;
|
|
border-radius: 6px;
|
|
animation: cm-progress 0.8s ease-out forwards;
|
|
background: none;
|
|
}
|
|
|
|
.skill-bar .skill-per::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 400%;
|
|
height: 100%;
|
|
|
|
background: linear-gradient(
|
|
115deg,
|
|
#33ff00,
|
|
#ffcc00,
|
|
#8000ff,
|
|
#00b7ff,
|
|
#00ff66
|
|
);
|
|
background-size: 25% 100%;
|
|
|
|
animation: cm-border-animation 2s linear infinite;
|
|
}
|
|
@keyframes cm-progress {
|
|
from {
|
|
width: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.skill-per .tooltip {
|
|
position: absolute;
|
|
right: -18px;
|
|
top: -30px;
|
|
font-size: 11px;
|
|
font-weight: 500; /* Normal weight */
|
|
color: var(--text-on-accent);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
background-color: var(--interactive-accent);
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.skill-bar:hover .tooltip {
|
|
opacity: 1;
|
|
}
|
|
.tooltip::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: -3px;
|
|
height: 6px;
|
|
width: 6px;
|
|
background-color: var(--interactive-accent);
|
|
transform: translateX(-50%) rotate(45deg);
|
|
}
|
|
|
|
/* ===== Animated Buttons ("codepen-button" style) ===== */
|
|
.codepen-button {
|
|
display: block;
|
|
cursor: pointer;
|
|
color: white;
|
|
position: relative;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
padding: 2px;
|
|
isolation: isolate;
|
|
width: 100%;
|
|
}
|
|
.codepen-button::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 400%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
115deg,
|
|
#33ff00,
|
|
#ffcc00,
|
|
#8000ff,
|
|
#00b7ff,
|
|
#00ff66
|
|
);
|
|
background-size: 25% 100%;
|
|
animation: cm-border-animation 1.5s linear infinite;
|
|
animation-play-state: running;
|
|
}
|
|
|
|
@keyframes cm-border-animation {
|
|
to {
|
|
transform: translateX(-25%);
|
|
}
|
|
}
|
|
.codepen-button span {
|
|
position: relative;
|
|
display: block;
|
|
text-align: center;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
background: var(--background-secondary);
|
|
border-radius: 4px;
|
|
height: 100%;
|
|
}
|
|
/* --- Light Mode Fix for Animated Buttons --- */
|
|
.theme-light .codepen-button span {
|
|
color: #000000;
|
|
background: #f0f2f5;
|
|
}
|
|
/* ------------------------------------------ */
|
|
|
|
.cm-promo-container {
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ===== Glowing Border Animation for Header ===== */
|
|
|
|
.cm-like-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
|
|
position: relative;
|
|
|
|
border: 4px solid transparent;
|
|
border-image-slice: 1;
|
|
animation: cm-glowing-border 2s linear infinite;
|
|
}
|
|
|
|
@keyframes cm-glowing-border {
|
|
0% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3
|
|
);
|
|
}
|
|
14% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3,
|
|
#ff0000
|
|
);
|
|
}
|
|
28% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3,
|
|
#ff0000,
|
|
#ff7f00
|
|
);
|
|
}
|
|
42% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00
|
|
);
|
|
}
|
|
56% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00
|
|
);
|
|
}
|
|
70% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#4b0082,
|
|
#9400d3,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff
|
|
);
|
|
}
|
|
84% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#9400d3,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082
|
|
);
|
|
}
|
|
100% {
|
|
border-image-source: linear-gradient(
|
|
to right,
|
|
#ff0000,
|
|
#ff7f00,
|
|
#ffff00,
|
|
#00ff00,
|
|
#0000ff,
|
|
#4b0082,
|
|
#9400d3
|
|
);
|
|
}
|
|
}
|
|
|
|
/* Paste CSS button + badges */
|
|
.cm-paste-css-btn {
|
|
position: relative;
|
|
padding-right: 44px;
|
|
}
|
|
.cm-paste-css-btn .cm-badge-new {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 6px;
|
|
background: #16a34a;
|
|
color: white;
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.cm-profile-badge-css {
|
|
display: inline-block;
|
|
margin-left: 8px;
|
|
font-size: 11px;
|
|
color: #0ea5e9;
|
|
padding: 2px 6px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(14, 165, 233, 0.12);
|
|
background: rgba(14, 165, 233, 0.06);
|
|
}
|
|
|
|
/* --- To add a space under the input field title in the module --- */
|
|
.cm-modal-label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.setting-item-control input[type="color"].is-transparent {
|
|
position: relative;
|
|
background-color: white;
|
|
}
|
|
|
|
.setting-item-control input[type="color"].is-transparent::-webkit-color-swatch {
|
|
background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
|
|
linear-gradient(-45deg, #ccc 25%, transparent 25%),
|
|
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
linear-gradient(-45deg, transparent 75%, #ccc 75%);
|
|
background-size: 10px 10px;
|
|
background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
|
|
}
|
|
|
|
/* --- CSS Snippets --- */
|
|
|
|
.cm-snippets-container {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.cm-snippets-container h3 {
|
|
margin-top: -10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.cm-last-option-item {
|
|
margin-bottom: -20px;
|
|
}
|
|
|
|
/* ======================================================= */
|
|
|
|
.tag {
|
|
color: var(--tag-color) !important;
|
|
background-color: var(--tag-bg) !important;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
text-decoration: none;
|
|
}
|
|
.tag:hover {
|
|
color: var(--tag-color-hover) !important;
|
|
}
|
|
|
|
/* 2. Styling for Editor View (NOW WITH RTL SUPPORT) */
|
|
|
|
.cm-s-obsidian span.cm-hashtag-begin,
|
|
.cm-s-obsidian span.cm-hashtag-end {
|
|
color: var(--tag-color) !important;
|
|
background-color: var(--tag-bg) !important;
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.cm-s-obsidian span.cm-hashtag-begin {
|
|
padding-inline-start: 8px;
|
|
border-start-start-radius: 12px;
|
|
border-end-start-radius: 12px;
|
|
}
|
|
|
|
.cm-s-obsidian span.cm-hashtag-end {
|
|
padding-inline-end: 8px;
|
|
border-start-end-radius: 12px;
|
|
border-end-end-radius: 12px;
|
|
}
|
|
|
|
/* =================================================================== */
|
|
|
|
.cm-segmented-control button.is-active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cm-segmented-control button:hover:not(.is-active) {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* =================================================================== */
|