MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
(15 intermediate revisions by the same user not shown)
Line 1:
/* CSS placed here will be applied to all skins */
/* HardwareShared benchmarksearchable searchtable controls */
 
.benchmark-table-block {
Line 13:
display: flex;
flex-direction: column;
align-items: flex-endstretch;
float: rightnone;
widthclear: 32%both;
minbox-widthsizing: 360pxborder-box;
max-width: 500px100%;
marginmin-width: -2.35rem 0 0.25rem 1rem;
max-width: 440px;
margin: 0.75rem 0 0.5rem auto;
}
 
Line 33 ⟶ 35:
box-sizing: border-box;
width: 100%;
height: 34px30px;
min-height: 34px30px;
padding: 0 0.75rem 0 2.25rem;
border: 1px solid #a2b6cc;
Line 47 ⟶ 49:
font: inherit;
font-size: 0.95rem;
text-align: left;
}
 
Line 64 ⟶ 67:
 
.benchmark-search-clear {
heightbox-sizing: 34pxborder-box;
min-height: 34px30px;
min-height: 30px;
padding: 0 0.75rem;
border: 1px solid #a2a9b1;
Line 92 ⟶ 96:
text-align: left;
}
 
/* Hardware benchmark tables */
 
.benchmark-results-table {
Line 101 ⟶ 107:
display: none;
}
 
/* Example Model Catalogue table */
 
.example-model-results-table {
clear: both;
width: 100%;
margin-top: 0 !important;
}
 
.example-model-results-table tr[hidden] {
display: none;
}
 
/* Prevent the Example Model Catalogue shrinking when no rows match */
 
.example-model-table-block {
display: block !important;
width: 100% !important;
max-width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
 
/* Keep the Example Model Catalogue search visible on desktop */
 
.example-model-table-block .benchmark-table-controls {
display: flex !important;
float: none !important;
clear: both;
box-sizing: border-box;
width: 100% !important;
min-width: 0;
max-width: 440px;
margin: 0.75rem 0 0.5rem auto !important;
align-items: stretch;
}
 
.example-model-table-block .benchmark-table-search {
display: flex !important;
width: 100%;
}
 
.example-model-table-block .benchmark-search-input {
display: block !important;
width: 100%;
min-width: 0;
}
 
.example-model-table-block .benchmark-result-count {
display: block !important;
width: 100%;
}
 
.example-model-table-block .example-model-results-table {
box-sizing: border-box;
width: 100% !important;
min-width: 100% !important;
}
 
/* Compact height for all shared search bars */
 
.benchmark-search-input {
line-height: 30px;
}
 
.benchmark-search-clear {
padding-top: 0;
padding-bottom: 0;
line-height: 28px;
}
 
/* Responsive layout */
 
@media screen and (max-width: 900px) {
Line 123 ⟶ 201:
min-width: 0;
max-width: none;
}
 
.example-model-table-block .benchmark-table-controls {
width: 100%;
min-width: 0;
max-width: none;
margin: 0 0 0.35rem !important;
}
}
Line 137 ⟶ 222:
}
 
/* ExampleQGIS ModelUseful CataloguePlugins search controlstable */
 
.exampleqgis-modelplugin-table-block {
display: tableblock !important;
width: 100% !important;
max-width: 100% !important;
margin-left: 0 !important;
margin-right: auto0 !important;
}
 
