summaryrefslogtreecommitdiff
path: root/site/assets
diff options
context:
space:
mode:
Diffstat (limited to 'site/assets')
-rw-r--r--site/assets/css/css.css143
1 files changed, 120 insertions, 23 deletions
diff --git a/site/assets/css/css.css b/site/assets/css/css.css
index 492ec347..a5e36542 100644
--- a/site/assets/css/css.css
+++ b/site/assets/css/css.css
@@ -55,6 +55,7 @@ header .logo {
margin-right: 8px;
width: 20px;
height: 20px;
+ flex: 0 0 20px;
}
header .site_name {
font-family: 'Roboto', sans-serif;
@@ -142,7 +143,7 @@ footer {
color: #888;
font-size: 9pt;
line-height: 17px;
- padding: 20px 0 20px;
+ padding: 20px 20px;
font-family: "Roboto", sans-serif;
}
footer > div {
@@ -161,7 +162,7 @@ footer a {
transition: color 0.1s cubic-bezier(0,0,1,1);
margin-right: 5px;
}
-footer a:hover {
+.desktop footer a:hover {
color: #ddd;
}
@@ -318,7 +319,7 @@ p.subp{
}
.right-sidebar {
float: right;
- width: 240px;
+ width: 200px;
margin: 0px 20px 20px 20px;
padding-top: 12px;
padding-left: 20px;
@@ -359,10 +360,11 @@ p.subp{
text-decoration: none;
border-bottom: 1px solid;
}
-.left-sidebar a, .right-sidebar a{
+.left-sidebar a, .right-sidebar a {
border-bottom: 1px solid #666;
}
-.content .left-sidebar a:hover, .content .right-sidebar a:hover{
+.desktop .content .left-sidebar a:hover,
+.desktop .content .right-sidebar a:hover {
border-bottom: 1px solid #ccc;
}
@@ -389,7 +391,7 @@ code {
background: rgba(255,255,255,0.1);
}
pre {
- margin: 0 auto;
+ margin: 0 auto 20px auto;
max-width: 720px;
border: 1px solid #666;
border-radius: 2px;
@@ -455,8 +457,8 @@ blockquote {
}
/* Buttons */
-.citation-opts {
+.citation-opts {
}
.citation-opts li{
display: inline-block;
@@ -475,22 +477,24 @@ blockquote {
background: #444;
border:0px;
}
+
/* footnotes */
+
.footnotes hr {
display: none;
}
-ul.footnotes{
- max-width:720px;
- margin:0 auto;
- font-size:12px;
+ul.footnotes {
+ max-width: 720px;
+ margin: 0 auto;
+ font-size: 12px;
}
-ul.footnotes li{
- font-size:12px;
- list-style-type: decimal;
- margin-bottom:12px;
+ul.footnotes li {
+ font-size: 12px;
+ list-style-type: none;
+ margin-bottom: 12px;
}
-ul.footnotes p{
- font-size:12px;
+ul.footnotes p {
+ font-size: 12px;
}
.footnotes ol:before {
content: 'Footnotes';
@@ -575,12 +579,12 @@ section.fullwidth .image {
margin: 10px auto 10px auto;
font-family: 'Roboto';
}
-.caption a{
- color:#ccc;
+.caption a {
+ color: #ccc;
border: 0;
}
-.caption a:hover{
- color:#fff;
+.desktop .caption a:hover {
+ color: #fff;
border: 0;
}
@@ -751,7 +755,7 @@ section.fullwidth .image {
.desktop .content .dataset-list a {
border: none;
}
-.dataset-list a:hover{
+.desktop .dataset-list a:hover {
border: none;
}
.dataset-list a:nth-child(3n+1) { background-color: rgba(255, 0, 0, 0.1); }
@@ -1087,6 +1091,7 @@ a.footnote_shim {
.desktop a.footnote:hover {
/*background-color: #ff8;*/
color: #fff;
+ border: 0;
}
.backlinks {
margin-right: 10px;
@@ -1101,6 +1106,9 @@ a.footnote_shim {
bottom: 5px;
margin-right: 2px;
}
+.content .footnotes .backlinks a {
+ bottom: 3px;
+}
li p {
margin: 0; padding: 0;
display: inline;
@@ -1113,7 +1121,7 @@ li p {
margin: 10px auto;
padding-bottom: 10px
}
-.download-btn{
+.download-btn {
display: inline-block;
font-size: 13px;
color: #ddd;
@@ -1122,4 +1130,93 @@ li p {
padding: 8px 10px;
border-radius: 5px;
transition: all 0.1s;
+}
+
+/* iphone/ipad css */
+@media all and (max-device-width: 1024px) {
+ /* header / footer */
+ .slogan {
+ padding-left: 10px;
+ }
+ header .splash {
+ display: none;
+ }
+ header .links a {
+ margin-right: 10px;
+ }
+
+ /* content */
+
+ .intro_section {
+ padding: 50px 0 20px 0;
+ }
+ .intro_section .hero_desc {
+ font-size: 28px;
+ line-height: 50px;
+ margin-bottom: 20px;
+ }
+ .intro_section .inner {
+ margin: 0;
+ max-width: 100%;
+ padding: 20px;
+ }
+ .intro_section .hero_subdesc {
+ max-width: 100%;
+ }
+ section h1, section h2, section h3, section h4, section h5, section h6, section p {
+ max-width: 100%;
+ }
+ section {
+ width: 100%;
+ padding: 0 10px;
+ }
+ .meta {
+ margin-right: 0px;
+ margin-bottom: 10px;
+ }
+ .modal img {
+ max-width: 100%;
+ }
+ th {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .citationHeader {
+
+ }
+ section.wide {
+ width: 100%;
+ }
+ .map, .map .applet {
+ height: 360px;
+ }
+}
+
+/* iphone-specific */
+@media all and (max-device-width: 640px) {
+ .right-sidebar {
+ float: none;
+ width: 100%;
+ border: 0;
+ margin: 0;
+ padding: 0 2px;
+ border-bottom: 1px solid #333;
+ }
+ .map, .map .applet {
+ height: 360px;
+ }
+ .citationBrowser input.q {
+ max-width: 180px;
+ }
+ .columns {
+ flex-direction: column;
+ }
+ .columns .column {
+ margin: 0;
+ }
+ .columns-2 .column,
+ .columns-3 .column,
+ .columns-4 .column {
+ width: 100%;
+ }
} \ No newline at end of file