less/angular/pages/competency.less
/*********************************************************
* Competency pages
*/
.competency-page {
line-height: 1.8;
font-size: 1.6rem;
h3 {
font-size: 2.4rem;
font-weight: 200;
line-height: 1.3;
}
h4 {
font-size: 1.3rem;
text-transform: uppercase;
color: #999;
border-bottom: 1px solid #CCC;
padding-bottom: 0.5em;
letter-spacing: 0.05em;
}
.lead {
margin-top: 1em;
font-size: 1.8em;
}
.header-section {
position: relative;
margin-bottom: 40px;
font-weight: 200;
color: #999;
font-size: 4.5rem;
.fa {
background: @lightgrey;
color: @brand-secondary;
border-radius: 50%;
padding: 30px;
font-size: 0.6em;
vertical-align: middle;
margin-right: 5px;
}
}
.header-divider {
margin: 20px 0;
text-align: center;
border-bottom: 0;
white-space: nowrap;
&:before,
&:after {
content: '';
display: inline-block;
height: 1px;
width: 100px;
background: #CCC;
vertical-align: middle;
}
&:before {
margin-right: 10px;
}
&:after {
margin-left: 10px;
}
}
.main-competency {
padding-bottom: 80px;
}
.ctas {
padding: 40px 0;
}
.resources-link {
&:link, &:visited, &:hover, &:active, &:focus {
color: @blue;
}
display: inline-block;
font-size: 1.1em;
font-weight: bold;
margin-left: 1.2rem;
text-transform: none;
&:after {
.icon(@fa-var-chevron-right);
font-size: 0.9em;
margin-left: 0.5rem;
}
}
// Fixed side menu - Discover, Make, Teach
.competency-page-menu {
&.affix {
top: 50px;
}
li {
transition: opacity 0.3s ease;
opacity: 0.5;
&.active,
&:hover {
opacity: 1;
}
> a:hover {
background: none;
}
}
}
img {
display: block;
height: auto;
margin: 0 auto 0 0;
max-width: 100%;
}
}
// Section anchors - allows for $anchorScroll to work with an offset
.section-anchor {
display: block;
position: relative;
text-indent: -99999px;
height: 1px;
top: -65px;
}
.list.list-subway {
padding-left: 40px;
font-size: 1.8rem;
> li {
color: inherit;
padding-bottom: 20px;
padding-left: 40px;
border-left: 5px solid;
// Needed for resetting text colour
> div {
color: #555;
}
h2 {
margin-top: 0;
}
&:first-child:before {
border-width: 16px;
}
&:before {
content: '';
width: 31px;
height: 31px;
padding: 0;
border-radius: 50%;
right: auto;
left: -3px;
color: inherit;
border: 2px solid;
background: white;
}
&:last-child {
border-color: transparent;
}
}
figcaption {
font-size: 0.875em;
}
}
.btn-create-kit {
width: 80px;
height: 80px;
line-height: 80px;
font-size: 2rem;
padding: 0;
margin-bottom: 15px;
border: 1px dashed #999;
color: #999;
}
.well-create-kit,
.well-grey {
box-shadow: none;
border: none;
background: @lightgrey;
color: #999;
padding: 40px;
margin: 30px 0;
h1, h2, h3 {
margin: 0;
}
p {
margin: 1rem 0;
}
.btn {
margin-top: -5px;
}
}
// The skills for each competency
// This is copied from badges
.list.list-checkmarks {
line-height: 1.6;
background: #F5F5F5;
list-style: none;
padding: @grid-gutter-width;
border-top: 1px solid darken(#F5F5F5, 5%);
border-bottom: 1px solid darken(#F5F5F5, 5%);
> li {
padding-left: 1em;
margin-bottom: 1em;
position: relative;
&:last-of-type {
margin-bottom: 0;
}
&:before {
color: @green;
position: absolute;
left: 0;
.icon(@fa-var-check);
}
}
}
footer.footer-competency {
color: white;
padding: 20px 20px 80px;
h1, p {
color: fadeout(@white, 3%);
transition: color 100ms;
}
&:hover, &:active {
h1, p {
color: @white;
}
}
h1 {
font-weight: 200;
margin: 20px 0;
}
h4 {
color: white;
border: none;
}
.fa {
margin-right: 10px;
}
}
.panel-navy {
margin-top: 31px;
background: @navy;
color: #FFF;
h2 {
font-size: 2.2em;
margin-top: 0;
}
h1, h2, h3, h4, label {
font-weight: normal;
}
input.form-control {
&:focus {
outline: none;
border-color: @blue;
}
}
.panel-body {
padding: 40px;
font-size: 1.8rem;
.form-group {
padding: 5px;
}
}
// Close button
.close-panel {
background: none;
float: right;
color: fade(#FFF, 80%);
margin-top: -20px;
margin-right: -20px;
&:hover {
color: #FFF;
}
}
input#language {
width: 50%;
}
.panel-body label {
padding: 5px 0;
}
}
// Font size override
i.fa.fa-search,
i.fa.fa-picture-o,
i.fa.fa-share-square-o {
font-size: 5.5rem;
padding: 5px;
}