/
niceSOFT
/
cups
Обзор
Документация
Войти
/
niceSOFT
/
cups
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
doc/cups.css
797 строк
14 KB
Michael R Sweet
Add new HTML/CSS developer test page for CUPS web interface (not installed), fix some CSS issues.
13 ноя 2025, 18:56
Не верифицирован
13 ноя 2025, 18:56
f164602
Код
Авторство
О чём код?
/* Base styles */ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Source+Code+Pro&display=swap'); /* Layout CSS */ .cups-header { background: rgba(46,46,46,.9); box-shadow: 0 2px 5px rgba(0,0,0,0.25); color: white; left: 0; margin-bottom: 20px; padding: 0; position: fixed; right: 0; top: 0; width: 100%; } .cups-header ul { font-size: 20px; list-style: none; margin: 0; -webkit-margin-before: 0; -webkit-margin-after: 0; -webkit-margin-start: 0; -webkit-margin-end: 5px; -webkit-padding-start: 0; } .cups-header ul li { float: left; } .cups-header ul li.right { float: right; } .cups-header a { display: block; padding: 18px 30px !important; } .cups-header a.img { padding: 16px 24px 8px !important; } .cups-header a:link, .cups-header a:visited { color: white !important; text-decoration: none !important; } .cups-header a:hover { background: #cccccc !important; color: #333333 !important; text-decoration: none !important; } .cups-header a.active { background: white !important; box-shadow: rgba(0,0,0,0.1) 0 0 10px 0 inset; color: black !important; text-decoration: none !important; } .cups-header form { display: block; padding: 15px 15px !important; } .cups-header span.label { color: #ccc; display: block; font-style: italic; padding: 15px 0 !important; } .cups-body { margin-bottom: 20px; margin-top: 65px; padding: 20px; } .cups-body .row { padding: 0; } .cups-footer { background: rgba(46,46,46,.9); bottom: 0; box-shadow: 0 -2px 5px rgba(0,0,0,0.25); color: #cccccc; font-size: 10px; height: 20px; left: 0; padding: 10px 10px 3px; position: fixed; width: 100%; } .cups-footer a:link, footer a:hover, .cups-footer a:visited { color: white !important; text-decoration: none !important; } .row { width: 100%; *zoom: 1; } .row:after { clear: both; } .row .thirds { float: left; margin-left: 0.5%; margin-right: 0; padding-bottom: 40px; width: 33%; } .row .thirds:first-child { margin-left: 0; } .row .halves { float: left; margin-left: 0.5%; margin-right: 0; padding-bottom: 40px; width: 49.75%; } .row .halves:first-child { margin-left: 0; } .row .thirds h1, .row .halves h1, .row h1 { margin-top: 0; } .mobile { display: none; } .no-mobile { display: inherit; } /* Appearance CSS */ body { background: white; color: black; font-family: 'Open Sans', sans-serif; font-size: 16px; margin: 0; } h1, h2, h3, h4, h5, h6, p, td, th { font-family: 'Open Sans', sans-serif; } h1 { font-size: 2em; } h2 { font-size: 1.75em; } h3 { font-size: 1.5em; } h4 { font-size: 1.25em; } code, kbd, pre, tt, input[type=text], p.command, p.summary, p code, li code, p.code, ul.code li, textarea { font-family: 'Source Code Pro', monospace; } kbd { color: #006600; font-weight: bold; } pre { white-space: pre-wrap; } blockquote { background: rgba(191,191,191,0.1); border-left: solid 2px #777; margin: 1em 0; padding: 10px; } blockquote ol li { margin-left: -1em; } pre.command, pre.example { padding: 10px 20px; } p.example { font-style: italic; margin-left: 36pt; } dl.man dd { margin-left: 5em; } DL.man DT { margin-left: 0; } pre.man { margin: 0; } pre.command EM, pre.example EM { color: #3f0000; } p.command { color: #7f0000; margin-left: 36pt; } p.formula { font-style: italic; margin-left: 36pt; } a img { border: none; } a:link:hover img { background: #f0f0f0; border-radius: 10px; -moz-border-radius: 10px; } a:link, a:visited { font-weight: inherit; text-decoration: none; color: #317BFF; } a:link:hover, a:visited:hover, a:active { text-decoration: underline; color: #4C80BF; } table.page { border: none; border-collapse: collapse; height: 100%; margin: 0; padding: 0; width: 100%; } td.cups-body { height: 100%; vertical-align: top; } td.trailer { background: #f0f0f0; border: solid thin #e0e0e0; color: #666666; font-size: 80%; padding: 5px; } td.trailer a { color: #666699; } form { display: inline; } button, input[type=button], input[type=submit] { border: none; border-radius: 5px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: normal; padding: 4px 8px; text-decoration: none; white-space: nowrap; -moz-appearance: none; -webkit-appearance: none; } button, input[type=button], input[type=file], input[type=submit] { background: #317BFF; color: #FFF; } button:hover, input[type=button]:hover, input[type=file]:hover, input[type=submit]:hover { background: #65ABFF; color: #FFF; } button:active, input[type=button]:active, input[type=file]:active, input[type=submit]:active { background: #317BFF; color: #FFF; } input[type=search] { -webkit-appearance: textfield; } input[type=search], input[type=text] { padding: 4px 8px; } select[size=1] { background: #ccc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23000000' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; color: black; padding: 4px 32px 4px 8px; } select[size=1]:hover { background: #ddd url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23000000' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; } textarea { width: 100%; } input[type="image"] { border: none; padding: 2pt; vertical-align: bottom; } sub, sup { font-size: 50%; } tr.data, td.data, tr.data td { margin-top: 10pt; padding: 5pt; border-bottom: solid 1pt #999999; } tr.data th { border-bottom: solid 1pt #999999; padding-top: 10pt; padding-left: 5pt; text-align: left; } div.table table { border: solid thin rgba(191,191,191,.3); border-collapse: collapse; border-spacing: 0; margin-left: auto; margin-right: auto; } div.table caption { caption-side: top; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } div.table table td { background: white; border: solid thin rgba(191,191,191,.45); padding: 5pt 10pt 0; } div.table table th { background: rgba(191,191,191,.15); border: none; border-bottom: solid thin rgba(191,191,191,.3); } div.figure table { margin-left: auto; margin-right: auto; } div.figure caption { caption-side: bottom; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } th.label { text-align: right; vertical-align: top; } th.sublabel { text-align: right; font-weight: normal; } hr { border: solid thin; } span.info { background: black; border: thin solid black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h2 span.info, h3 span.info, h4 span.info { float: right; font-size: 100%; } .conflict { background: red; color: white; } th.conflict { text-align: right; } h1.title, h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { border-bottom: solid 2pt black; } table.indent { margin-top: 2em; margin-left: auto; margin-right: auto; width: 90%; } table.indent { border-collapse: collapse; } table.indent td, table.indent th { padding: 0; } table.list { border-collapse: collapse; margin-left: auto; margin-right: auto; width: 90%; } table.list th { background: white; border-bottom: solid thin #cccccc; border-right: 2px solid rgba(191,191,191,.45); color: #444444; padding: 5px 10px 5px 12px; text-align: left; vertical-align: bottom; white-space: nowrap; } table.list th a { color: #4444cc; } table.list td { border-bottom: solid thin rgba(191,191,191,.45); padding: 5px 2px 5px 10px; } table.list tr:nth-child(even) { background: rgba(191,191,191,0.15); } table.list tr:nth-child(odd) { background: rgba(191,191,191,0.3); } div.sidebar { float: right; min-width: 25%; margin-left: 10px; max-width: 33%; } div.sidebar p.l0 { margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 12pt; } div.sidebar p.l1 { margin-bottom: 0; margin-left: 36pt; margin-right: 0; margin-top: 0; text-indent: -18pt; } div.sidebar p.l2 { font-style: italic; margin-bottom: 0; margin-left: 54pt; margin-right: 0; margin-top: 0; text-indent: -18pt; } table.inset { background: #f4f4f4; border: thin solid rgba(191,191,191,0.5); margin-top: 1em; padding: 0; width: 100%; /* these are not implemented by all browsers, but that's ok */ border-radius: 5px; -moz-border-radius: 5px; } table.inset caption { caption-side: top; color: #666666; font-size: 80%; margin-left: 10px; margin-bottom: 2px; text-align: left; } table.inset td { padding: 2px 5px; } dt { margin-left: 36pt; margin-top: 12pt; } dd { margin-left: 54pt; } dl.category dt { font-weight: bold; } p.summary { margin-left: 36pt; } div.summary table { border: solid thin #999999; border-collapse: collapse; border-spacing: 0; margin: 10px; } div.summary table td, div.summary table th { background: white; border: solid thin #999999; border-spacing: 0; padding: 5px; text-align: left; vertical-align: top; } div.summary table thead th { background: #f0f0f0; } div.tabs { height: 480px; overflow: hidden; } div.tab { float: left; height: 100%; overflow-y: auto; width: 100%; } /* API documentation styles... */ div.cups-body h1 { } div.cups-body h2 { } div.cups-body h3 { } div.cups-body h4 { } div.cups-body h5 { } div.contents { } div.contents h1 { } div.contents h2 { } div.contents ul.contents { } div.contents ul.contents li ul { display: none; } .class { border-bottom: solid 2px gray; } .constants { } .description { margin-top: 0.5em; } .discussion { } .enumeration { border-bottom: solid 2px gray; } .function { border-bottom: solid 2px gray; margin-bottom: 0; } .members { } .method { } .parameters { } .returnvalue { } .struct { border-bottom: solid 2px gray; } .typedef { border-bottom: solid 2px gray; } .union { border-bottom: solid 2px gray; } .variable { } h1, h2, h3, h4, h5, h6 { page-break-inside: avoid; } blockquote { page-break-inside: avoid; } p.code, pre, ul.code li { border-left: thin dotted gray; background: rgba(191,191,191,0.1); } p code, li code { background: rgba(191,191,191,0.3); } p code, li code, p.code, pre, ul.code li { hyphens: manual; margin: 18pt 0; -webkit-hyphens: manual; page-break-inside: avoid; } p.code, pre, ul.code li { padding: 10px; } p code, li code { padding: 2px 5px; } span.info { background: black; border: solid thin black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h3 span.info, h4 span.info { border-top-left-radius: 10px; border-top-right-radius: 10px; float: right; padding: 3px 6px; } ul.code, ul.contents, ul.subcontents { list-style-type: none; margin: 0; padding-left: 0; } ul.code li { margin: 0; } ul.contents > li { margin-top: 1em; } ul.contents li ul.code, ul.contents li ul.subcontents { padding-left: 2em; } /* iPhone/iPod touch overrides */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px), only screen and (min-device-width: 320px) and (max-device-width: 568px) { .mobile { display: inherit; } .no-mobile { display: none; } .cups-header { margin: 0; position: relative; } .cups-header ul li { float: none; } .cups-body { padding: 0; } .cups-footer { font-size: 10px; height: auto; position: relative; } .row .thirds, .row .halves { float: none; margin: 0; width: 100%; } div.sidebar { float: none; margin-left: 0; max-width: 100%; min-width: 100%; width: 100%; } blockquote { margin: 0; } p.example { margin-left: 0; } pre.command, pre.example, pre.man { margin-left: 0; white-space: pre-wrap; } } /* iPad overrides */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { .mobile { display: inherit; } .no-mobile { display: none; } } /* Dark mode overrides */ @media (prefers-color-scheme: dark) { body { background: black; color: #ccc; } a:link, a:visited, table.list th a { color: #4C80BF; } a:link:hover, a:visited:hover, a:active, table.list th a { color: #65ABFF; } hr { color: #666; } table.inset { background: #1d1d1d; } h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { border-bottom: solid 2pt #ccc; } div.table table td, table.list th { background: black; } table.list th { color: #666; } button, input[type=button], input[type=file], input[type=submit] { background: #255CBF; color: #DDD; } button:hover, input[type=button]:hover, input[type=file]:hover, input[type=submit]:hover { background: #4C80BF; color: #EEE; } button:active, input[type=button]:active, input[type=file]:active, input[type=submit]:active { background: #255CBF; color: #DDD; } input[type=search], input[type=text], textarea { background: #333; color: #ccc; } select[size=1] { background: #333 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23CCCCCC' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; color: #ccc; padding: 4px 32px 4px 8px; } select[size=1]:hover { background: #444 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23DDDDDD' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; } }