diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/common.css | 317 | ||||
-rw-r--r-- | www/package-details.css | 107 | ||||
-rw-r--r-- | www/package-search.css | 41 | ||||
-rw-r--r-- | www/package-version-details.css | 161 |
4 files changed, 626 insertions, 0 deletions
diff --git a/www/common.css b/www/common.css new file mode 100644 index 0000000..f1023df --- /dev/null +++ b/www/common.css @@ -0,0 +1,317 @@ +/* +Nexus 5 360 598 +Nexus 6 412 690 +iPhone 5 320 568 +iPhone 6 375 667 +iPhone 6+ 414 736 +Galaxy 5 360 640 +Galaxy 6 360 640 + +iPad 768 1024 +Galaxy 2,3 10" 800 1280 +Galaxy 2 7" 600 1024 + +320-359 small phone portrait +360-567 big phone portrate +568-1023 phone landscape, tablets portrate +1024- tablets landscape, monitor +*/ + +html +{ + font-family: sans-serif; + font-weight: normal; + font-size: 18px; + line-height: 1.4em; +} + +input +{ + font-family: inherit; + font-weight: inherit; + font-size: inherit; + line-height: inherit; +} + +body +{ + margin: 0; /* There is non-0 default margin on body. */ +} + +/* 320px ~ 20em @ 1 font-size. This is factored in when doing font + boosting. Specifying 320px directly seems to mess it up. + + Font boosting results for font-size:1.1em, min-width:18em on Nexus 5: + + - about 40 characters in portrait + - about 70 characters in landscape + - landscape font appears slightly smaller + + 18em on smaller phones (e.g., iPhone 4) appears to trigger scrolling. + 17em works well, however. +*/ + +body {min-width: 17em;} + +@media only screen and (min-width: 360px) +{ + body {min-width: 19em;} +} + +/* + * Header. + */ +#header +{ + width: 100%; + + background: rgba(0, 0, 0, 0.7); + border-bottom: 1px solid rgba(255, 255, 255, 0.26); /* Off background. */ + + padding: .3em 0 .3em 0; + margin: 0 0 1.4em 0; +} + +#header-menu +{ + /* Same as in #content below. */ + max-width: 40em; + margin: 0 auto 0 auto; + padding: 0 .4em 0 .4em; + + text-align: right; +} + +#header-menu a:nth-child(n + 2) {padding-left: 1.2em;} + +#header-menu a {font-size: 1.12em; color: #eee; text-decoration: none;} +#header-menu a:visited {color: #eee;} +#header-menu a:hover, #header-menu a:active {color: #fff; text-decoration: underline;} + + +/* + * Content. + */ +#content +{ + max-width: 40em; + margin: 0 auto 0 auto; + padding: 0 .4em 0 .4em; /* Space between text and browser frame. */ +} + +/* + * Footer. + */ +#footer +{ + text-align: center; +} + +/* Until we have actual content in the footer. */ +#footer:before {content: "\A0";} +#footer:after {content: "\A0";} + +/* Screen size indicator in the footer. */ +#footer +{ + border-left: 1px solid; + border-right: 1px solid; + margin: 0 1px 0 1px; /* To see the border. */ +} + +@media only screen and (max-width: 359px) +{ + #footer {border-color: red;} +} + +@media only screen and (min-width: 360px) and (max-width: 567px) +{ + #footer {border-color: orange;} +} + +@media only screen and (min-width: 568px) and (max-width: 1023px) +{ + #footer {border-color: blue;} +} + +@media only screen and (min-width: 1024px) +{ + #footer {border-color: green;} +} + +/* + * Common elements. + */ +p {text-align: justify;} + +code, pre +{ + font-size: 0.94em; +} + +a {color: #006fbf; text-decoration: none;} +a:hover, a:active {color: #0087e7; text-decoration: underline;} +a:visited {color: #003388;} + +/* + * Form layout table. + */ +.form-table +{ + width: 100%; + border-collapse: collapse; + margin-top: 1.5em; +} + +.form-table table, .form-table th, .form-table td +{ + border: none; + padding: 0; +} + +/* + * Property list table. + */ +.proplist +{ + /* Extend the table into #content's margins that are used to separate + from the browser frame. If this table gets background/stripe, then + we want it to cover that extra space so that we get a margin between + the text and the background edge. This also means that the background + will touch the browser frame. This looks ok as long as we don't use + fancy things like rounded corners. */ + + width: calc(100% + .8rem); /* Fill the page plus #content margin. */ + padding-right: .4rem; + padding-left: .4rem; + margin-left: -.4rem; + + table-layout: fixed; + + border: none; + border-spacing: 0 0; +} + +.proplist th, .proplist td {padding: .08em 0 .08em 0;} + +.proplist th +{ + font-family: monospace; + font-weight: normal; + text-align: left; +} +.proplist th:after {content: ":";} + +.proplist td .comment +{ + color: #666; + font-size: 0.833em; +} + +/* Flexbox-based left/right aligned value/comment implementation. */ +.proplist td +{ + width: 100%; + white-space: nowrap; + + display: -webkit-inline-flex; + display: inline-flex; + + -webkit-justify-content: space-between; + justify-content: space-between; +} + +.proplist td .value +{ + display: inline-block; + + -webkit-flex-shrink: 1; + flex-shrink: 1; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.proplist td .comment +{ + display: inline-block; + + margin-left: 1em; + + -webkit-flex-shrink: 100000; + flex-shrink: 100000; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* Fallback for browsers that still don't support flexbox. */ + +.proplist td +{ + text-align: right; + overflow: hidden; + text-overflow: ellipsis; +} + +.proplist td .value +{ + float: left; + text-align: left; +} + +/* Re-styling for full page variant. */ + +.full .proplist td +{ + flex-wrap: wrap; + -webkit-flex-wrap: wrap; + + white-space: normal; +} + +.full .proplist th +{ + vertical-align: top; +} + +.full .proplist td .value +{ + margin-right: 1em; + + white-space: normal; +} + +.full .proplist td .comment +{ + margin-left: 0; + + text-align: left; + white-space: normal; +} + +/* + * Pager. + */ +#pager +{ + margin-top: 1.8em; + + font-size: 0.916em; + text-align: center; +} + +#pager a +{ + padding: 0 0.4em 0 0.4em; +} + +#pager #prev:before {content: "<\A0";} + +#pager #curr {font-weight: bold;} +#pager #curr:before {content: "["; font-weight: normal;} +#pager #curr:after {content: "]"; font-weight: normal;} + +#pager #next:after {content: "\A0>";} diff --git a/www/package-details.css b/www/package-details.css new file mode 100644 index 0000000..941f97e --- /dev/null +++ b/www/package-details.css @@ -0,0 +1,107 @@ +#heading +{ + display: table; + table-layout: fixed; + width: 100%; + border: none; +} + +/* Since it is a link to itself, it will always be visited. */ +#heading a:visited {color: #006fbf;} +#heading a:hover, h1 a:active {color: #0087e7; text-decoration: none;} + +h1 +{ + font-family: monospace; + font-weight: normal; + font-size: 2.074em; + line-height: 1.4em; + + margin: .6em 0 .6em 0; + + display: table-cell; + text-align: left; +} + +#heading > a +{ + font-size: 1.32em; + line-height: 1.4em; + + display: table-cell; + text-align: right; + width: 3.2em; + vertical-align: middle; +} + +h2 +{ + font-style: italic; + font-weight: normal; + font-size: 1.32em; + line-height: 1.4em; + + margin: .4em 0 .4em 0; +} + +h1, h2 +{ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* + * Package details table. + */ +#package +{ + margin-top: 1.5em; + margin-bottom: 1.5em; +} +#package th {width: 6.4em;} + +/* + * Search form (based on form-table) + */ +#search-txt, #search-txt input {width: 100%;} +#search-btn {padding-left: .4em;} + +/* + * Version count. + */ +#count +{ + font-size: 1.32em; + line-height: 1.4em; + color: #555; + + margin: 1.2em 0 0 0; +} + +/* + * Version table. + */ +table.version +{ + margin-top: .8em; + margin-bottom: .8em; + + padding-top: .4em; + padding-bottom: .4em; + +} +table.version:nth-child(even) {background-color: rgba(0, 0, 0, 0.07);} + +table.version th {width: 6.4em;} + +table.version tr.version td .value, +table.version tr.priority td .value, +table.version tr.location td .value, +table.version tr.depends td .value, +table.version tr.requires td .value +{ + /* <code> style. */ + font-family: monospace; + font-size: 0.94em; +} diff --git a/www/package-search.css b/www/package-search.css new file mode 100644 index 0000000..ef8b59c --- /dev/null +++ b/www/package-search.css @@ -0,0 +1,41 @@ +/* + * Search form (based on form-table) + */ +#search-txt, #search-txt input {width: 100%;} +#search-btn {padding-left: .4em;} + +/* + * Package count. + */ +#count +{ + font-size: 1.32em; + line-height: 1.4em; + color: #555; + + margin: 1.2em 0 0 0; +} + +/* + * Version table. + */ +.package +{ + margin-top: .8em; + margin-bottom: .8em; + + padding-top: .4em; + padding-bottom: .4em; +} +.package:nth-child(even) {background-color: rgba(0, 0, 0, 0.07);} + +.package th {width: 6.4em;} + +.package tr.name td .value, +.package tr.depends td .value, +.package tr.requires td .value +{ + /* <code> style. */ + font-family: monospace; + font-size: 0.94em; +} diff --git a/www/package-version-details.css b/www/package-version-details.css new file mode 100644 index 0000000..a701a5e --- /dev/null +++ b/www/package-version-details.css @@ -0,0 +1,161 @@ +#heading +{ + display: table; + table-layout: fixed; + width: 100%; + border: none; +} + +/* Since it is a link to itself, it will always be visited. */ +#heading a:visited {color: #006fbf;} +#heading a:hover, h1 a:active {color: #0087e7; text-decoration: none;} + +h1 +{ + font-family: monospace; + font-weight: normal; + font-size: 2.074em; + line-height: 1.4em; + color: #444; + + margin: .6em 0 .6em 0; + + display: table-cell; + text-align: left; +} + +#heading > a +{ + font-size: 1.32em; + line-height: 1.4em; + + display: table-cell; + text-align: right; + width: 3.2em; + vertical-align: middle; +} + +h1 a:first-child {margin-right: .14em;} +h1 a:last-child {margin-left: .14em;} + +h2 +{ + font-style: italic; + font-weight: normal; + font-size: 1.32em; + line-height: 1.4em; + + margin: .4em 0 .4em 0; +} + +h3 +{ + font-family: monospace; + font-weight: normal; + font-size: 1.26em; + line-height: 1.4em; + + margin: 1.8em 0 0 0; +} +h3:after{content: ":";} + +h1, h2, h3 +{ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* + * Version details table. + */ +#version +{ + margin-top: .5em; + margin-bottom: 1em; + + padding-top: .4em; + padding-bottom: .4em; + + background-color: rgba(0, 0, 0, 0.07); /* Emphasize. */ + + /* + background: #eee; + border-radius: 6px; + border: 1px outset rgba(230,230,230,.24); + */ +} +#version th {width: 6.4em;} + +#version tr.version td .value, +#version tr.priority td .value, +#version tr.location td .value +{ + /* <code> style. */ + font-family: monospace; + font-size: 0.94em; +} + +/* + * Package details table. + */ +#package +{ + margin-top: 1.2em; + margin-bottom: 1em; +} +#package th {width: 6.4em;} + +/* + * Dependencies and requirements tables. + */ +#depends {margin-top: .4em; margin-bottom: 1em;} +#depends th {width: 2.8em; text-align: center;} +#depends th:after{content: "";} + +/* Striping. For some reason (related to flexbox), this works exactly as + we want, that is, the background extends all the way to the browser's + right frame. */ +#depends tr:nth-child(even) td {background-color: rgba(0, 0, 0, 0.07);} +#depends td {padding-left: .4em;} +#depends td .comment {padding-right: .4em;} + +/* +#depends td .value {padding-left: .4em;} +#depends td .comment {padding-right: .4em;} +*/ + +#depends tr.depends td .value +{ + /* <code> style. */ + font-family: monospace; + font-size: 0.94em; +} + +#requires {margin-top: .4em; margin-bottom: 1em;} +#requires th {width: 2.8em; text-align: center;} +#requires th:after{content: "";} + +#requires tr:nth-child(even) td {background-color: rgba(0, 0, 0, 0.07);} +#requires td {padding-left: .4em;} +#requires td .comment {padding-right: .4em;} + +#requires tr.requires td .value +{ + /* <code> style. */ + font-family: monospace; + font-size: 0.94em; +} + +/* + * Changes. + * + * This is a <pre> block that fits lines up to 80 characters long and + * wraps longer ones. + */ +#changes +{ + font-size: 0.78em; + white-space: pre-wrap; + margin: .5em 0 .5em 0; +} |