Commit 73f2c29e authored by Simon Daron's avatar Simon Daron
Browse files

Styling search results

parent 40c1a404
/* The following code is taken from Normalize.css,
* available under the MIT License:
*
* Copyright (c) Nicolas Gallagher and Jonathan Neal
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
// ==========================================================================
// Forms
// ==========================================================================
//
//
// 1. Correct `color` not being inherited in IE 8/9.
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
//
legend {
border: 0; // 1
padding: 0; // 2
}
//
// 1. Correct font family not being inherited in all browsers.
// 2. Correct font size not being inherited in all browsers.
// 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
//
button,
input,
select,
textarea {
font-family: inherit; // 1
font-size: 100%; // 2
margin: 0; // 3
border: none;
}
//
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
// the UA stylesheet.
//
button,
input {
line-height: normal;
}
//
// Address inconsistent `text-transform` inheritance for `button` and `select`.
// All other form control elements do not inherit `text-transform` values.
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
// Correct `select` style inheritance in Firefox 4+ and Opera.
//
button,
select {
text-transform: none;
}
//
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
// and `video` controls.
// 2. Correct inability to style clickable `input` types in iOS.
// 3. Improve usability and consistency of cursor style between image-type
// `input` and others.
//
button,
html input[type="button"], // 1
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; // 2
cursor: pointer; // 3
}
//
// Re-set default cursor for disabled elements.
//
button[disabled],
html input[disabled] {
cursor: default;
}
//
// 1. Address box sizing set to `content-box` in IE 8/9.
// 2. Remove excess padding in IE 8/9.
//
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; // 1
padding: 0; // 2
}
//
// 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
// 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
// (include `-moz` to future-proof).
//
input[type="search"] {
-webkit-appearance: textfield; // 1
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; // 2
box-sizing: content-box;
}
//
// Remove inner padding and search cancel button in Safari 5 and Chrome
// on OS X.
//
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
//
// Remove inner padding and border in Firefox 4+.
//
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
//
// 1. Remove default vertical scrollbar in IE 8/9.
// 2. Improve readability and alignment in all browsers.
//
textarea {
overflow: auto; // 1
vertical-align: top; // 2
}
/* And the rest is Eric & Seb, AGPLv3*/
label {
display: inline-block;
text-transform: uppercase;
}
select {
height: 20px;
-webkit-appearance: none;
-moz-appearance: window;
}
select[multiple],
select[size] {
height: auto;
background-image: inherit;
}
input[type=date] {
-webkit-appearance: none;
-moz-appearance: window;
}
input[type=text] {
}
select, select option {
text-transform: none;
}
input, select {
text-transform: uppercase;
background: #fff;
}
input[type=text]{
border:none;
width: 100%;
display: inline-block;
}
input[type=submit] {
text-align: left;
border: none;
}
input[type=submit], input[type=text].fullwidth {
height: 1.2em;
}
#search-form {
display: inline;
}
#toggle-advanced-search-options {
display: inline-block;
float: right;
}
#advanced {
display: none;
}
......@@ -33,6 +33,8 @@ img {max-width:100%;}
h1, h2, h3, h4, h5{
font-family: 'RegloBold';
}
h1, h2, h3{
text-transform: uppercase;
}
h1 { font-size: 6em;}
......@@ -161,6 +163,14 @@ nav ul, ul.inline, ul.custom, ul.custom li{
nav ul li, ul.inline li{
display:inline;
}
ul.list{
list-style-type:square; /*Not working but why?*/
list-style-position:inside;
}
ul.list li{
padding:0.5em 0 0.5em 0;
border-bottom:1px solid #ccc;
}
/******************/
/*USEFULL CLASSES */
......@@ -193,7 +203,7 @@ ul.distributed.by7 li{
}
nav a.active, nav button.active{
opacity:1;
font-weight:bold;
text-decoration:none;
border-bottom:2px solid black;
}
......@@ -225,6 +235,11 @@ nav a.active, nav button.active{
.smooth{opacity:0.5;}
.hidden{display:none;}
.padded{padding:1.5em;}
.small{ font-size: 80%;}
.big{ font-size: 150%;}
.huge{ font-size: 200%;}
.spinning {
position:relative;
-webkit-animation: rotation 10s infinite linear;
......@@ -289,6 +304,62 @@ nav a.active, nav button.active{
@media only screen and (min-width: 600px) { .columns{column-count: 2; -webkit-column-count: 2; -moz-column-count: 2;} }
@media only screen and (min-width: 900px) { .columns{column-count: 3; -webkit-column-count: 3; -moz-column-count: 3;} }
/* And the rest is Eric & Seb, AGPLv3*/
label, selct, input, button, textarea{
font-size:inherit;
}
label {
margin-right:1em;
height: 1.2em;
display: inline-block;
text-transform: uppercase;
}
select {
height: 1.2em;
-webkit-appearance: none;
-moz-appearance: window;
}
select[multiple],
select[size] {
height: auto;
background-image: inherit;
}
input[type=date] {
-webkit-appearance: none;
-moz-appearance: window;
}
select, select option {
height: 1.2em;
text-transform: none;
}
input, select {
height: 1.2em;
text-transform: uppercase;
background: #fff;
}
input[type=text], textarea{
width: 100%;
max-width:10em;
display: inline-block;
border:2px solid black;
border-radius:0.2em;
-moz-border-radius:0.2em;
-webkit-border-radius:0.2em;
}
input[type=submit] {
text-align: left;
border: none;
}
/**
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
......
......@@ -57,3 +57,150 @@ input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner {
border: 0px dotted transparent;
}
/* The following code is taken from Normalize.css,
* available under the MIT License:
*
* Copyright (c) Nicolas Gallagher and Jonathan Neal
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
// ==========================================================================
// Forms
// ==========================================================================
//
//
// 1. Correct `color` not being inherited in IE 8/9.
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
//
legend {
border: 0; // 1
padding: 0; // 2
}
//
// 1. Correct font family not being inherited in all browsers.
// 2. Correct font size not being inherited in all browsers.
// 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
//
button,
input,
select,
textarea {
font-family: inherit; // 1
font-size: 100%; // 2
margin: 0; // 3
border: none;
}
//
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
// the UA stylesheet.
//
button,
input {
line-height: normal;
}
//
// Address inconsistent `text-transform` inheritance for `button` and `select`.
// All other form control elements do not inherit `text-transform` values.
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
// Correct `select` style inheritance in Firefox 4+ and Opera.
//
button,
select {
text-transform: none;
}
//
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
// and `video` controls.
// 2. Correct inability to style clickable `input` types in iOS.
// 3. Improve usability and consistency of cursor style between image-type
// `input` and others.
//
button,
html input[type="button"], // 1
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; // 2
cursor: pointer; // 3
}
//
// Re-set default cursor for disabled elements.
//
button[disabled],
html input[disabled] {
cursor: default;
}
//
// 1. Address box sizing set to `content-box` in IE 8/9.
// 2. Remove excess padding in IE 8/9.
//
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; // 1
padding: 0; // 2
}
//
// 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
// 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
// (include `-moz` to future-proof).
//
input[type="search"] {
-webkit-appearance: textfield; // 1
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; // 2
box-sizing: content-box;
}
//
// Remove inner padding and search cancel button in Safari 5 and Chrome
// on OS X.
//
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
//
// Remove inner padding and border in Firefox 4+.
//
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
//
// 1. Remove default vertical scrollbar in IE 8/9.
// 2. Improve readability and alignment in all browsers.
//
textarea {
overflow: auto; // 1
vertical-align: top; // 2
}
......@@ -10,8 +10,8 @@
.resymbol:hover,.control:hover{ opacity:0.5; }
.date, .dateBloc {
font-family: "Reglo";
text-transform: uppercase;
font-family: "Reglo";
text-transform: uppercase;
}
.inline .date, .resume .date{
text-align: center;
......@@ -53,16 +53,10 @@ text-transform: uppercase;
font-size: 3em;
font-family: "RegloSymbol" !important;
line-height: 70% !important;
}
.small{
font-size: 80%;
}
.big{
font-size: 400%;
}
.huge{
font-size: 800%;
}
}
.symbol.small{ font-size: 80%;}
.symbol.big{ font-size: 400%;}
.symbol.huge{ font-size: 800%;}
.label {
text-transform: uppercase;
......@@ -89,32 +83,18 @@ nav.menu li{
margin-right:2em;
}
button.tag {
font-size: 0.8em;
button.tag, a.tag {
font-size:0.9em;
background:white;
font-family: "RegloBold";
letter-spacing: 1px;
text-transform: uppercase;
display:inline-block;
border: 1px solid black;
margin: 2px 2px;
padding: 3px 3px 0px 3px;
border-radius: 7px;
-moz-border-radius: 7px;
}
.list > li{
/*padding:0.5em;
min-height: 2.5em;
border-width:0 0 1px 0;
border-style:solid;
border-color:#ccc;*/
}
.list.columns{
/*border-width:0 1px 0 1px;
/*border-style:solid;
/*border-color:#ccc;
column-rule:1px solid #ccc;
-moz-column-rule:1px solid #ccc; /* Firefox */
-webkit-column-rule:1px solid #ccc; /* Safari and Chrome */
margin: 0.2em;
padding: 0.3em;
border-radius: 0.7em;
-moz-border-radius: 0.7em;
-webkit-border-radius: 0.7em;
}
/**** TABS ****/
......@@ -125,9 +105,13 @@ body{
color:white;
}
#Main{
min-height:30em;
color:#333;
background-color: white;
}
#Home #Main{
min-height:none;
}
/* GLOBAL SITE NAV */
#userLog{
z-index:2000;
......@@ -167,6 +151,8 @@ body{
top:0px;
width:100%;
}
#metaNav ul{
}
#metaNav li{
border-left:1px solid #333;
border-right:1px solid #333;
......@@ -185,6 +171,9 @@ body{
color:black;
background-color:white;
}
@media screen and (max-width:475px){
#metaNav .iconLabel {display:none;}
}
#Footer{
border-top:2px solid #333;
......@@ -277,15 +266,15 @@ body{
/**** EMISSIONS ****/
#Emission .emission-detail .title{}
#Emission-tabs-detail, #Emission-tabs-episodes{
max-width:450px;
max-width:600px;
margin:auto;
}
@media screen and (min-width: 1000px) {
#Emission-tabs-detail{
#Emissions .withEpisodes #Emission-tabs-detail{
float:left;
width:450px;
}
#Emission-tabs-episodes{
#Emissions .withEpisodes #Emission-tabs-episodes{
float:right;
width:450px;
}
......@@ -372,6 +361,10 @@ body{
/**** EPISODE ****/
/**** Detail ****/
.episode .tag{
font-size: 0.8em;
}
.episode.resume, .episode.inline{
padding:1em 0 1em 0;
}
......@@ -576,15 +569,6 @@ body{
ul.tag-facets {
font-size: 80%;
text-transform: lowercase;
font-family: "Reglo";
}
ul#search-results li {
margin: 0.5ex;
}
ul#search-results li.previous-page {