2,664
edits
m (took out that the buttons on the main page disappear when screen gets too small) |
m (Updated to latest common.css, with code for new landing page) |
||
Line 107: | Line 107: | ||
/*--------------------------main page coding-----------------*/ | /*--------------------------main page coding-----------------*/ | ||
# | /* ------------------new CSS -------------------*/ | ||
/* ------------------containers / elements -------------------*/ | |||
#map { | |||
position: relative; | |||
width: 100%; | |||
padding-top: 40px; | |||
margin-left: 0; | |||
} | |||
.sectionTitle { | |||
text-align:center; | |||
margin-bottom:5px; | |||
font-size:1.2rem; | |||
margin-top:-10px; | |||
} | } | ||
.subTitle { | |||
text-align:center; | |||
font-size:1rem; | |||
} | } | ||
#statsline { | |||
text-align:center; | |||
margin-top:5px; | |||
margin-bottom:16px; | |||
} | } | ||
. | |||
.menuTitle { | |||
color:black; | |||
justify-content:space-between; | justify-content:space-between; | ||
font-size: | font-size:1rem; | ||
position:sticky; | position:sticky; | ||
top:0; | top:0; | ||
background-color:#D9D9D4; | background-color:#D9D9D4; | ||
text-align:center; | |||
} | } | ||
.search-mobile { | |||
display:none !important; | |||
} | |||
.map-mobile { | |||
display:none; | |||
} | |||
.searchboxContainer { | |||
display:flex; | |||
justify-content:center; | |||
align-items: center; /* removed from mobile */ | |||
font-size:1rem; | |||
margin-top:10px; /* removed from mobile */ | |||
} | } | ||
. | |||
.tips { | |||
text-align:right; | |||
font-size:1rem; | |||
} | } | ||
.buttonContainer { | |||
} | } | ||
/* any element with id ending in '_button' */ | |||
[id$="_button"] { | |||
background-color:#e1ebee96; | |||
background-color:# | |||
position:absolute; | position:absolute; | ||
border:1px solid black; | border:1px solid black; | ||
text-align:center; | text-align:center; | ||
font-size: | font-size:1rem; | ||
padding:5px; | padding:5px; | ||
cursor:pointer; | cursor:pointer; | ||
border-radius:5px; | border-radius:5px; | ||
Line 187: | Line 182: | ||
color:#004d99; | color:#004d99; | ||
} | } | ||
/* | |||
# | [id$="_button"]:hover { | ||
background-color:white; | |||
color:blue; | |||
} | |||
#all_countries_button:hover { | |||
background-color:white; | |||
color:blue; | |||
} | |||
/* special extra rules for all_countries button */ | |||
#all_countries_button { | |||
background-color:#0f5ba9; | background-color:#0f5ba9; | ||
font-size:1.2rem; | |||
font-size:1. | |||
color:white; | color:white; | ||
width:220px; | width:220px; | ||
} | } | ||
/* button placement */ | |||
#all_countries_button {top:25%; left:40%;} | |||
#africa_button {top:65%; left:51%;} | |||
#asia_button {top:45%; left:73%;} | |||
#british_isles_button {top:42%; left:38%;} | |||
#caribbean_button {top:60%; left:29%;} | |||
#central_america_button {top:63%; left:17%;} | |||
#europe_button {top:44%; left: 52%;} | |||
#middle_east_button {top:56%; left:57%;} | |||
#north_america_button {top:40%; left:22%;} | |||
#pacific_button {top:82%; left:85%;} | |||
#south_america_button {top:73%; left:27%;} | |||
/* Callout is the 'Guided Research' element */ | |||
.callout { | |||
position:absolute; | |||
top:15%; | |||
left:80%; | |||
width:160px; | |||
text-align:center; | text-align:center; | ||
font-size: | font-size:1rem; | ||
cursor:pointer; | cursor:pointer; | ||
border-radius:5px; | border-radius:5px; | ||
box-shadow: | box-shadow:5px 5px 2px #888888; | ||
color:#004d99; | color:#004d99; | ||
width:150px | background-color:white; | ||
padding:5px; | |||
border:1px solid gray; | |||
} | |||
.calloutHeading { | |||
color:orange; | |||
font-size:1.3rem; | |||
font-family:museo; | |||
} | |||
.guided_research_link { | |||
border:1px solid black; | |||
text-align:center; | |||
font-size:1rem; | |||
cursor:pointer; | |||
border-radius:5px; | |||
box-shadow:2px 2px 2px #888888; | |||
color:#004d99; | |||
width:150px | |||
} | } | ||
# | |||
/* ------------------menus -------------------*/ | |||
#menu { | |||
position:absolute; | |||
top:125px; | |||
left:0; | |||
width:210px; | |||
height:500px; | |||
overflow-y:scroll; | |||
display:block; | |||
color:#aba8a0; | |||
background-color:white; | background-color:white; | ||
color: | border:1px solid black; | ||
z-index: 10; | |||
} | |||
.exit { | |||
color: red; | |||
cursor: pointer; | |||
float: right; | |||
} | |||
.exit:hover { | |||
font-weight: bold; | |||
} | |||
/** This hack is to eliminate shifting due to :hover */ | |||
span.exit::before { | |||
display: block; | |||
content: "foo"; | |||
font-weight: bold; | |||
height: 0; | |||
overflow: hidden; | |||
visibility: hidden; | |||
} | } | ||
#menu > ul { | |||
list-style-type: none; | |||
padding: 0; | |||
margin-left: 20px; | |||
} | } | ||
#menu ul li:hover { | |||
background-color:#ecebea; | background-color:#ecebea; | ||
} | } | ||
/* There are two separate classes, but we don't differentiate their styles */ | |||
.countrymenu, .statemenu { | |||
padding:3px; | |||
top:0; | |||
background-color:#D9D9D4; | |||
color:black | |||
} | |||
/* color menu spans to look like a link */ | |||
.fakelink { | |||
color:#004d99; | |||
} | |||
.menulink { | |||
font-size: 1rem; | |||
cursor: pointer; | |||
margin-left:-1.2rem; | |||
} | |||
.menulink::before { | |||
content: "> "; | |||
} | |||
.menulink:hover { | |||
background-color: white; | |||
} | |||
/*--------------------------main page coding-----------------*/ | |||
/* make sure missing pages remain colored correctly after visiting */ | /* make sure missing pages remain colored correctly after visiting */ | ||
a.new:visited, #p-personal a.new:visited { | a.new:visited, #p-personal a.new:visited { |
edits