From 06033681b31c643a17e983241848296354cbdc80 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 19 Apr 2019 09:49:56 +0200 Subject: css --- client/datasetList/datasetList.container.js | 2 +- client/map/index.js | 7 ++- site/assets/css/css.css | 68 ++++++++++++++++------ site/assets/css/mobile.css | 18 +++++- site/public/about/assets/LICENSE/index.html | 1 + site/public/about/attribution/index.html | 1 + site/public/about/index.html | 1 + site/public/about/legal/index.html | 1 + site/public/about/press/index.html | 1 + .../datasets/50_people_one_question/index.html | 3 +- site/public/datasets/afad/index.html | 3 +- site/public/datasets/brainwash/index.html | 3 +- site/public/datasets/caltech_10k/index.html | 3 +- site/public/datasets/celeba/index.html | 3 +- site/public/datasets/cofw/index.html | 3 +- site/public/datasets/duke_mtmc/index.html | 3 +- site/public/datasets/feret/index.html | 3 +- site/public/datasets/hrt_transgender/index.html | 3 +- site/public/datasets/index.html | 1 + site/public/datasets/lfpw/index.html | 3 +- site/public/datasets/lfw/index.html | 3 +- site/public/datasets/market_1501/index.html | 3 +- site/public/datasets/msceleb/index.html | 7 ++- site/public/datasets/oxford_town_centre/index.html | 3 +- site/public/datasets/pipa/index.html | 3 +- site/public/datasets/pubfig/index.html | 3 +- site/public/datasets/uccs/index.html | 3 +- site/public/datasets/vgg_face2/index.html | 3 +- site/public/datasets/viper/index.html | 3 +- .../public/datasets/youtube_celebrities/index.html | 3 +- site/public/index.html | 15 ++++- site/public/info/index.html | 1 + site/public/research/00_introduction/index.html | 1 + .../research/01_from_1_to_100_pixels/index.html | 1 + .../research/02_what_computers_can_see/index.html | 1 + site/public/research/index.html | 1 + site/public/test/chart/index.html | 1 + site/public/test/citations/index.html | 1 + site/public/test/csv/index.html | 1 + site/public/test/datasets/index.html | 1 + site/public/test/face_search/index.html | 1 + site/public/test/gallery/index.html | 1 + site/public/test/index.html | 1 + site/public/test/map/index.html | 1 + site/public/test/name_search/index.html | 1 + site/public/test/pie_chart/index.html | 1 + site/templates/home.html | 6 +- site/templates/layout.html | 4 +- 48 files changed, 152 insertions(+), 53 deletions(-) diff --git a/client/datasetList/datasetList.container.js b/client/datasetList/datasetList.container.js index f9b2c3b4..37749f11 100644 --- a/client/datasetList/datasetList.container.js +++ b/client/datasetList/datasetList.container.js @@ -17,7 +17,7 @@ const sortOptions = [ { field: 'title', title: 'Name', type: 'string' }, { field: 'year', title: 'Year', type: 'number' }, { field: 'purpose', title: 'Purpose', type: 'string' }, - { field: 'images', title: 'Images', type: 'number', reversed: true }, + // { field: 'images', title: 'Images', type: 'number', reversed: true }, ] class DatasetListContainer extends Component { diff --git a/client/map/index.js b/client/map/index.js index 4492a69a..af1c504e 100644 --- a/client/map/index.js +++ b/client/map/index.js @@ -103,10 +103,11 @@ class Map { this.el.removeChild(mapCover) } }) - mapCover.querySelector('div').addEventListener('touchstart', (e) => { - e.preventDefault() + mapCover.querySelector('div').addEventListener('touchstart', e => { + e.stopPropagation() }) - mapCover.querySelector('div').addEventListener('tap', () => { + mapCover.querySelector('div').addEventListener('tap', e => { + e.stopPropagation() this.map.scrollWheelZoom.enable() if (mapCover.parentNode === this.el) { this.el.removeChild(mapCover) diff --git a/site/assets/css/css.css b/site/assets/css/css.css index 6e102c05..8c47e980 100644 --- a/site/assets/css/css.css +++ b/site/assets/css/css.css @@ -72,23 +72,25 @@ header .site_name { line-height: 11px; letter-spacing: 3px; } -header .splash{ +header .page_name { font-size: 22px; font-weight: 400; color: #eee; - /*padding-left: 8px;*/ opacity: 0; transition: 0.3s opacity cubic-bezier(0,0,1,1); margin-left:18px; - /*line-height: 22px;*/ } -.scrolled header .splash { +.scrolled header .page_name { opacity: 1; } -header .links{ +header .links { font-size: 18px; line-height: 18px; } +.home header .links a { + background-color: rgba(0,0,0,0.9); + padding: 3px; +} header .sub { margin-left: 4px; margin-top: 2px; @@ -123,18 +125,18 @@ header .links a { } header .links a.active { color: #fff; - border-bottom: 2px solid rgba(255,255,255,255); + border-bottom: 2px solid rgba(255,255,255,1); } .desktop header .links a:hover { color: #fff; - border-bottom: 2px solid rgba(255,255,255,255); + border-bottom: 2px solid rgba(255,255,255,1); } .desktop header .links a.active:hover { color: #fff; - border-bottom: 2px solid rgba(255,255,255,255); + border-bottom: 2px solid rgba(255,255,255,1); } -header .links.splash{ - font-size:22px; +header .links.splash { + font-size: 22px; font-weight: 400; } @@ -165,32 +167,32 @@ footer > div:nth-child(2) { footer a { display: inline-block; color: #ccc; - transition: color 0.1s cubic-bezier(0,0,1,1); - border-bottom:1px solid #555; + transition: all 0.1s cubic-bezier(0,0,1,1); + border-bottom: 1px solid #555; padding-bottom: 1px; text-decoration: none; } - -footer a:hover { - color: #ccc; +.desktop footer a:hover { + color: #fff; border-bottom:1px solid #999; } footer ul { - margin:0; + margin: 0; } footer div { color: #888; font-size: 12px; } footer ul li:last-child { - margin-right:0px; + margin-right: 0px; } -footer div:first-child a { +footer div:first-child > a { margin-right: 5px; } .desktop footer a:hover { color: #fff; } + /* headings */ h1 { @@ -266,6 +268,36 @@ th, .gray { font-size: 9pt; } +/* splash teaser */ + +.teaser { + position: absolute; + top: 50%; + left: 25%; + transform: translateY(-50%); +} +.teaser b { + font-family: 'Roboto', sans-serif; + font-weight: 500; + color: #fff; + font-size: 40px; + display: block; +} +.teaser tt { + font-family: 'Roboto Mono', monospace; + color: #ddd; + font-size: 16px; + display: block; + max-width: 400px; +} +.teaser .btn { + color: #ddd; + background: #444; + padding: 5px 10px; + font-size: 20px; + border-radius: 4px; +} + /* content */ .content { diff --git a/site/assets/css/mobile.css b/site/assets/css/mobile.css index 6a742277..d6ded8d6 100644 --- a/site/assets/css/mobile.css +++ b/site/assets/css/mobile.css @@ -1,7 +1,17 @@ /* MOBILE - iphone/ipad css */ +softbr { + display: none; +} + @media all and (max-device-width: 1024px) { + softbr { + display: block; + height: 10px; + } + /* header / footer */ + .slogan { padding-left: 10px; } @@ -59,7 +69,13 @@ height: 360px; } - /* MOBILE datasets page */ + + .content td a { + text-overflow: ellipsis; + max-width: 100%; + overflow: hidden; + display: inline-block; + } } /* iphone-specific */ diff --git a/site/public/about/assets/LICENSE/index.html b/site/public/about/assets/LICENSE/index.html index 0d3a7878..9d2d9e58 100644 --- a/site/public/about/assets/LICENSE/index.html +++ b/site/public/about/assets/LICENSE/index.html @@ -11,6 +11,7 @@ +
diff --git a/site/public/about/attribution/index.html b/site/public/about/attribution/index.html index d3d38d3c..7c3de237 100644 --- a/site/public/about/attribution/index.html +++ b/site/public/about/attribution/index.html @@ -11,6 +11,7 @@ +
diff --git a/site/public/about/index.html b/site/public/about/index.html index 61200d1b..550f8ccb 100644 --- a/site/public/about/index.html +++ b/site/public/about/index.html @@ -11,6 +11,7 @@ +
diff --git a/site/public/about/legal/index.html b/site/public/about/legal/index.html index 9eb5dd5a..a55ce23b 100644 --- a/site/public/about/legal/index.html +++ b/site/public/about/legal/index.html @@ -11,6 +11,7 @@ +
diff --git a/site/public/about/press/index.html b/site/public/about/press/index.html index 7b0a3e87..b8f64f57 100644 --- a/site/public/about/press/index.html +++ b/site/public/about/press/index.html @@ -11,6 +11,7 @@ +
diff --git a/site/public/datasets/50_people_one_question/index.html b/site/public/datasets/50_people_one_question/index.html index dc7919f7..eb56baee 100644 --- a/site/public/datasets/50_people_one_question/index.html +++ b/site/public/datasets/50_people_one_question/index.html @@ -11,13 +11,14 @@ +
MegaPixels
-
50 People One Question Dataset
+
50 People One Question Dataset