mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
451 lines
7.8 KiB
CSS
451 lines
7.8 KiB
CSS
/* Styling: https://code.visualstudio.com/api/references/theme-color */
|
|
|
|
@-webkit-keyframes load7 {
|
|
0%,
|
|
80%,
|
|
100% {
|
|
box-shadow: 0 2.5em 0 -1.3em;
|
|
}
|
|
40% {
|
|
box-shadow: 0 2.5em 0 0;
|
|
}
|
|
}
|
|
@keyframes load7 {
|
|
0%,
|
|
80%,
|
|
100% {
|
|
box-shadow: 0 2.5em 0 -1.3em;
|
|
}
|
|
40% {
|
|
box-shadow: 0 2.5em 0 0;
|
|
}
|
|
}
|
|
|
|
.relative {
|
|
position: relative !important;
|
|
}
|
|
|
|
.absolute {
|
|
position: absolute !important;
|
|
}
|
|
|
|
.inherit {
|
|
position: inherit !important;
|
|
}
|
|
|
|
.z-10 {
|
|
z-index: 10 !important;
|
|
}
|
|
.z-20 {
|
|
z-index: 10 !important;
|
|
}
|
|
|
|
.w-full {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.collapsible__body,
|
|
.ext_settings,
|
|
.git_actions,
|
|
.initialize_actions {
|
|
padding: 1rem 1.25rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#app,
|
|
.frontmatter {
|
|
height: 100%;
|
|
}
|
|
|
|
.frontmatter.media_selection {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0.8;
|
|
text-align: center;
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.frontmatter {
|
|
padding-top: 0;
|
|
padding-bottom: var(--input-margin-vertical);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: start;
|
|
}
|
|
|
|
.frontmatter h3 {
|
|
/* margin-bottom: 1rem; */
|
|
}
|
|
|
|
.frontmatter p,
|
|
.frontmatter h4,
|
|
.frontmatter ul {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.article__tags h3,
|
|
.seo__status h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.section {
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.section h3 svg {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.collapsible__body h4 {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.not-valid {
|
|
color: var(--vscode-errorForeground);
|
|
}
|
|
|
|
.article__tags {
|
|
/* position: relative; */
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.article__tags__dropbox {
|
|
/* Minus the twice the padding */
|
|
width: calc(100% - 2.5rem);
|
|
margin: 0;
|
|
padding: 0;
|
|
z-index: 1;
|
|
position: absolute;
|
|
list-style: none;
|
|
overflow: auto;
|
|
max-height: 200px;
|
|
}
|
|
|
|
.article__tags__dropbox.open {
|
|
border: 1px solid var(--vscode-focusBorder);
|
|
width: 100%;
|
|
}
|
|
|
|
.article__tags ul {
|
|
color: var(--vscode-dropdown-foreground);
|
|
background-color: var(--vscode-dropdown-background);
|
|
}
|
|
|
|
.article__tags li {
|
|
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.article__tags li:active {
|
|
color: var(--vscode-button-foreground);
|
|
background-color: var(--vscode-button-background);
|
|
}
|
|
|
|
.article__tags li[aria-selected='true'] {
|
|
color: var(--vscode-button-foreground);
|
|
background-color: var(--vscode-button-hoverBackground);
|
|
}
|
|
|
|
.article__tags li[aria-disabled='true'] {
|
|
display: none;
|
|
}
|
|
|
|
.article__tags__items {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.article__actions > * + *,
|
|
.other_actions > * + *,
|
|
.base__actions > * + *,
|
|
.base__information > * + * {
|
|
--tw-space-y-reverse: 0;
|
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
}
|
|
|
|
.base__action label {
|
|
display: block;
|
|
}
|
|
|
|
.base__action input {
|
|
width: 100% !important;
|
|
}
|
|
|
|
.seo__status__details ul > * + *,
|
|
.ext_settings > * + * {
|
|
--tw-space-y-reverse: 0;
|
|
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
}
|
|
|
|
.ext_link_block {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.ext_link_block svg {
|
|
margin-right: 0.5rem;
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
min-width: 16px;
|
|
}
|
|
|
|
.ext_link_block button span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ext_link_block button,
|
|
.ext_link_block a {
|
|
align-items: center;
|
|
color: var(--vscode-button-secondaryForeground);
|
|
background-color: var(--vscode-button-secondaryBackground);
|
|
border: 0px;
|
|
border-radius: 0px;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
font-size: var(--vscode-font-size);
|
|
font-weight: var(--vscode-font-weight);
|
|
line-height: 26px;
|
|
padding: 0px 14px;
|
|
user-select: none;
|
|
text-decoration: none;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.ext_link_block button.active {
|
|
color: var(--vscode-button-foreground);
|
|
background: var(--vscode-button-background);
|
|
}
|
|
.ext_link_block button.active:hover {
|
|
cursor: pointer;
|
|
background: var(--vscode-button-hoverBackground);
|
|
}
|
|
|
|
.ext_link_block a:hover,
|
|
.ext_link_block a:active,
|
|
.ext_link_block a:focus,
|
|
.ext_link_block a:visited {
|
|
color: var(--vscode-button-secondaryForeground);
|
|
}
|
|
|
|
.ext_link_block a:hover,
|
|
.ext_link_block button:hover {
|
|
background-color: var(--vscode-button-secondaryHoverBackground);
|
|
}
|
|
|
|
.table__cell__seo_details {
|
|
padding: 10px;
|
|
}
|
|
|
|
.table__cell__validation {
|
|
text-align: left;
|
|
}
|
|
|
|
.table__cell__validation div {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.table__cell__validation .valid {
|
|
color: #46ec86;
|
|
}
|
|
|
|
.table__cell__validation .warning {
|
|
color: #e6af2e;
|
|
}
|
|
|
|
.table__cell__validation div span + span {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
/* Fields */
|
|
.field__toggle {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 24px;
|
|
}
|
|
|
|
.field__toggle input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.field__toggle__slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--vscode-button-secondaryBackground);
|
|
-webkit-transition: 0.4s;
|
|
transition: 0.4s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.field__toggle__slider:before {
|
|
position: absolute;
|
|
content: '';
|
|
height: 16px;
|
|
width: 16px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
-webkit-transition: 0.4s;
|
|
transition: 0.4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .field__toggle__slider {
|
|
background-color: var(--vscode-button-background);
|
|
}
|
|
|
|
input:focus + .field__toggle__slider {
|
|
box-shadow: 0 0 1px var(--vscode-button-background);
|
|
}
|
|
|
|
input:checked + .field__toggle__slider:before {
|
|
-webkit-transform: translateX(26px);
|
|
-ms-transform: translateX(26px);
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
/* Metadata */
|
|
|
|
.metadata_field__datetime {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.metadata_field__datetime > .react-datepicker-wrapper {
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.metadata_field__datetime > button {
|
|
color: var(--vscode-button-secondaryForeground);
|
|
background-color: var(--vscode-button-secondaryBackground);
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
width: auto;
|
|
}
|
|
|
|
.metadata_field__datetime > button:hover {
|
|
background-color: var(--vscode-button-secondaryHoverBackground);
|
|
}
|
|
|
|
/* File list */
|
|
.file_list label {
|
|
border-bottom: 1px solid var(--vscode-foreground);
|
|
}
|
|
|
|
.file_list__items {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.file_list__items__item {
|
|
color: var(--vscode-foreground);
|
|
font-size: var(--vscode-font-size);
|
|
font-weight: var(--vscode-font-weight);
|
|
cursor: pointer;
|
|
height: 22px;
|
|
line-height: 22px;
|
|
margin: 0 -1rem;
|
|
padding: 0 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.file_list__items__item:hover {
|
|
background-color: var(--vscode-list-hoverBackground);
|
|
color: var(--vscode-list-hoverForeground);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.file_list__items__item svg {
|
|
display: block;
|
|
flex-shrink: 0;
|
|
height: 20px;
|
|
width: 20px;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.file_list__items__item span {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Sponsor */
|
|
.sponsor {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.sponsor:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.sponsor:hover svg {
|
|
fill: currentcolor;
|
|
}
|
|
|
|
.sponsor svg {
|
|
height: 20px;
|
|
width: 20px;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.sponsor a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--vscode-foreground);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sponsor a:hover {
|
|
color: var(--vscode-foreground);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sponsor a > span {
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
/* Timepicker */
|
|
.react-datepicker button {
|
|
outline: 0;
|
|
}
|
|
|
|
.react-datepicker button:hover {
|
|
background: none !important;
|
|
}
|
|
|
|
.react-datepicker__triangle {
|
|
transform: translate3d(15px, 0px, 0px) !important;
|
|
}
|
|
|
|
.react-datepicker-time__input {
|
|
background: transparent !important;
|
|
color: #000 !important;
|
|
}
|
|
|
|
.react-datepicker-time__input input {
|
|
border: 1px solid #aeaeae !important;
|
|
}
|