.qgis-plugin-table-block .qgis-plugin-results-table {
.example-model-table-controls {
displaybox-sizing: flexborder-box;
flex-directionclear: columnboth;
align-itemswidth: flex-end100% !important;
marginmin-width: 0100% 0 0.35rem!important;
margin-top: 0 !important;
}
 
.qgis-plugin-results-table tr[hidden] {
.example-model-table-search {
display: flexnone;
align-items: center;
gap: 0.6rem;
width: 38%;
min-width: 360px;
max-width: 560px;
}
 
mark.example-model-search-inputhighlight {
box-sizing: border-box;
width: 100%;
height: 34px;
min-height: 34px;
padding: 0 0.75rem 0 2.25rem;
border: 1px solid #a2b6cc;
border-radius: 4px;
background-color: #fff;
background-image:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23545f6d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 0.7rem center;
background-size: 16px 16px;
color: #202122;
fontpadding: inherit0 0.05em;
fontborder-sizeradius: 0.95rem2px;
text-align: left;
}
 
mark.search-highlight.search-highlight-1 {
.example-model-search-input::placeholder {
background-color: #72777dffeb3b !important;
}
 
mark.example-modelsearch-highlight.search-input:hoverhighlight-2 {
borderbackground-color: #7896bdfdb9c9 !important;
}
 
mark.example-modelsearch-highlight.search-input:focushighlight-3 {
borderbackground-color: #36cffdcbe !important;
box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.14);
outline: none;
}
 
mark.example-modelsearch-highlight.search-clearhighlight-4 {
background-color: #bbf6f3 !important;
height: 34px;
min-height: 34px;
padding: 0 0.75rem;
border: 1px solid #a2a9b1;
border-radius: 4px;
background: #f8f9fa;
color: #202122;
font: inherit;
font-weight: 600;
cursor: pointer;
}
 
mark.example-modelsearch-highlight.search-clear:hoverhighlight-5 {
borderbackground-color: #72777da7e0f4 !important;
background: #fff;
}
 
@media screen and (max-width: 900px) {
.example-model-result-count {
.qgis-plugin-table-block .benchmark-table-controls {
width: 38%;
min- width: 360px100%;
max-width: 560pxnone;
}
min-height: 1.2rem;
margin-top: 0.2rem;
color: #72777d;
font-size: 0.82rem;
line-height: 1.2rem;
text-align: left;
}
 
/* Make the Example Model Catalogue accessible on narrow screens */
.example-model-results-table {
 
.example-model-table-wrapper {
display: block;
box-sizing: border-box;
width: 100%;
marginmax-topwidth: 0 !important100%;
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
}
 
.example-model-table-wrapper .example-model-results-table tr[hidden] {
displaybox-sizing: noneborder-box;
width: 100% !important;
min-width: 100% !important;
margin-bottom: 0;
}
 
.example-model-table-wrapper .example-model-results-table th,
@media screen and (max-width: 900px) {
.example-model-table-blockwrapper .example-model-results-table td {
displaywhite-space: blocknormal;
overflow-wrap: break-word;
}
 
/* Mobile Example Model Catalogue layout */
 
@media screen and (max-width: 768px) {
.example-model-table-wrapper {
box-sizing: border-box;
width: 100%;
overflowmax-xwidth: auto100%;
overflow-x: hidden;
}
 
.example-model-table-controlswrapper .example-model-results-table {
alignbox-itemssizing: stretchborder-box;
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
table-layout: fixed;
}
 
.example-model-table-searchwrapper .example-model-results-table th,
.example-model-resulttable-countwrapper .example-model-results-table td {
widthbox-sizing: 100%border-box;
min-width: 0;
max-widthpadding: none0.35em 0.22em;
white-space: normal !important;
overflow-wrap: anywhere;
word-break: normal;
hyphens: none;
font-size: 0.76rem;
line-height: 1.22;
}
}
 
/* Slightly larger column headings */
@media screen and (max-width: 720px) {
.example-model-table-searchwrapper .example-model-results-table th {
flexfont-directionsize: column0.8rem;
alignline-itemsheight: stretch1.15;
}
 
.example-/* Keep model-search-clear {names compact */
.example-model-table-wrapper .example-model-results-table th:last-child,
align-self: flex-end;
.example-model-table-wrapper .example-model-results-table td:last-child {
min-width: 0;
white-space: normal !important;
overflow-wrap: anywhere;
word-break: normal;
font-size: 0.7rem;
line-height: 1.18;
}
 
/* Reduce the catalogue title slightly */
.example-model-table-wrapper .example-model-results-table tr:first-child th {
font-size: 0.86rem;
padding: 0.45em 0.25em;
}
}
 
/* Hide mobile last-edited bar */
/* Final Example Model Catalogue search styling override */
 
.last-modified-bar,
body .example-model-table-block {
.minerva-footer-last-modified,
display: table !important;
footer .last-modified,
width: 100% !important;
footer [class*="last-modified"] {
max-width: 100% !important;
margin-leftdisplay: 0none !important;
margin-right: auto !important;
}
 
/* -------------------------------------------------------------------------
body .example-model-table-controls {
* Final compact sizing for all searchable table controls
display: flex !important;
* ------------------------------------------------------------------------- */
flex-direction: column !important;
 
align-items: flex-end !important;
.benchmark-table-controls {
float: none !important;
clear: both !important;
box-sizing: border-box !important;
width: 100% !important;
marginmin-width: 0 0 0.35rem !important;
max-width: 400px !important;
margin: 0.5rem 0 0.4rem auto !important;
align-items: stretch !important;
}
 
input.benchmark-search-input {
body .example-model-table-search {
display: flex !important;
align-items: center !important;
gap: 0.6rem !important;
width: 38% !important;
min-width: 360px !important;
max-width: 560px !important;
}
 
body input.example-model-search-input {
box-sizing: border-box !important;
display: block !important;
width: 100% !important;
height: 34px28px !important;
min-height: 34px28px !important;
max-height: 34px28px !important;
padding: 02px 0.75rem65rem 02px 2.25rem2rem !important;
line-height: 34px !important;
border: 1px solid #a2b6cc !important;
border-radius: 4px !important;
background-colorposition: #fff0.55rem center !important;
background-imagesize: 14px 14px !important;
font-size: 0.84rem !important;
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23545f6d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
backgroundline-repeatheight: no-repeat22px !important;
background-positionappearance: 0.7rem centernone !important;
background-sizewebkit-appearance: 16px 16pxnone !important;
color: #202122 !important;
font-family: inherit !important;
font-size: 0.95rem !important;
text-align: left !important;
}
 
body inputbutton.example-modelbenchmark-search-input::placeholderclear {
colorbox-sizing: #72777dborder-box !important;
height: 28px !important;
min-height: 28px !important;
max-height: 28px !important;
padding: 0 0.65rem !important;
font-size: 0.84rem !important;
line-height: 26px !important;
}
 
.benchmark-result-count {
body input.example-model-search-input:hover {
bordermin-colorheight: #7896bd1rem !important;
margin-top: 0.1rem !important;
font-size: 0.78rem !important;
line-height: 1rem !important;
}
 
/* Keep all search controls full width on mobile */
body input.example-model-search-input:focus {
border-color: #36c !important;
box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.14) !important;
outline: none !important;
}
 
body button.example-model-search-clear {
height: 34px !important;
min-height: 34px !important;
max-height: 34px !important;
padding: 0 0.75rem !important;
border: 1px solid #a2a9b1 !important;
border-radius: 4px !important;
background: #f8f9fa !important;
color: #202122 !important;
font: inherit !important;
font-weight: 600 !important;
cursor: pointer !important;
}
 
body .example-model-result-count {
width: 38% !important;
min-width: 360px !important;
max-width: 560px !important;
min-height: 1.2rem !important;
margin-top: 0.2rem !important;
color: #72777d !important;
font-size: 0.82rem !important;
line-height: 1.2rem !important;
text-align: left !important;
}
 
body .example-model-results-table {
width: 100% !important;
margin-top: 0 !important;
}
 
body .example-model-results-table tr[hidden] {
display: none !important;
}
 
@media screen and (max-width: 900px) {
body .example-modelbenchmark-table-blockcontrols {
display: block !important;
width: 100% !important;
overflow-x: auto !important;
}
 
body .example-model-table-controls {
align-items: stretch !important;
}
 
body .example-model-table-search,
body .example-model-result-count {
width: 100% !important;
min-width: 0 !important;
max-width: none !important;
margin: 0 0 0.4rem !important;
}
}
 
@media screen and (max-width: 720px) {
body .example-model-table-search {
flex-direction: column !important;
align-items: stretch !important;
}
 
body button.example-model-search-clear {
align-self: flex-end !important;
}
}