Files
wekan/client/components/settings/attachments.css
T
Lauri Ojansivu 362b14c3d9 Admin Panel: one checkbox look, and Allow Email Change becomes a checkbox.
WeKan hides the native checkbox app-wide and draws its own square with a green
tick - `.materialCheckBox`, which is what Admin Panel / Settings / Announcement
shows for "Active System-Wide Announcement". But several Admin Panel panes use a
real <input type="checkbox">: the storage Read toggles, the Organizations and
Teams feature columns, the Backup checkboxes, the Problems summary. Those were
either invisible, because nothing re-enabled them, or re-enabled pane by pane and
then drawn by the BROWSER - on Ubuntu a big orange box that ignored the chosen
theme entirely (orange under clearblue), at a different size in every pane.

The Admin Panel now styles them itself: `appearance: none` takes the browser's
rendering out of it, and the tick is drawn the same way .materialCheckBox draws
it - two borders of a rotated box, in the same green - so a native checkbox and a
WeKan one are the same checkbox to look at. Grey icons, disabled and keyboard
focus are handled with it, and the panes no longer each re-enable and re-size
their own.

Admin Panel / People / E-mail / Allow Email Change is one such checkbox now
instead of a Yes/No radio pair: the setting is on or off. Save below writes it as
it wrote the radios, and only when the checkbox is on screen.

Thanks to xet7 !
2026-07-26 09:23:49 +03:00

231 lines
5.2 KiB
CSS

.move-attachment-buttons {
display: flex;
gap: 10px;
}
.attachments-content .move-compact-section,
.setting-content .content-body .main-body .form-group .compact-block {
margin: 16px 0;
padding: 12px;
border: 1px solid #d0d7de;
border-radius: 6px;
background: #fff8e1;
max-width: 650px;
box-sizing: border-box;
}
.attachments-content .move-compact-section p,
.setting-content .content-body .main-body .form-group .compact-block p {
max-width: 100%;
white-space: normal;
word-wrap: break-word;
}
.attachments-content .move-compact-section h4,
.setting-content .content-body .main-body h4 {
margin: 0 0 6px;
font-size: 1em;
font-weight: 600;
}
.attachments-content .compact-result-list,
.setting-content .content-body .main-body .compact-result-list {
margin: 6px 0 0;
padding-inline-start: 20px;
font-size: 0.85em;
font-family: monospace;
}
.attachments-content .move-progress-section {
margin: 12px 0 16px;
padding: 12px;
border: 1px solid #d0d7de;
border-radius: 6px;
background: #f6f8fa;
}
.attachments-content .move-progress-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.attachments-content .move-progress-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.attachments-content .move-progress-counter {
font-weight: 600;
font-size: 0.9em;
}
.attachments-content .move-progress-filename {
font-size: 0.85em;
color: #57606a;
word-break: break-all;
}
.attachments-content .move-progress-bar-track {
background: #dde1e4;
border-radius: 4px;
height: 8px;
overflow: hidden;
margin: 6px 0;
}
.attachments-content .move-progress-bar-fill {
background: #1976d2;
height: 100%;
border-radius: 4px;
transition: width 0.4s ease;
min-width: 2px;
}
.attachments-content .move-progress-bar-indeterminate {
height: 100%;
border-radius: 4px;
background: linear-gradient(90deg, transparent 0%, #1976d2 40%, #42a5f5 60%, transparent 100%);
background-size: 200% 100%;
animation: move-progress-slide 1.4s ease-in-out infinite;
}
@keyframes move-progress-slide {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.attachments-content .move-progress-controls {
display: flex;
gap: 8px;
margin-top: 10px;
}
.attachments-content .move-storage-form {
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.attachments-content .move-storage-selects {
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
}
.attachments-content .move-storage-form .form-group {
margin: 0;
}
.attachments-content .move-storage-form .form-group label {
display: block;
margin-bottom: 4px;
font-weight: 600;
}
.attachments-content .move-attachment-buttons button,
.attachments-content .board-attachments td button {
background-color: #1976d2;
border: 1px solid #1565c0;
color: #fff;
}
.attachments-content .move-attachment-buttons button:hover,
.attachments-content .board-attachments td button:hover {
background-color: #1565c0;
color: #fff;
}
.attachments-content hr {
height: 0px;
border: 1px solid #000;
}
.setting-content .content-body .main-body .storage-rw-row {
display: flex;
align-items: center;
gap: 24px;
margin-bottom: 12px;
padding: 6px 0;
}
.setting-content .content-body .main-body .storage-rw-item {
display: flex;
align-items: center;
gap: 6px;
}
/* The checkbox itself is the Admin Panel's one checkbox look (settingBody.css):
visible, square, with WeKan's own green tick - not the browser's rendering, which
on Ubuntu drew a big orange box that matched nothing else and ignored the theme.
Only the row's own spacing belongs here. */
.setting-content .content-body .main-body .storage-rw-row label {
margin: 0;
font-weight: 600;
cursor: pointer;
}
.setting-content .content-body .main-body .storage-rw-row input[type="checkbox"]:disabled + label {
cursor: default;
opacity: 0.6;
}
.setting-content .content-body .main-body .gridfs-stats-table {
border-collapse: collapse;
margin-top: 12px;
width: auto !important;
min-width: 0 !important;
}
.setting-content .content-body .main-body .gridfs-stats-table th,
.setting-content .content-body .main-body .gridfs-stats-table td {
border: 1px solid #d0d7de;
padding: 6px 8px;
text-align: start;
white-space: nowrap;
min-width: 0 !important;
}
/* Cloud storage (S3 / Azure / GCS): example value shown below each input. */
.attachments-content .cloud-input-example {
display: block;
color: #888;
font-size: 0.82em;
font-family: monospace;
word-break: break-all;
line-height: 1.35;
}
/* Cloud storage: where-to-find-this-value path shown below the example. */
.attachments-content .cloud-input-path {
display: block;
color: #6a737d;
font-size: 0.82em;
line-height: 1.4;
margin-top: 2px;
}
/* Cloud storage: translated label shown under the (English) label. */
.attachments-content .cloud-input-label-tr {
display: block;
color: #57606a;
font-size: 0.9em;
margin-bottom: 4px;
}
/* Cloud storage: description text (English literal and translated). */
.attachments-content .cloud-input-desc {
display: block;
color: #6a737d;
font-size: 0.82em;
line-height: 1.4;
margin-top: 2px;
}