Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
492 lines (471 sloc) 10.1 KB
@main-text-color: #5a6579;
@green: #cef200;
@orange: #f08c00;
@blue: #36cdc4;
@yellow: #ffec40;
.rounded-corners (@radius: 5px) {
-moz-border-radius: @radius;
-webkit-border-radius: @radius;
border-radius: @radius;
}
.image-replace (@url, @width, @height) {
text-indent: -999em;
overflow: hidden;
background: url(@url) no-repeat;
height: @height;
width: @width;
}
.transition (@params) {
-moz-transition: @params;
-webkit-transition: @params;
transition: @params;
}
.box-shadow(@params) {
-webkit-box-shadow: 0 0 4px @orange;
-moz-box-shadow: 0 0 4px @orange;
box-shadow: 0 0 4px @orange;
}
a { text-decoration: none; }
em { font-style: normal; }
em[role="highlight-1"] { color: @green; }
em[role="highlight-2"] { color: @blue; }
em[role="highlight-3"] { color: @orange; }
em[role="highlight-4"] { color: @yellow; }
body {
background: url('/images/bg.stripy.png');
margin: 0; padding: 0;
color: @main-text-color;
font-family: "Arvo", "MuseoSlab 500", "Georgia";
}
input { font-family: "Arvo", "MuseoSlab 500", "Georgia"; }
div[role="container"] {
margin: auto;
width: 1000px;
}
nav[role="pager"] {
a {
width: 30px;
background: #fff url('/images/icon.back.png') no-repeat center 0;
padding-top: 50px;
margin: 235px 0 0 0;
color: #a9b2c1;
}
a:hover { background-color: @green; color: #5a6579; }
a[role="back"] {
float: left;
}
a[role="next"] {
background-image: url('/images/icon.forward.png');
float: right;
}
}
nav[role="language"] {
background: #fff url('/images/icon.world.png') no-repeat 5px center;
line-height: 24px;
overflow: visible;
text-align: right;
position: absolute;
z-index: 3 !important;
font-size: 13px;
margin-left: 789px;
padding: 5px 7px 5px 26px;
a { margin: 0 0 0 5px; }
}
header[role="main"] {
font-size: 17px;
height: 218px;
input::-webkit-input-placeholder { color: #fff;}
input:-moz-placeholder { color: #fff; }
h1 { .image-replace('/images/logo.png', 262px, 218px); position: absolute; z-index: 2;}
nav {
position: absolute;
top: 0;
z-index: 1;
}
nav > ul {
margin-top: 90px;
line-height: 42px;
height: 42px;
width: 100%;
background: #fff;
list-style: none;
li:first-child { margin-left: 0; padding-left: 190px;}
li {
float: left;
margin-left: 7px;
padding: 0;
a {
padding: 0px 10px;
color: #a9b2c1;
}
a:hover {
background: #36cdc4;
color: #fff;
}
ul {
display: none;
position: relative;
left: -26px;
top: -10px;
background: #36cdc4 url('/images/bg.arrows.png') no-repeat;
padding: 10px 30px 0 8px;
}
ul li {
a { color: #fff }
font-size: 16px;
margin: 0;
float: none;
height: auto;
}
input {
background: #bec8d9 url('/images/icon.loupe.png') no-repeat 100px center;
border: 0;
color: #fff;
height: 42px;
width: 88px;
line-height: 42px;
padding: 0 24px 0;
margin: 0;
position: relative;
top: -2px;
}
} /* end nav > ul li */
li[role="login-link"] {
margin-left: 0;
a {
color: @main-text-color;
display: block;
height: 42px;
text-align: center;
padding: 0 24px 0;
width: 88px;
background: #ffde00;
}
}
} /* end nav > ul*/
} /* header */
body[role="inner"] {
header[role="main"] {
nav > ul { margin-top: 40px; }
height: 120px;
h1 {
position: absolute;
background-position: center center;
height: 120px;
z-index: 2;
}
}
}
section[role="masthead"] {
background: #fff;
padding: 20px 0 40px;
nav {
float: right;
text-align: left;
width: 275px;
a {
display: block;
font-size: 47px;
text-transform: uppercase;
text-decoration: none;
padding: 17px 40px 20px;
line-height: 47px;
width: 215px;
}
a[role="find-course"] {
color: #fff;
background: url("/images/bg.find-your-course.png") no-repeat;
height: 175px - 37px;
margin-bottom: 5px;
&:hover { background-position: 0 -175px; }
}
a[role="run-course"] {
margin-left: 7px;
padding-left: 33px;
background: url("/images/bg.run-a-course.png") no-repeat;
color: #5a6579;
height: 121px - 37px;
&:hover { background-position: 0 -121px; }
}
}
h1 {
color: #a9b2c1;
font-size: 58px;
font-weight: normal;
line-height: 65px;
text-transform: uppercase;
padding: 15px 0;
width: 720px;
height: 200px;
overflow: visible;
}
p {
margin-left: 7px;
font-size: 20px;
width: 640px;
line-height: 30px;
}
}
section[role="course-search"] {
background: #fff;
padding-bottom: 85px;
input::-webkit-input-placeholder { color: #fff;}
input:-moz-placeholder { color: #fff; }
input {
.transition(all 0.2s);
background: #bec8d9;
border: 2px solid @orange;
color: #fff;
width: 600px;
padding: 7px 18px;
font-size: 17px;
background: #bec8d9 url('/images/icon.loupe.png') no-repeat 605px center;
outline: none;
&:focus {
.transition(all 0.2s);
.box-shadow(0 0 4px @orange);
}
}
ul[role="languages"] {
overflow: hidden;
font-size: 17px;
list-style: none;
margin: 0; padding: 0;
position: relative;
top: 31px;
left: 460px;
width: 200px;
li:first-child { margin-left: 0 }
li { display: inline; margin-left: 10px;}
a { color: white; }
a.active { text-decoration: underline; }
}
nav {
margin-top: 5px;
float: right;
padding-right: 20px;
> * { float: left; }
label { line-height: 30px }
a {
@size: 30px;
display: block;
height: @size;
width: @size;
line-height: @size;
text-align: center;
font-size: 20px;
color: #fff;
background: #a9b2c1;
margin-left: 10px;
.rounded-corners(@size);
&.active { background: @orange; }
&:hover { background: @green; }
}
}
}
section[role="courses"] {
ul[role="course-list"] {
position: relative;
top: -51px;
margin: 0;
padding: 0 0 0 30px;
list-style: none;
a:hover img { border-bottom: 5px solid @green; }
li {
background: #fff;
margin: 0 0 20px 10px;
float: left;
width: 300px;
img {
border-bottom: 5px solid #fff;
}
h2 {
padding: 15px;
font-size: 17px;
font-weight: normal;
}
p {
font-family: "Georgia";
padding: 5px 14px;
font-size: 16px;
line-height: 22px;
}
}
}
}
section[role="suggestion"] {
background: #fff;
clear: both;
line-height: 160px;
text-align: center;
font-size: 20px;
h2 { font-weight: normal; margin: 0;}
a {
color: @blue;
text-decoration: underline;
}
}
footer[role="main"] {
clear: both;
ul {
margin-left: 104px;
padding-bottom: 50px;
float: left;
}
ul:first-child { margin-left: 30px; }
ul > li:first-child {
font-weight: normal;
font-size: 17px;
background: #fff !important;
line-height: 40px;
padding: 0 8px;
}
ul li {
margin: 0 0 8px;
a {
font-size: 15px;
padding: 0 8px;
}
}
ul[role="about-us"] > li a { background: #cef200; }
ul[role="contact-us"] > li a { background: #4cebe2; }
ul[role="license-info"] > li a { background: #ffde00; }
ul[role="cc"] li[role="icons"] a {
display: block;
background: url('/images/cc-icons.png') no-repeat;
height: 65px;
width: 147px;
margin: 20px auto;
overflow: hidden;
text-indent: -999em;
}
}
header[role="title"] {
background: #fff;
color: #a9b2c1;
height: 160px;
padding-left: 35px;
h1 {
font-size: 58px;
font-weight: normal;
padding: 30px 0 0;
text-transform: uppercase;
}
h2 {
font-size: 20px;
font-weight: normal;
color: @main-text-color;
}
}
section[role="showcase-navigation"] {
a { position: absolute; top: 200px; }
a[role="next"] { margin-left: 650px; }
}
section[role="stories"] {
margin-left: 40px;
width: 600px;
float: left;
img { display: block; }
header h1 {
background: #fff;
font-size: 18px;
font-weight: normal;
line-height: 55px;
margin: 0;
padding: 8px;
}
section {
font-size: 16px;
font-family: "Georgia";
line-height: 24px;
margin: 8px 0 0;
background: #fff;
padding: 8px;
}
footer {
background: #fff;
margin: 0;
font-size: 16px;
padding: 8px;
text-align: right;
a[role="next"] {
color: #5a6579;
background: url('/images/icon.arrow-right.png') no-repeat right center;
padding: 0 14px 0 0;
line-height: 22px;
}
}
p { margin: 15px 0 0; }
p:first-child { margin: 0 }
}
section[role="partners"] {
clear: both;
background: #fff;
margin-top: 80px;
padding-bottom: 40px;
h1 {
font-weight: normal;
font-size: 18px;
background: #fff;
width: 80px;
top: -40px;
position: relative;
line-height: 40px;
padding: 0 11px;
}
ul li {
display: inline;
list-style: none;
margin-left: 120px;
}
ul li:first-child {
margin-left: 0;
}
}
section[role="press-sidebar"] {
float: right;
width: 300px;
ul {
font-size: 16px;
line-height: 24px;
list-style: none;
margin: 0;
li {
background: #fff;
margin: 10px 0 0;
padding: 6px;
}
a[role="more"] {
margin: 10px 0 0;
float: right;
display: block;
padding: 6px;
background: #fff;
&:hover { background: @green; }
}
}
blockquote {
font-family: Georgia;
background: url('/images/icon.quote.png') no-repeat;
margin: 0;
padding: 38px 0 0 8px;
}
cite {
background: #fff url('/images/icon.external-link.png') no-repeat right bottom;
padding: 0 18px 0 8px;
color: #aaa;
}
h2 {
background: #fff;
font-weight: normal;
font-size: 18px;
color: #5a6579;
line-height: 50px;
padding: 0 12px;
}
}
div[role="maincontent"] {
margin: auto;
width: 1000px;
min-height: 400px;
}