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, 122 insertions, 21 deletions
diff --git a/site/assets/css/css.css b/site/assets/css/css.css
index e1acf5ac..65bcce51 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;
@@ -163,6 +164,7 @@ footer a {
padding-bottom: 1px;
text-decoration: none;
}
+
footer a:hover{
color: #ccc;
border-bottom:1px solid #999;
@@ -187,6 +189,9 @@ footer ul.footer-right{
float:right;
margin-right:40px;
}
+.desktop footer a:hover {
+ color: #ddd;
+}
/* headings */
h1 {
@@ -340,7 +345,7 @@ p.subp{
}
.right-sidebar {
float: right;
- width: 240px;
+ width: 200px;
margin: 0px 20px 20px 20px;
padding-top: 12px;
padding-left: 20px;
@@ -381,10 +386,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;
}
@@ -411,7 +417,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;
@@ -477,8 +483,8 @@ blockquote {
}
/* Buttons */
-.citation-opts {
+.citation-opts {
}
.citation-opts li{
display: inline-block;
@@ -497,22 +503,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';
@@ -597,12 +605,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;
}
@@ -774,7 +782,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); }
@@ -1111,6 +1119,7 @@ a.footnote_shim {
.desktop a.footnote:hover {
/*background-color: #ff8;*/
color: #fff;
+ border: 0;
}
.backlinks {
margin-right: 10px;
@@ -1125,6 +1134,9 @@ a.footnote_shim {
bottom: 5px;
margin-right: 2px;
}
+.content .footnotes .backlinks a {
+ bottom: 3px;
+}
li p {
margin: 0; padding: 0;
display: inline;
@@ -1137,7 +1149,7 @@ li p {
margin: 10px auto;
padding-bottom: 10px
}
-.download-btn{
+.download-btn {
display: inline-block;
font-size: 13px;
color: #ddd;
@@ -1146,4 +1158,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