Skip to content

Commit

Permalink
Yorkify init. Only bootstrap colors with YU, no structure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asadaqain committed Jul 18, 2024
1 parent c93eac1 commit 7b5e675
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 8 deletions.
161 changes: 154 additions & 7 deletions app/assets/stylesheets/bootstrap_and_overrides.css.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,158 @@
/************************/
/*** YORKU CSS START ***/
/************************/
// Import Bootstrap's default functions first
// then add your custom variables
// then import variables, mixins
// then import bootstrap
// then add your custom css

@import "bootstrap/functions";

//YorkU Colors
/* 2021 YorkU colours */
/* http://toolbox.info.yorku.ca/visual-identity/colours/ */
$york-grey-dark: #686260;
$york-grey-medium: #B7AEA9;
$york-grey-pewter: #D6CFCA;
$york-grey-light: #E8E4DF;
$york-grey-lighter: #FAFAFA;
$york-red-pms-186: #E31837;
$york-red-medium: #B82025;
$york-red-dark: #8C0000;
$york-light-blue: #ACE6F8;
$york-bright-blue: #3AC2EF;

// Custom theme colors
$primary: $york-red-pms-186;
$secondary: $york-grey-dark;
$success: #2e8540 !default; //#35B01C !default; //$green !default; $success: #3AC2EF;
$info: darken($york-light-blue, 50%);
$warning: #ffc107;
$danger: $york-red-medium;
$light: $york-grey-lighter;
$dark: $york-grey-dark;

// Additional custom styles
$border-radius: .25rem;
$btn-border-radius: .25rem;
$btn-padding-y: .5rem;
$btn-padding-x: 1rem;
$btn-font-weight: 400;

$theme-colors: (
'primary': $primary,
'secondary': $secondary,
'success': $success,
'info': $info,
'warning': $warning,
'danger': $danger,
'light': $light,
'dark': $dark,
);

$yorku-colors: (
'york-grey-dark': $york-grey-dark,
'york-grey-medium': $york-grey-medium,
'york-grey-pewter': $york-grey-pewter,
'york-grey-light': $york-grey-light,
'york-grey-lighter': $york-grey-lighter,
'york-red-pms-186': $york-red-pms-186,
'york-red-medium': $york-red-medium,
'york-red-dark': $york-red-dark,
'york-light-blue': $york-light-blue,
'york-bright-blue': $york-bright-blue
);

// Merge the maps
$theme-colors: map-merge($theme-colors, $yorku-colors);
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");


@import "bootstrap/variables";
@import "bootstrap/mixins";
@import "bootstrap";
$color_h6: #d2452a;
$color_h6_green: #009900;
h6 {
color: $color_h6;

// Headings customization
.container {

h1, .h1 {
color: $black;
font-weight: 700;
}

h2, .h2 {
color: $primary;
font-weight: 600;
}

h3, .h3 {
color: darken($info, 30%);
font-weight: 500;
text-transform: uppercase;
}

h4, .h4, h5, .h5, h6, .h6 {
color: $secondary;
font-weight: 400;
}

// Subheadings customization
.subheading {
color: $secondary;
font-weight: 300;
font-size: 1.25rem; // Adjust as needed
}
}
// Key-Value pairs in forms
.dl-horizontal dt {
font-weight: 500;
color: $primary;
}

h6.green{
color: $color_h6_green;
border-bottom: 1px solid rgb(228, 228, 228);
.dl-horizontal dd {
color: $secondary;
}

.page-header {
margin-bottom: 10px;
}
.student-view {
margin-top: 10px;
}

// Custom styles can go here, if needed
.record-data {
margin-top: 10px;
margin-bottom: 10px;
tr {
td:nth-child(1) {
@extend .lead;
// font-size: $small-font-size;
font-size: 1rem;
color: $secondary;
}
td:nth-child(2) {
// color: $secondary;
font-weight: 600;
}
}
}

.simple_form {
// background-color: lighten($york-grey-pewter, 8%);
// background-color: $york-grey-pewter;
background-color: $light;
padding: 0.875rem;
}
.simple_form .form-control {
font-size: 1.1rem;
margin-bottom: 10px;
}
.simple_form .form-text {
margin-bottom: 0.25rem;
}
.container section {
padding-top: 15px;
padding-bottom: 15px;
}
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<% end %>
<div class="container my-3">
<div class="row align-items-center shadow-lg rounded-3 border">
<div class="row align-items-center shadow-lg rounded-3 border p-3">
<div class="container">
<div class="york_header">
<%= image_tag("yorklogo.gif", alt: "York University - Graduate Studies" )%>
Expand Down

0 comments on commit 7b5e675

Please sign in to comment.