blob: 314d73406e8bcdf589b4cd96e0dd7f40ed8155f9 [file]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* roller.css: Base CSS styles for Roller web UI */
table {
border:0;
}
p {
margin: 10px 0 10px;
}
.container {
margin: 1em;
}
/* Bootstrap 5 sizes everything for a 16px root, which reads large in this
dense admin UI; 15px scales text, controls and spacing down together. */
html {
font-size: 15px;
}
.roller-page-title {
margin-top: 0px;
margin-bottom: 5px;
font-size: 1.75rem;
}
/* Section headings in sidebar cards */
.roller-column-left h3 {
font-size: 1.25rem;
}
.roller-column-left h4 {
font-size: 1.1rem;
}
/* Cards stacked in a column (sidebar cards, setup steps, upload results)
would otherwise touch */
.card + .card {
margin-top: 1rem;
}
.roller-column-right {
padding-left: 1em;
padding-right: 2em;
}
.roller-column-left{
padding-left: 2em;
padding-right: 1em;
}
.date-form {
margin: 10px;
}
/* bootstrap tweaks */
.glyphicon-info-sign {
margin-right: 0.5em;
}
.controls>input[type=checkbox] {
margin-bottom: 0.5em;
}
/* main menu */
.mm_subtable_label {
width: 8em;
font-weight: bold;
}
.yourWeblogBox {
background: white;
padding: 1em;
}
table.mm_table td {
padding: 0.3em;
}
table.mm_table_actions td {
padding: 0.1em;
}
/* edit entry page */
/* Panel titles at the size of a section label, not a page heading */
.accordion-button {
font-size: 1.1rem;
font-weight: 500;
}
/* entries and comments pages */
/* Sidebar filter forms: the bootstrap theme adds no spacing to form-vertical groups */
.roller-filter-form > div {
margin-bottom: 1rem;
}
.roller-filter-form input[type="submit"] {
margin-top: 0.5rem;
}
.roller-pager {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
margin: 1rem 0;
}
.roller-pager-page {
color: var(--bs-secondary-color);
font-size: 0.875rem;
}
/* keep jQuery UI datepicker in front of other elements */
.ui-datepicker {
position: relative;
z-index: 10000 !important;
}
/* entries page */
.scheduledEntryBox {
background: #EEEEE0;
border: 1px gray solid;
}
.pendingEntryBox {
background: #ffcccc;
border: 1px gray solid;
}
.draftEntryBox {
background: #ffffcc;
border: 1px gray solid;
}
td.pendingentry, tr.pendingentry {
background: #ffcccc !important;
}
td.draftentry, tr.draftentry {
background: #ffffcc !important;
}
td.scheduledentry, tr.scheduledentry {
background: #EEEEE0 !important;
}
.entryEditSidebarLink > a {
font-size: 10pt;
}
/* comments */
td.spamcomment {
background: #ffcccc;
}
td.pendingcomment {
background: #ffffcc;
}
.approvedCommentBox {
background: #ffffff;
border: 1px gray solid;
}
.pendingCommentBox {
background: #ffffcc;
border: 1px gray solid;
}
.spamCommentBox {
background: #ffcccc;
border: 1px gray solid;
}
table.innertable {
border-collapse: collapse;
width: 100%;
margin-bottom: 0;
}
table.innertable tbody td {
padding: 0;
}
table.innertable td.viewbody {
padding: 5px;
/* spam often holds long unbroken URLs; let them wrap so the table fits the page */
overflow-wrap: anywhere;
}
table.innertable tr .bot {
margin-bottom: 5px;
}
table.innertable tr .viewbody .bot {
padding-bottom: 10px;
}
/* categories */
#feedback-area {
float: left;
}
#category-in-use {
background-color: #ffcccc;
border: 1px solid #ff0000;
padding: 10px;
border-radius: 5px;
}
/* sign-in */
body {
background-color: white;
}
.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin .checkbox {
font-weight: normal;
}
.form-signin .form-control {
position: relative;
height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
/* Sticky footer styles */
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
background-color: #f5f5f5;
padding: 1.5em;
text-align: center;
}
/* categories (Categories.jsp, categories.js) */
.categories-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.category-list {
list-style: none;
padding: 0;
margin: 1rem 0 0;
border-top: 1px solid var(--bs-border-color);
}
.category-row {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.25rem;
border-bottom: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
}
.category-row.ui-sortable-helper {
box-shadow: var(--bs-box-shadow);
border: 1px solid var(--bs-border-color);
}
.category-row.ui-sortable-placeholder {
visibility: visible !important;
background-color: var(--bs-tertiary-bg);
}
.category-row-changed {
background-color: var(--bs-success-bg-subtle);
transition: background-color 2s ease-out;
}
.category-handle {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2.75rem;
padding: 0;
border: 0;
border-radius: var(--bs-border-radius);
background: none;
color: var(--bs-secondary-color);
cursor: grab;
touch-action: none;
}
.category-move {
display: none;
flex: none;
flex-direction: column;
gap: 0.125rem;
}
.category-move .btn {
line-height: 1;
padding: 0.2rem 0.5rem;
}
/* a finger cannot drag the handle (jQuery UI sortable has no touch support), so use buttons */
@media (pointer: coarse) {
.category-handle {
display: none;
}
.category-move {
display: flex;
}
}
.category-handle:hover,
.category-handle:focus-visible {
background-color: var(--bs-tertiary-bg);
color: var(--bs-body-color);
}
.category-image {
flex: none;
width: 2rem;
height: 2rem;
object-fit: cover;
border-radius: var(--bs-border-radius-sm);
}
.category-main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
}
.category-name {
font-weight: 600;
text-decoration: none;
overflow-wrap: anywhere;
}
.category-name:hover,
.category-name:focus-visible {
text-decoration: underline;
}
.category-desc {
font-size: 0.875rem;
color: var(--bs-secondary-color);
overflow-wrap: anywhere;
}
.category-count {
flex: none;
font-size: 0.875rem;
color: var(--bs-secondary-color);
white-space: nowrap;
}
.category-actions {
flex: none;
display: flex;
gap: 0.5rem;
}
.category-image-preview {
display: block;
max-width: 8rem;
max-height: 8rem;
margin-top: 0.5rem;
border-radius: var(--bs-border-radius);
border: 1px solid var(--bs-border-color);
}
/* the media chooser, in the category dialog in place of the form */
.category-image-chooser {
display: block;
width: 100%;
height: min(36rem, 65vh);
border: 0;
}
@media (max-width: 575.98px) {
/* name and description on one line, count and buttons under them */
.category-row {
flex-wrap: wrap;
row-gap: 0.25rem;
}
.category-main {
flex-basis: calc(100% - 3rem);
}
.category-row:has(.category-image) .category-main {
flex-basis: calc(100% - 5.75rem);
}
.category-count {
margin-left: 2.75rem;
}
.category-actions {
margin-left: auto;
}
.category-actions .btn {
min-height: 2.75rem;
}
}
/* media library (MediaFileView.jsp, MediaFileSidebar.jsp, MediaFileCard.jsp) */
.media-folders-header,
.media-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.media-folders-header h3 {
font-size: 1.1rem;
margin: 0;
}
.media-new-folder {
margin-top: 0.75rem;
}
.media-folder-list {
list-style: none;
padding: 0;
margin: 0.75rem 0 0;
}
.media-folder-list a {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.5rem;
border-radius: var(--bs-border-radius);
text-decoration: none;
color: var(--bs-body-color);
}
.media-folder-list a:hover,
.media-folder-list a:focus-visible {
background-color: var(--bs-tertiary-bg);
}
.media-folder-list a.active {
background-color: var(--bs-primary-bg-subtle);
color: var(--bs-primary-text-emphasis);
font-weight: 600;
}
.media-folder-name {
overflow-wrap: anywhere;
}
.media-heading {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.5rem;
font-size: 1.25rem;
margin: 0;
overflow-wrap: anywhere;
}
.media-count {
font-size: 0.875rem;
font-weight: normal;
color: var(--bs-secondary-color);
}
/* Search: one box holding the name, its scope and the button, then Filters */
.media-search {
margin: 1rem 0 0.5rem;
}
.media-search-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.media-search-box {
flex: 1 1 20rem;
flex-wrap: nowrap;
}
.media-search-box .input-group-text {
background-color: var(--bs-body-bg);
color: var(--bs-secondary-color);
}
.media-search-box .form-control {
border-left: 0;
min-width: 6rem;
}
.media-search-box .media-search-scope {
flex: 0 1 auto;
width: auto;
max-width: 13rem;
background-color: var(--bs-tertiary-bg);
}
.media-filters-button {
position: relative;
}
/* a set filter that the collapsed panel would otherwise hide */
.media-filters-dot {
position: absolute;
top: 0.3rem;
right: 0.3rem;
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background-color: var(--bs-primary);
}
.media-filters {
margin-top: 0.75rem;
}
.media-filters.show,
.media-filters.collapsing {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.media-filter-size {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 0.5rem;
}
.media-filter-size legend {
width: 100%;
float: none;
font-size: 1rem;
margin-bottom: 0.5rem;
}
.media-filter-size .form-select {
width: auto;
}
.media-filter-size .form-control {
width: 7rem;
}
.media-filter-tags {
flex: 1 1 14rem;
}
/* The bar above the files: type, sort and layout, or the selection's actions.
It stays in view while scrolling, so the actions are always at hand. */
.media-bar {
position: sticky;
top: 0;
z-index: 2;
padding: 0.5rem 0;
background-color: var(--bs-body-bg);
}
.media-results-bar,
.media-selection-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1rem;
min-height: 2.5rem;
}
.media-results-bar[hidden],
.media-selection-bar[hidden] {
display: none;
}
.media-type-chips {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
}
.media-chip {
border-radius: var(--bs-border-radius-pill);
padding: 0.2rem 0.85rem;
border: 1px solid var(--bs-border-color);
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
}
.media-chip:hover {
background-color: var(--bs-tertiary-bg);
}
.btn-check:checked + .media-chip {
border-color: var(--bs-primary-bg-subtle);
background-color: var(--bs-primary-bg-subtle);
color: var(--bs-primary-text-emphasis);
font-weight: 600;
}
.btn-check:focus-visible + .media-chip {
box-shadow: var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
.media-view-options {
display: flex;
align-items: center;
gap: 0.25rem;
color: var(--bs-secondary-color);
}
.media-sort {
width: auto;
border-color: transparent;
background-color: transparent;
color: var(--bs-body-color);
}
.media-sort:hover {
background-color: var(--bs-tertiary-bg);
}
.media-view-options .btn-group {
margin-left: 0.5rem;
}
.media-selection-bar {
justify-content: flex-start;
padding: 0 0.5rem;
border-radius: var(--bs-border-radius-lg);
background-color: var(--bs-primary-bg-subtle);
}
.media-selection-close {
color: var(--bs-body-color);
}
.media-selected-count {
font-weight: 600;
}
.media-selection-actions {
display: flex;
gap: 0.5rem;
margin-left: auto;
}
.media-selection-actions .btn {
background-color: var(--bs-body-bg);
}
.media-selection-actions .btn-outline-danger:hover {
background-color: var(--bs-danger);
}
.media-selection-actions .btn-outline-primary:hover,
.media-selection-actions .btn-outline-primary.show {
background-color: var(--bs-primary);
}
.media-result-summary {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.75rem;
margin: 0.25rem 0 0.5rem;
color: var(--bs-secondary-color);
}
.media-criteria {
display: contents;
list-style: none;
}
.media-criteria li {
padding: 0 0.5rem;
border-radius: var(--bs-border-radius-pill);
background-color: var(--bs-secondary-bg);
color: var(--bs-body-color);
font-size: 0.875rem;
overflow-wrap: anywhere;
}
/* Grid: equal tiles whatever the image shape. The preview box has a fixed shape
and keeps the whole image inside it, so names line up across a row. */
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
gap: 1.25rem 1rem;
list-style: none;
padding: 0;
margin: 0.5rem 0 1.5rem;
}
.media-card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
}
.media-card-preview {
position: relative;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1;
width: 100%;
min-height: 0;
overflow: hidden;
padding: 0;
border: 0;
border-radius: var(--bs-border-radius-lg);
/* a tinted frame keeps white and transparent images visible */
background-color: var(--bs-tertiary-bg);
cursor: pointer;
transition: box-shadow 0.15s ease-in-out;
}
.media-card-preview img {
position: absolute;
inset: 0.5rem;
width: calc(100% - 1rem);
height: calc(100% - 1rem);
object-fit: contain;
transition: transform 0.15s ease-in-out;
}
.media-card-preview .bi {
font-size: 3rem;
color: var(--bs-secondary-color);
}
.media-card:hover .media-card-preview {
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}
.media-card.selected .media-card-preview {
box-shadow: inset 0 0 0 3px var(--bs-primary);
background-color: var(--bs-primary-bg-subtle);
}
.media-card.selected .media-card-preview img {
transform: scale(0.88);
}
/* The checkbox sits over the preview, shown on hover or focus, and always
while files are selected or on touch screens */
.media-card > .media-select {
position: absolute;
top: 0.5rem;
left: 0.5rem;
z-index: 1;
width: 1.35rem;
height: 1.35rem;
margin: 0;
border-radius: 50%;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
opacity: 0;
transition: opacity 0.15s ease-in-out;
cursor: pointer;
}
.media-card:hover > .media-select,
.media-card > .media-select:focus-visible,
.media-card > .media-select:checked,
.media-library.selecting .media-card > .media-select {
opacity: 1;
}
@media (hover: none) {
.media-card > .media-select {
opacity: 1;
}
}
.media-card-body {
display: flex;
padding: 0.4rem 0.125rem 0;
min-width: 0;
}
.media-card-text {
display: flex;
flex-direction: column;
min-width: 0;
width: 100%;
}
/* One line per name; the full name is in the tooltip and on the details page */
.media-card-name {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 0;
border: 0;
background: none;
text-align: start;
font-size: 0.875rem;
color: var(--bs-body-color);
text-decoration: none;
cursor: pointer;
}
.media-card-name:hover {
color: var(--bs-link-color);
text-decoration: underline;
}
.media-card-meta {
display: flex;
flex-wrap: wrap;
gap: 0 0.5rem;
font-size: 0.75rem;
color: var(--bs-secondary-color);
}
.media-card-date {
display: none;
}
.media-empty {
text-align: center;
padding: 3rem 1rem;
color: var(--bs-secondary-color);
}
.media-empty .bi {
font-size: 3rem;
}
.media-folder-actions {
margin-top: 1rem;
text-align: end;
}
.media-library .roller-pager {
justify-content: center;
}
.media-list-header {
display: none;
}
/* List view: one row per file, with name, type, size and upload date columns */
.media-grid.media-list {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.media-grid.media-list .media-list-header,
.media-grid.media-list .media-card {
display: grid;
grid-template-columns: 1.35rem 3rem minmax(0, 1fr) 5rem 5rem 6rem;
align-items: center;
gap: 0.75rem;
padding: 0.35rem 0.5rem;
border-bottom: 1px solid var(--bs-border-color);
}
.media-grid.media-list .media-card:hover {
background-color: var(--bs-tertiary-bg);
}
.media-grid.media-list .media-card.selected {
background-color: var(--bs-primary-bg-subtle);
}
.media-grid.media-list .media-list-header {
font-size: 0.875rem;
font-weight: 600;
color: var(--bs-secondary-color);
}
.media-grid.media-list .media-card-body,
.media-grid.media-list .media-card-text,
.media-grid.media-list .media-card-meta {
display: contents;
}
.media-grid.media-list .media-card > .media-select {
order: 1;
position: static;
width: 1.1rem;
height: 1.1rem;
border-radius: 0.25em;
box-shadow: none;
opacity: 1;
}
.media-grid.media-list .media-card-preview {
order: 2;
width: 3rem;
border-radius: var(--bs-border-radius-sm);
box-shadow: none;
}
.media-grid.media-list .media-card-preview img {
inset: 2px;
width: calc(100% - 4px);
height: calc(100% - 4px);
transform: none;
}
.media-grid.media-list .media-card-preview .bi {
font-size: 1.5rem;
}
.media-grid.media-list .media-card-name {
order: 3;
}
.media-grid.media-list .media-card-type {
order: 4;
}
.media-grid.media-list .media-card-size {
order: 5;
}
.media-grid.media-list .media-card-date {
order: 6;
display: block;
}
.media-grid.media-list .media-card-type,
.media-grid.media-list .media-card-size,
.media-grid.media-list .media-card-date {
font-size: 0.875rem;
}
@media (max-width: 575.98px) {
.media-grid {
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
}
.media-grid.media-list .media-list-header,
.media-grid.media-list .media-card {
grid-template-columns: 1.35rem 3rem minmax(0, 1fr) 4.5rem;
}
.media-grid.media-list .media-list-header span:nth-child(4),
.media-grid.media-list .media-list-header span:nth-child(6),
.media-grid.media-list .media-card-type,
.media-grid.media-list .media-card-date {
display: none;
}
}
/* media file details (MediaFileEdit.jsp) */
.media-back {
margin-bottom: 1rem;
}
.media-details-top {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 1.5rem;
}
.media-details-preview {
display: flex;
align-items: center;
justify-content: center;
min-height: 12rem;
padding: 0.75rem;
border: 1px solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
background-color: var(--bs-tertiary-bg);
}
.media-details-preview img {
max-width: 100%;
max-height: 24rem;
object-fit: contain;
}
.media-details-preview .bi {
font-size: 5rem;
color: var(--bs-secondary-color);
}
.media-details-name {
font-size: 1.25rem;
overflow-wrap: anywhere;
}
.media-facts {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
gap: 0.25rem 1rem;
margin: 1rem 0;
}
.media-facts dt {
font-weight: 600;
}
.media-facts dd {
margin: 0;
overflow-wrap: anywhere;
}
.media-copy-status {
min-height: 1.5rem;
margin: 0.25rem 0 0;
font-size: 0.875rem;
color: var(--bs-success-text-emphasis);
}
.media-details-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.media-details-actions form {
margin: 0;
}
.media-edit-heading {
font-size: 1.1rem;
margin: 2rem 0 1rem;
padding-top: 1rem;
border-top: 1px solid var(--bs-border-color);
}
/* The bootstrap theme adds no spacing to form-vertical groups */
.media-edit-form > fieldset > div,
.media-edit-form > fieldset > details {
margin-bottom: 1rem;
}
.media-advanced summary {
margin-bottom: 0.5rem;
cursor: pointer;
}
.media-edit-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
@media (max-width: 767.98px) {
.media-details-top {
grid-template-columns: minmax(0, 1fr);
}
}
/* media upload (MediaFileAdd.jsp) */
.media-upload > * + * {
margin-top: 1rem;
}
.media-upload-folder .form-select {
max-width: 20rem;
}
.media-drop-zone {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 2rem 1rem;
border: 2px dashed var(--bs-border-color);
border-radius: var(--bs-border-radius-lg);
background-color: var(--bs-tertiary-bg);
text-align: center;
}
.media-drop-zone.disabled {
opacity: 0.6;
}
.media-drop-zone.dragging {
border-color: var(--bs-primary);
background-color: var(--bs-primary-bg-subtle);
}
.media-drop-zone > .bi {
font-size: 2.5rem;
color: var(--bs-secondary-color);
}
.media-drop-zone .form-control {
max-width: 28rem;
}
.media-upload-list {
list-style: none;
padding: 0;
margin: 0;
}
.media-upload-list:empty {
display: none;
}
.media-upload-item {
display: grid;
grid-template-columns: 3rem minmax(0, 1fr) auto auto;
grid-template-areas: "preview name size remove" "preview state state remove";
align-items: center;
gap: 0 0.75rem;
padding: 0.5rem;
border-bottom: 1px solid var(--bs-border-color);
}
.media-upload-preview {
grid-area: preview;
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
background-color: var(--bs-tertiary-bg);
border-radius: var(--bs-border-radius-sm);
}
.media-upload-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.media-upload-preview .bi {
font-size: 1.5rem;
color: var(--bs-secondary-color);
}
.media-upload-name {
grid-area: name;
overflow-wrap: anywhere;
}
.media-upload-size {
grid-area: size;
font-size: 0.875rem;
color: var(--bs-secondary-color);
}
.media-upload-state {
grid-area: state;
font-size: 0.875rem;
color: var(--bs-secondary-color);
}
.media-upload-remove {
grid-area: remove;
}
.media-upload-item[data-state="uploaded"] .media-upload-state {
color: var(--bs-success-text-emphasis);
}
.media-upload-item[data-state="failed"] .media-upload-state,
.media-upload-item[data-state="unknown"] .media-upload-state {
color: var(--bs-danger-text-emphasis);
}
.media-upload-shared summary {
cursor: pointer;
font-weight: 600;
}
.media-upload-shared .form-label,
.media-upload-shared .form-check {
margin-top: 0.75rem;
}
.media-upload-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.media-upload-status:empty {
display: none;
}
.media-upload-failed {
list-style: none;
padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
.media-drop-zone {
transition: border-color 0.15s, background-color 0.15s;
}
}
/* Narrow screens (media pages set a device-width viewport): the folder list
gives way to the folder picker in the page header. On the library page the
Folders card stays for its New folder form; elsewhere it is hidden. */
.media-folder-picker {
display: none;
}
@media (max-width: 767.98px) {
.roller-column-left,
.roller-column-right {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.roller-column-left .card:has(.media-folders):not(:has(#newFolderForm)),
.media-folders .media-folder-list,
.roller-branding-card {
display: none;
}
.media-folder-picker {
display: block;
flex: 1 1 100%;
}
.media-header .media-heading {
display: none;
}
}
/* media chooser in the entry editor (MediaFileImageChooser.jsp) */
.media-chooser-search {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.media-chooser-name {
flex: 1 1 12rem;
}
.mediaFileImage {
max-width: 100%;
}
/* theme edit */
.row-display-flex {
display: flex;
}
.row-display-flex > [class*='col-'] {
display: flex;
flex-direction: column;
}
#sharedChooser, #customChooser {
height: 13em;
}
/* members */
tr.rollertable_pending {
background: #ffffcc;
}
/* Bootstrap 3 rendered all labels bold; Bootstrap 5 does not. Keep the
original emphasis on form field labels. */
.form-label,
.col-form-label {
font-weight: 700;
}
/* Forms put each label above its field at every width, as they already did on
narrow screens. Beside the field, a short label such as "Title" sat a long way
from its input, and long labels wrapped onto two lines. The label and field
columns the forms are written with (3 and 9 of 12) become full-width rows. */
.form-horizontal .row > .col-sm-3,
.form-horizontal .row > .col-md-3,
.form-horizontal .row > .col-sm-9,
.form-horizontal .row > .col-md-9 {
flex: 0 0 100%;
width: 100%;
max-width: 100%;
margin-left: 0;
}
.form-horizontal .row > .col-form-label {
padding-top: 0;
padding-bottom: 0.25rem;
}
/* An empty label only held the field in the second column. */
.form-horizontal .row > label:empty {
display: none;
}
/* Bootstrap 5 leaves readonly inputs looking editable; shade them like
disabled ones so fields the user cannot change read as such. */
.form-control[readonly],
.form-select[disabled] {
background-color: var(--bs-secondary-bg);
opacity: 1;
}
/* Date fields are readonly only so the picker sets them; they are not locked */
.form-control.date-picker[readonly] {
background-color: var(--bs-body-bg);
cursor: pointer;
}
/* Field hint icons sit next to the label rather than in the text flow. */
.s2b_tooltip {
margin-left: .35rem;
color: var(--bs-secondary-color);
cursor: help;
}
/* Give the form panels a little breathing room inside the surrounding card. */
form fieldset {
border: 0;
padding: 0;
margin: 0;
}
/* Bootstrap 3's navbar carried a bottom margin that Bootstrap 5 dropped,
which left page titles butted up against the nav bar. */
nav.navbar {
margin-bottom: 20px;
}
/* blogroll (Bookmarks.jsp, blogroll.js) */
.blogroll-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 1rem;
}
.blogroll-header-actions,
.blogroll-main-actions,
.blogroll-empty-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.blogroll-layout {
display: grid;
grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
gap: 1.5rem;
align-items: start;
}
.blogroll-folders {
list-style: none;
margin: 0;
padding: 0;
}
.blogroll-folder {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border-radius: var(--bs-border-radius);
color: var(--bs-body-color);
text-decoration: none;
}
.blogroll-folder:hover,
.blogroll-folder:focus-visible {
background-color: var(--bs-tertiary-bg);
}
.blogroll-folder.active {
background-color: var(--bs-primary-bg-subtle);
color: var(--bs-primary-text-emphasis);
font-weight: 600;
}
.blogroll-folder-name {
min-width: 0;
overflow-wrap: anywhere;
}
.blogroll-folder-name .bi {
margin-right: 0.25rem;
}
.blogroll-folder-count {
flex: none;
font-size: 0.8125rem;
color: var(--bs-secondary-color);
}
.blogroll-main-header {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
}
.blogroll-title {
font-size: 1.375rem;
margin: 0;
overflow-wrap: anywhere;
}
.blogroll-meta {
font-size: 0.875rem;
color: var(--bs-secondary-color);
}
.blogroll-main .pagetip {
margin: 0.75rem 0;
}
.blogroll-bulkbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.5rem 0.25rem;
border-top: 1px solid var(--bs-border-color);
}
.blogroll-bulk-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.blogroll-move {
width: auto;
flex-wrap: nowrap;
}
.blogroll-move .form-select {
max-width: 12rem;
}
.link-list {
list-style: none;
padding: 0;
margin: 0;
border-top: 1px solid var(--bs-border-color);
}
.link-row {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.25rem;
border-bottom: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
}
.link-row.ui-sortable-helper {
box-shadow: var(--bs-box-shadow);
border: 1px solid var(--bs-border-color);
}
.link-row.ui-sortable-placeholder {
visibility: visible !important;
background-color: var(--bs-tertiary-bg);
}
.link-row-selected {
background-color: var(--bs-primary-bg-subtle);
}
.link-row-changed {
background-color: var(--bs-success-bg-subtle);
transition: background-color 2s ease-out;
}
.link-select {
flex: none;
margin: 0;
}
.link-handle {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2.75rem;
padding: 0;
border: 0;
border-radius: var(--bs-border-radius);
background: none;
color: var(--bs-secondary-color);
cursor: grab;
touch-action: none;
}
.link-move {
display: none;
flex: none;
flex-direction: column;
gap: 0.125rem;
}
.link-move .btn {
line-height: 1;
padding: 0.2rem 0.5rem;
}
/* a finger cannot drag the handle (jQuery UI sortable has no touch support), so use buttons */
@media (pointer: coarse) {
.link-handle {
display: none;
}
.link-move {
display: flex;
}
}
.link-handle:hover,
.link-handle:focus-visible {
background-color: var(--bs-tertiary-bg);
color: var(--bs-body-color);
}
.link-image {
flex: none;
width: 2rem;
height: 2rem;
object-fit: cover;
border-radius: var(--bs-border-radius-sm);
}
.link-image-none {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: var(--bs-tertiary-bg);
color: var(--bs-secondary-color);
font-size: 1.25rem;
}
.link-main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
}
.link-name {
font-weight: 600;
text-decoration: none;
overflow-wrap: anywhere;
}
.link-name:hover,
.link-name:focus-visible {
text-decoration: underline;
}
.link-url {
font-size: 0.875rem;
color: var(--bs-secondary-color);
text-decoration: none;
overflow-wrap: anywhere;
}
.link-url:hover,
.link-url:focus-visible {
text-decoration: underline;
}
.link-url .bi {
margin-left: 0.25rem;
font-size: 0.75rem;
}
.link-desc {
font-size: 0.875rem;
overflow-wrap: anywhere;
}
.link-feed {
flex: none;
color: #e67e22;
padding: 0.25rem;
}
.link-actions {
flex: none;
display: flex;
gap: 0.5rem;
}
.link-advanced summary {
cursor: pointer;
color: var(--bs-link-color);
}
.link-image-preview {
display: block;
max-width: 8rem;
max-height: 8rem;
margin-top: 0.5rem;
border-radius: var(--bs-border-radius);
border: 1px solid var(--bs-border-color);
}
.blogroll-empty {
text-align: center;
padding: 3rem 1rem;
color: var(--bs-secondary-color);
border-top: 1px solid var(--bs-border-color);
}
.blogroll-empty > .bi {
font-size: 3rem;
}
.blogroll-empty-actions {
justify-content: center;
}
.blogroll-import {
max-width: 40rem;
}
@media (max-width: 767.98px) {
/* the blogrolls become a strip of tabs above the links */
.blogroll-layout {
grid-template-columns: minmax(0, 1fr);
gap: 1rem;
}
.blogroll-folders {
display: flex;
gap: 0.25rem;
overflow-x: auto;
padding-bottom: 0.25rem;
border-bottom: 1px solid var(--bs-border-color);
}
.blogroll-folder {
white-space: nowrap;
min-height: 2.75rem;
}
.blogroll-folder-name {
overflow-wrap: normal;
}
}
@media (max-width: 575.98px) {
/* the name beside the handle, buttons on a line of their own */
.link-row {
flex-wrap: wrap;
gap: 0.25rem 0.5rem;
}
.link-main {
flex: 1 1 0;
}
.link-actions {
flex-basis: 100%;
justify-content: flex-end;
}
.link-actions .btn {
min-height: 2.75rem;
}
.blogroll-move .form-select {
max-width: 9rem;
}
}