Commit 7c7f4c3d authored by Toni Gardiner's avatar Toni Gardiner Committed by Robert Lyon
Browse files

Created new Ocean theme

  behatnotneeded

Change-Id: Ieeae5a6e915e92d243389438f095a1927d38418d
parent 6a5939ca
style/
\ No newline at end of file
This diff is collapsed.
// Generic custom css (anything longer than a screen view should have its own component file)
// link hover color
// override bootstrap's lighten() as it looks a bit odd with the blue used for $brand-primary
a,
.text-link,
.list-group a.text-link,
.list-group-item-heading a,
.collapsible legend h3 .secondary-link,
.collapsible legend h4 .secondary-link,
.panel-heading .secondary-link,
.pagination > li > a,
.pagination > li > span {
&:hover,
&:focus {
color: $brand-primary-dark;
}
}
.list-group-item-heading a:hover .metadata,
.list-group-item-heading a:focus .metadata {
color: $brand-primary-dark;
}
// panels
.panel-secondary .panel-heading-nested,
.panel-secondary >.panel-heading {
border-left: 0;
background-color: transparent;
}
// admin view - kept all together here for this theme
body.admin {
background-color: #fff; // _layout.scss
@media (min-width: $screen-sm-min) {
background-color: $gray-lighter;
}
&:before {
@include gradient-vertical($start-color: $gray, $end-color: $gray-lighter, $start-percent: 10%, $end-percent: 100%);
}
.navbar { // _navbar.scss
margin-bottom: 0px;
}
.navbar-default {
background-color: $gray;
&.minor-nav { // minor-nav.scss
background-color: transparent;
}
}
.main {
padding-top: 20px;
}
}
.header { // _header.scss
.admin-title {
background-color: transparent;
padding-left: 5px;
&:before,
&:after {
display: none;
}
}
}
.loading-inner {
background: transparent;
.icon-spinner {
color: #fff;
}
}
// overriding/additional styles for theme
.search-toggle {
color: #fff;
}
@media (max-width: $screen-xs-max) {
.navbar-toggle.navbar-showchildren,
.navbar-toggle.navbar-showchildren:hover,
.navbar-toggle.navbar-showchildren:focus {
background-color: $brand-primary-faint;
@include border-top-radius(4px);
}
}
\ No newline at end of file
// overriding/additional styles for theme
// even out boxes fix
@media (min-width: $screen-sm-min) {
.dashboard-widget-container .thumbnail-widget {
width: 32%;
padding: 0;
margin-left:2%;
&.first {
margin-left: 0;
}
}
}
.dashboard-widget-container {
overflow: visible;
.widget-heading {
border: 0;
padding-top: 0;
padding-bottom: 0;
background-color: transparent;
height: auto;
@media (min-width: $screen-sm-min) {
margin-top: 20px;
}
@media (min-width: $screen-lg-min) {
margin-top: 40px;
}
h2 {
font-weight: 500;
display: inline-block;
color: $gray-dark;
@media (min-width: $screen-lg-min) {
font-size: 36px;
}
}
p {
font-family: $font-family-serif;
font-size: 16px;
color: $gray;
display: block;
@media (min-width: $screen-lg-min) {
font-size: 20px
}
}
}
.circle-bg {
float: none;
background-color: transparent;
display: inline-block;
width: auto;
height: auto;
.icon {
color: $brand-primary;
@media (min-width: $screen-lg-min) {
font-size: 36px
}
}
}
.widget-detail {
border: 0;
}
.thumbnail-widget {
background-color: $brand-primary-faint;
text-align: center;
@media (min-width: $screen-sm-min) {
height: 223px;
border-radius: 50% !important;
}
@media (min-width: $screen-lg-min) {
height: 271px;
}
}
.logged-in {
.widget-heading {
h2 {
font-weight: 500;
}
p {
font-size: 16px;
color: $gray;
@media (min-width: $screen-lg-min) {
font-size: 20px
}
}
}
.widget-detail {
opacity: 1;
margin-top: 0;
background-color: transparent;
border: 0;
height: auto;
@media (min-width: $screen-lg-min) {
padding-left: 30px;
padding-right: 30px;
}
p {
color: $gray-dark;
}
}
&.thumbnail-widget:hover {
background-color: $brand-primary-light;
transition: all 0.2s ease 0s;
}
}
.logged-in:hover {
.widget-heading {
background-color: transparent;
}
.widget-detail {
margin-top: 0;
height: auto;
p {
color: $gray-dark;
}
}
}
}
\ No newline at end of file
// overriding/additional styles for theme
body {
> .container {
background-color: #fff;
}
@media (min-width: $screen-sm-min) {
&:before {
content:"";
@include gradient-vertical($start-color: $brand-primary, $end-color: #fff, $start-percent: 10%, $end-percent: 100%);
display: block;
width: 100%;
height: 550px;
position: absolute;
z-index: -1;
}
}
}
\ No newline at end of file
// Primary Nav
// overriding/additional styles for theme
.main-nav {
> .container {
background-color: $brand-primary-light;
@media (min-width: $screen-sm-min) {
background-color: $brand-primary-mid;
padding-left: 0;
padding-right: 0;
@include border-top-radius(8px);
}
@media (min-width: $screen-desktop) {
padding-left: 15px;
padding-right: 15px;
}
}
.navbar-brand {
@include border-top-radius(8px);
}
.nav > li > a {
@media (max-width: $screen-xs-max) {
border-top: 1px solid #fff;
border-bottom: 0;
}
@media (min-width: $screen-sm-min) {
@include border-top-radius(8px);
}
}
// Only shown on mobile, or when dropdowns are turned on
@media (max-width: $screen-xs-max) {
.child-nav {
background-color: $brand-primary-faint;
padding-top: 2px;
padding-bottom: 0;
li {
a {
padding-left: 40px;
background-color: $brand-primary-faint;
&:before {
content: "-";
display: block;
position: absolute;
left: 29px;
}
&:hover,
&:focus,
&:active {
background-color: #fff;
}
}
}
// If this link is the current page or section
.active > a {
color: $gray-dark;
border-color: #fff;
background-color: #fff;
&:hover,
&:focus,
&:active {
border-color: #fff;
background-color: #fff;
}
}
}
}
}
\ No newline at end of file
// overriding/additional styles for theme
.minor-nav {
background-color: transparent;
border: 0;
min-height: 0;
> .container {
background-color: $brand-primary-light;
padding-left: 0;
padding-right: 0;
}
.nav { //ul
clear: both;
margin: 0;
> li {
margin-bottom: 0;
margin-left: 0;
> a {
color: $gray-dark;
padding: 5px 10px 8px;
@include border-top-radius(4px);
@media (min-width: $screen-md-min) {
padding-left: 20px;
padding-right: 20px;
}
&:hover {
color: $gray-dark;
background-color: $brand-primary-faint;
}
}
}
> .active > a,
> .active > a:hover {
color: $gray-dark;
background-color: #fff;
}
}
}
\ No newline at end of file
// overriding/additional styles for theme
.navbar.header {
border: 0;
}
.top-nav.navbar-nav {
background-color: transparent;
}
@media (max-width: $screen-xs-max) {
.navbar-inverse .navbar-nav {
> li > a {
&:hover,
&:focus,
&:active {
background-color: $brand-primary-faint;
}
}
>.active > a {
color: $gray-dark;
border-color: #fff;
background-color: #fff;
&:hover,
&:focus,
&:active {
border-color: #fff;
background-color: #fff;
}
}
}
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
background-color: transparent;
}
\ No newline at end of file
// overriding/additional styles for theme
h2.panel-heading,
h3.panel-heading,
h4.panel-heading,
h5.panel-heading,
legend.panel-heading {
font-size: 22px;
}
.sidebar {
h2.panel-heading,
h3.panel-heading,
h4.panel-heading,
h5.panel-heading,
legend.panel-heading {
font-size: 15px;
font-family: $font-family-sans-serif;
}
}
\ No newline at end of file
/**
* Stylesheet index for Mahara's Bootstrap theme.
*
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
*
* This file is licensed under the same terms as Mahara itself
*/
// Import our theme based variables (colors, fonts, padding, etc)
@import "utilities/brand-variables"; // Import our brand variables
@import "utilities/bootstrap-variables"; // ...and our custom bootstrap variables file
@import "utilities/custom-variables"; // ...and our custom variables file
// Import raw default variables (colors, fonts, padding, etc)
@import "../../raw/sass/utilities/theme-variables";
@import "../../raw/sass/utilities/bootstrap-variables";
@import "../../raw/sass/utilities/custom-variables";
@import "../../raw/sass/utilities/bootstrap-index"; // bootstrap scss dependency file
@import "../../raw/sass/utilities/index"; // raw sass files (if you want heavier customisation you can copy this file and replace partials with your own sass)
// ----- Custom files -----
@import "typography/fonts"; // Import custom fonts
@import "layout/layout"; // Custom layout (color)
@import "layout/nav/main-nav"; // Custom navigation
@import "layout/nav/navbar"; // Custom navigation
@import "layout/nav/minor-nav"; // Custom navigation
@import "layout/panel/panel-heading"; // Custom panel header
@import "components/toggles"; // Custom toggle
@import "features/dashboard-widget"; // Custom dashboard
@import "custom.scss"; // Custom theme additional
// include custom font
@font-face {
font-family: 'Oswald';
src: url('../fonts/oswald/oswald-regular.eot');
src: url('../fonts/oswald/oswald-regular.eot') format('embedded-opentype'),
url('../fonts/oswald/oswald-regular.woff2') format('woff2'),
url('../fonts/oswald/oswald-regular.woff') format('woff'),
url('../fonts/oswald/oswald-regular.ttf') format('truetype'),
url('../fonts/oswald/oswald-regular.svg#oswald-regular') format('svg');
font-weight: normal;
font-style: normal;
}
\ No newline at end of file
This diff is collapsed.
/*
* Brand colours should be defined here, and (ideally) used only in the global variables file (bootstrap-variables)
*/
$mahara-green: #335804;
$mahara-green-light: #5C8727;
$mahara-green-lime: #B9CB2E;
$mahara-green-bright: darken(#93be42, 5%);
$mahara-blue: darken(#22C49C, 5%);
$mahara-dark-grey: #333;
$mahara-dark-brown: #211c00;
// custom color variables for theme based on $brand-primary (#20738F)
$brand-primary-dark: #629db0; // $brand-primary 70%
$brand-primary-mid: #93becc; // $brand-primary 50%
$brand-primary-light: #bed8e1; // $brand-primary 30%
$brand-primary-faint: #e9f2f5; // $brand-primary 10%
\ No newline at end of file
// Custom component variables (non-bootstrap components)
//Arrow compoanent variables
$arrow-color: $brand-primary;
$arrow-text-color: #fff;
$arrow-link-color: #fff;
$arrow-link-hover-color: $text-color;
$arrow-link-active-color: $brand-primary;
// color for the secondary title in sections (cf. groups)
$section-heading-color: #999;
$admin-title-color: #fff;
$admin-title-bg: $brand-primary;
$dashboard-widget-bg: darken(#f9f9f9, 2%);
$dashboard-widget-color: $brand-primary;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment