Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracted all the colours to colour palette css #148

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/fresh/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Main SCSS file / Fresh
========================================================================== */

//Imports
@import 'partials/colorpalette';
@import 'partials/colors';
@import 'partials/navbar';
@import 'partials/dropdowns';
Expand Down
48 changes: 24 additions & 24 deletions assets/fresh/partials/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,70 +38,70 @@ Classes to change the feel of bulma buttons
.button {
&.primary-btn {
outline: none;
border-color: $primary;
background-color: $primary;
color: $white;
border-color: $button-primary-color;
background-color: $button-primary-color;
color: $button-primary-text;
transition: all 0.5s;
&:hover {
color: $white;
color: $button-primary-text;
}
&.raised:hover {
box-shadow: 0 14px 26px -12px rgba(79, 193, 234, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(79, 193, 234, 0.2) !important;
opacity: 0.8;
}
&.btn-outlined {
border-color: $primary;
color: $primary;
border-color: $button-primary-color;
color: $button-primary-color;
background-color: transparent;
&:hover {
color: $white;
background-color: $primary;
color: $button-primary-text;
background-color: $button-primary-color;
}
}
}
&.secondary-btn {
outline: none;
border-color: $secondary;
background-color: $secondary;
color: $white;
border-color: $button-secondary-color;
background-color: $button-secondary-color;
color: $button-secondary-text;
transition: all 0.5s;
&:hover {
color: $white;
color: $button-secondary-text;
}
&.raised:hover {
box-shadow: 0 14px 26px -12px rgba(243, 146, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(243, 146, 0, 0.2) !important;
opacity: 0.8;
}
&.btn-outlined {
border-color: $secondary;
color: $secondary;
border-color: $button-secondary-color;
color: $button-secondary-color;
background-color: transparent;
&:hover {
color: $white;
background-color: $secondary;
color: $button-secondary-text;
background-color: $button-secondary-color;
}
}
}
&.button.accent-btn {
outline: none;
border-color: $accent;
background-color: $accent;
color: $white;
border-color: $button-accent-color;
background-color: $button-accent-color;
color: $button-accent-text;
transition: all 0.5s;
&:hover {
color: $white;
color: $button-accent-text;
}
&.raised:hover {
box-shadow: 0 14px 26px -12px rgba(104, 187, 136, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(104, 187, 136, 0.2) !important;
opacity: 0.8;
}
&.btn-outlined {
border-color: $accent;
color: $accent;
border-color: $button-accent-color;
color: $button-accent-color;
background-color: transparent;
&:hover {
color: $white;
background-color: $accent;
color: $button-accent-text;
background-color: $button-accent-color;
}
}
}
Expand Down
98 changes: 50 additions & 48 deletions assets/fresh/partials/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Cards and Card content styles
.feature-card {
width: 300px;
height: 320px;
background-color: #fff;
background-color: $card-feature-background;
border-radius: 3px;
margin: 0 auto;
.card-title h4 {
font-family: 'Open Sans', sans-serif;
padding-top: 25px;
font-size: 1.2rem;
font-weight: 600;
color: $blue-grey;
color: $card-feature-header;
}
.card-icon img {
height: 120px;
Expand All @@ -25,60 +25,62 @@ Cards and Card content styles
.card-text {
padding: 0 40px;
p {
color: $muted-grey;
color: $card-feature-text;
}
}
.card-action {
margin-top: 10px;
}
&.is-bordered {
border: 1px solid $fade-grey;
border: 1px solid $card-feature-border;
}
}

// Flex Card
.flex-card {
position: relative;
background-color: #fff;
border: 0;
border-radius: 0.1875rem;
display: inline-block;
position: relative;
overflow: hidden;
width: 100%;
margin-bottom: 20px;
&.raised {
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
}
.tabs {
padding: 15px 0.7rem;
}
.navtab-content {
min-height: 190px;
p {
padding: 0 0.8rem 20px;
}
}
.navigation-tabs {
&.outlined-pills .tabs.tabs-header {
&.primary {
background-color: $primary;
}
&.secondary {
background-color: $secondary;
}
&.accent {
background-color: $accent;
}
ul li a {
color: $grey-white;
}
ul li.is-active a {
color: $white;
border: 1px solid $white;
border-bottom-color: $white !important;
}
}
}
// probably irrelevant since I couldn't find the html where this is used
// I am keeping it either way, just to make sure soemthing else is not messed
// .flex-card {
// position: relative;
// background-color: #fff;
// border: 0;
// border-radius: 0.1875rem;
// display: inline-block;
// position: relative;
// overflow: hidden;
// width: 100%;
// margin-bottom: 20px;
// &.raised {
// box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
// }
// .tabs {
// padding: 15px 0.7rem;
// }
// .navtab-content {
// min-height: 190px;
// p {
// padding: 0 0.8rem 20px;
// }
// }
// .navigation-tabs {
// &.outlined-pills .tabs.tabs-header {
// &.primary {
// background-color: $primary;
// }
// &.secondary {
// background-color: $secondary;
// }
// &.accent {
// background-color: $accent;
// }
// ul li a {
// color: $grey-white;
// }
// ul li.is-active a {
// color: $white;
// border: 1px solid $white;
// border-bottom-color: $white !important;
// }
// }
// }

}
// }
14 changes: 14 additions & 0 deletions assets/fresh/partials/_colorpalette.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* ==========================================================================
Color definitions to be used for the differnt elements
========================================================================== */
$primary: #F39200;
$secondary: #4FC1EA;
$accent: #00efb7;
$background: #fff;
$navbar: #fff;
$title: #444F60;
$subtitle: darken(adjust-hue($background, 200), 33);
$light-title: lighten($title, 35);
$border: darken($background, 7.1);
$header: darken($background, 79);
$subheader: darken($background, 40);
92 changes: 65 additions & 27 deletions assets/fresh/partials/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,68 @@
/* ==========================================================================
Color variables
Color variables for edited elements
========================================================================== */
// buttons
$button-primary-color: $secondary;
$button-primary-text: $background;

$white: #fff;
$smoke-white: #fcfcfc;
$grey-white: #f2f2f2;

$primary: #4FC1EA;
$secondary: #F39200;
$accent: #00efb7;

$fade-grey: #ededed;
$light-grey: #EFF4F7;
$title-grey: #A9ABAC;
$blue-grey: #444F60;
$muted-grey: #999;
$light-blue-grey: #98a9c3;
$medium-grey: #66676b;
$basaltic-grey: #878787;
$purple: #7F00FF;
$mint: #11FFBD;
$bloody: #FC354C;
$pinky: #ff00cc;
$frost: #004e92;
$placeholder: #cecece;
$dark-grey: #344258;
$border-grey: #ccc;
$muted-grey: #999;
$section-grey: #fbfbfb;
$button-secondary-color: $primary;
$button-secondary-text: $background;

$button-accent-color: $accent;
$button-accent-text: $background;

// cards
$card-feature-background: $background;
$card-feature-header: $title;
$card-feature-text: $subtitle;
$card-feature-border: $border;

// footer
$footer-background: $title;
$footer-titles: $background;
$footer-links: $light-title;
$footer-logos: $primary;
$footer-hover: $background;

// forms
$form-text-color: $subtitle;
$form-text-background: $background;
$form-text-border: $border;

// hero & sections
$hero-background-color: $background;
$sections-light-background: $border;
$sections-feature-background: $background;
$sections-alt-background: $primary;

$sections-title-color: $header;
$sections-subtitle-color: $subheader;
$sections-ibtitle-color: $title;
$sections-ibsubtitle-color: $subtitle;

$sections-divider-color: $primary;

// navbar
$navbar-background-color: $navbar;
$navbar-text-color: $subheader;
$navbar-highlight-color: $primary;

// sidebar
$sidebar-hamburger-color: $primary;
$sidebar-background-color: $title;
$sidebar-text-color: $background;
$sidebar-x-color: $background;
$sidebar-highlight-color: $primary;

// testimonials
$testimonials-background-color: $background;
$testimonials-text-color: $header;
$testimonials-name-color: $title;
$testimonials-position-color: $background;

// utils
$utils-preloader-color: $background;
$util-backtop-color: $subtitle;
$util-backtop-hover-color: $primary;
$util-backtop-arrow-color: $background;
$util-placeholder-color: $light-title;
Loading