Commit 5cce365f authored by Evonne Cheung's avatar Evonne Cheung Committed by Robert Lyon
Browse files

Adding in the mahara theme - work done by Evonne



behatnotneeded

Change-Id: I59225b90eaab72dcf087c9c11d427354d6cbe8c2
Signed-off-by: default avatarRobert Lyon <robertl@learn-design.catalyst.net.nz>
parent fb51a0d1
/*
* Base structure
*/
body {
max-width:100%;
overflow-x:hidden;
@media (min-width: 768px) {
padding-top: 65px; // Move down content because we have a fixed navbar on desktop/tablet that is 50px tall
}
&.admin {
background-color: lighten($brand-default, 5%);
@media (max-width: $screen-sm-min) {
.container {
margin-top: 20px;
}
}
}
.main {
margin: 0px 0 20px;
padding-top: 20px;
padding-bottom: 0;
@media (min-width: $screen-sm-min) {
padding-bottom:50px;
}
}
}
.main {
max-width: 100%;
}
.content-main {
@media (min-width: 768px) {
margin-left: 250px;
}
}
.sidebar {
padding-top: 0;
@media (min-width: $screen-sm-min) {
padding-top: 30px;
}
}
// Expose a section of the page
.expose {
background-color: $brand-default;
margin-bottom: 40px;
margin-top: -109px;
padding: 40px 0px 20px;
}
.subpage {
clear:both;
}
.wallpost:first-child {
margin-top: 20px;
}
.columns3,
.columns4,
.columns5 {
.wallpost .panel-heading {
font-size: 12px;
padding-right:40px;
h4 {
font-size: 12px;
}
}
}
.viewfooter {
clear: both;
}
// Needed to clear the float when dropzone is visible
.blocktype {
&.ui-draggable:before {
display: none;
}
}
.blockinstance {
clear: both;
.list-group{
margin-bottom: 0;
}
}
.profile-block.panel-heading {
fonf-family: $headings-font-family;
padding:0;
background: $mahara-green;
color: #FFF;
.username {
padding: 10px 75px 10px 15px;
display: block;
&:hover {
text-decoration: underline;
}
}
.user-icon {
z-index: 5;
width: 60px;
height: 60px;
position: absolute;
right: 10px;
top: 10px;
padding: 5px; // override more specific padding
img {
display: table-cell;
vertical-align: middle;
}
}
a {
&:after {
@include transition(opacity 0.5s);
@include fa-icon();
border-radius: 3px;
bottom: 0px;
background: darken(#f5f5f5, 1%);
color: #333;
padding:3px;
content: "\f040";
display: block;
opacity:0;
position: absolute;
right: 0px;
visibility: hidden;
}
}
}
.user-panel {
> .panel-default {
border: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
}
\ No newline at end of file
/*
* Primary navigation menu
*/
.main-nav {
padding-top: 30px;
@media (max-width: $screen-sm-min) {
padding-top: 0;
}
&.dropdown-adminnav {
background: none;
.nav > .active > a,
.nav > .active > a:hover,
.nav > .active > a:focus {
background-color: #f9f9f9;
}
}
.container {
@media (max-width: $screen-sm-min) {
padding:0;
}
}
ul {
min-width: 0;
margin:0;
@media (min-width: $screen-md-min) {
margin: 0px -5px 0px -15px;
}
@media (min-width: $screen-sm-min) and (max-width: $screen-md-min - 1) {
margin: 0px -5px 0px 0px;
}
}
.navbar-header{
margin:0;
@media (min-width: $screen-sm-min) {
margin-left:-15px;
}
@media (min-width: $screen-md-min) {
+ ul {
margin-left:0;
}
}
}
li {
margin: 0;
}
.navbar-brand {
padding: 10px 15px;
margin-left: -10px;
width:100%;
font-style: italic;
font-size: $font-size-base;
@media (min-width: $screen-sm-min) {
width:auto;
margin-left:0;
}
.icon {
top:3px;
}
a {
color: $mahara-green !important;
}
}
.nav > li > a {
border-top:1px solid darken($navbar-inverse-bg, 2%);
border-bottom:1px solid lighten($navbar-inverse-bg, 2%);
padding: 10px 29px;
line-height: 20px;
font-weight:normal;
@media (min-width: $screen-sm-min) {
border:none;
padding: 10px 29px;
}
@media (min-width: $screen-sm-min) and (max-width: $screen-md-min - 1) {
padding: 15px 10px;
}
&:hover, &:focus {
text-decoration:none;
}
}
// Only shown on mobile, or when dropdowns are turned on
.child-nav {
background-color: darken($navbar-inverse-bg, 5%);
border-top:0;
min-width: 200px;
max-width: 100%;
overflow: hidden;
padding: 15px 17px;
li {
display: block;
a { //styles that need to override bootstrap specificity
padding: 10px;
font-weight: normal;
&:hover, &:focus {
text-decoration:none;
background-color: $mahara-green;
color: #FFFFFF;
}
}
}
// If this link is the current page or section
.active > a {
font-weight: bold;
background-color: $mahara-green;
color: #FFFFFF;
@media (min-width: $screen-sm-min) {
background-color: $mahara-green;
&:hover {
color: #FFFFFF;
}
}
&:hover, &:focus {
background-color: darken($mahara-green, 5%);
}
}
a { // styles that don't need to override bootstrap specificity
display:block;
width:100%;
@include text-overflow;
@media (min-width: $screen-sm-min) {
border:0;
max-width: 300px;
color:$link-color;
}
}
}
// on hover, if dropdown. show
@media (min-width: $screen-sm-min) {
ul.nav > li:hover > ul.has-dropdown.child-nav {
display: block;
visibility: visible;
}
}
.has-dropdown {
@media (min-width: $screen-sm-min) {
max-width: 350px;
position: absolute;
top: 100%;
left: 0;
z-index: $zindex-dropdown;
display: none; // none by default, but block on "open" of the menu
float: left;
padding: 5px 0;
margin: 0 0 0 -1px; // override default ul
list-style: none;
font-size: $font-size-base;
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
background-color: $dropdown-bg;
border: 1px solid $dropdown-fallback-border; // IE8 fallback
border: 1px solid $dropdown-border;
border-top:0;
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
background-clip: padding-box;
// Links within the dropdown menu
> li a {
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: $line-height-base;
white-space: nowrap; // prevent links from randomly breaking onto new lines
}
> li > a {
color: $dropdown-link-color;
}
.dropdown-tertiary {
padding:0;
margin: 0;
font-size: $font-size-base - 2;
}
}
}
}
.dropdown-menu .btn-link:not(.btn-link-danger) {
color: $text-color;
}
.minor-nav {
border-radius: 0;
margin-top:-1px; //overlay bottom border of main nav
border-top:0;
.nav {
margin:7px 15px 7px 0;
>li {
margin: 3px 0 3px 3px;
>a {
font-size: 13px;
padding: 3px 5px;
}
}
}
}
.nav-tabs {
&.nav {
li > a {
padding: 8px 10px;
font-size: $font-size-small + 1;
}
}
}
// hide unwanted elements
.nav-tabs + .submit,
.tab-content legend {
display: none;
}
/*
* Modificatiosn to bootstraps default navbar components
*/
.navbar.header {
margin-bottom:0;
padding: 7px 0 0 0;
}
body:not(.admin) .navbar.minor-nav {
margin-bottom: 0;
}
.navbar-fixed-top {
position:relative;
border: 0;
@media (min-width: $screen-sm-min) {
position:fixed;
}
}
.navbar-nav {
font-size:14px;
margin: 7px -5px;
@media (min-width: $screen-sm-min) {
float:none;
margin: 0px -15px;
}
}
.navbar-collapse {
padding:0;
}
.navbar-form {
padding-right: 0;
@media (max-width: $screen-sm-min - 1) {
width:100%;
margin:0;
padding: 10px 0;
.container > & {
margin: 0 auto;
}
}
@media (min-width: $screen-sm-min) {
@include transition-duration(0.3s);
}
input[type=submit] {
display: none !important; // temp
}
}
.nav>li>a {
padding: 10px 5px;
@media (min-width: $screen-sm-min) {
padding: 10px 15px;
}
}
.navbar-inverse {
background-image: url(../images/main-nav-bkgd.png);
background-repeat: repeat;
background-position: left top;
.navbar-nav {
> li {
> a {
font-family: $font-family-serif;
font-size: 16px;
}
> a:hover,
> a:focus {
background-color: $navbar-default-link-hover-bg;
color: $navbar-default-link-hover-color;
}
}
>.active {
> a,
> a:hover,
> a:focus {
background-color: $navbar-default-link-active-bg;
color: $navbar-default-link-active-color;
@media (max-width: $screen-sm-min - 1) {
border-top-color: rgba(darken($navbar-inverse-bg, 7%), 0.5);
color: $navbar-inverse-link-hover-color;
background-color: $navbar-inverse-link-hover-bg;
}
}
}
}
}
.navbar-default .navbar-brand {
height: auto;
line-height: 20px;
color: $mahara-green;
font-size: 13px;
}
\ No newline at end of file
.tab-content {
padding-top: $grid-gutter-width;
}
\ No newline at end of file
.top-nav.navbar-nav {
float: right;
margin: 4px 5px 0 0;
padding: 0 10px;
@media (min-width: $screen-sm-min) {
margin-top: 7px;
clear:none;
float:none;
margin-right: 0;
margin-left:0;
background-color: transparent;
padding-right:0;
}
@media (min-width: $screen-md-min) {
padding:0;
font-size: 13px;
}
> li {
display: inline-block;
float: left;
> a {
padding: 10px 5px;
@media (min-width: $screen-md-min) {
padding: 10px 15px;
}
&:hover {
background: transparent;
color: lighten($mahara-green, 8%);
}
}
}
.has-icon {
.nav-title{
display:none; //if icon - hide title on mobile
@media (min-width: $screen-md-min) {
display:inline-block;
}
}
.icon {
margin-right:5px;
}
}
}
// Display objects in panels differently
.panel-body {
ul {
font-size: 0.9em;
&:not(.list-unstyled):not(.unstyled):not(.select2-selection__rendered) {
padding-left: 20px;
margin: 0 0 20px;
&.select2-choices {
margin-bottom: 0;
}
}
}
.sidebar & .form-group {
padding: 0;
}
.form-group.login{
padding: 0;
.form-group {
padding: 0;
}
}
> .panel-footer,
form .panel-footer {
clear:both;
margin: 15px -15px -16px; //alter padding for panel footers inside panel-body (needed for some forms) c.f. login form
}
}
This diff is collapsed.
/*
* Input boxes, links, or buttons positioned over the panel header
*/
.panel-control {
display: block;
font-size: $font-size-base - 2;
margin: 0;
min-width: 0;
padding: 12px 0 12px 15px;
position: absolute;
width: auto;
z-index: 5;
&.panel-header-action {
right:0;
top:0;
.btn {
padding-top:0;
}
}
&.panel-header-form-actions {
right:0;
top:0;
padding:0;
.btn {
}
}
input {
margin-top:0;
}
.control {
display: inline-block;
.control-wrapper {
display: inline-block;
}
}
.content-expanded {