From 3d96637c3e383f0a4d1bd3426b4e059a60d8c4de Mon Sep 17 00:00:00 2001
From: Martin Leblanc <m26lebla@uwaterloo.ca>
Date: Wed, 25 Aug 2021 21:06:31 +0000
Subject: [PATCH] adding new scss file

---
 .../01-global/00-colors/_colors.scss          | 83 +++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 source/_patterns/01-global/00-colors/_colors.scss

diff --git a/source/_patterns/01-global/00-colors/_colors.scss b/source/_patterns/01-global/00-colors/_colors.scss
new file mode 100644
index 00000000..0513c7d8
--- /dev/null
+++ b/source/_patterns/01-global/00-colors/_colors.scss
@@ -0,0 +1,83 @@
+$faculties: 'org-default', 'org-ahs', 'org-art', 'org-eng', 'org-env', 'org-mat', 'org-sci', 'org-school';
+
+@each $faculty in $faculties {
+  // Wrapping the element with this class, <body>.
+  .#{$faculty} {
+    // If the UW branding group
+    @if $faculty == org-default {
+      // Headings
+      h1,
+      h2,
+      h3,
+      h4,
+      h5,
+      h6 {
+       color: $uw-black;
+      }
+      // Generic links
+      a {
+        color: $uw-black;
+        &:visited {
+          color: $uw-gold;
+        }
+        &:hover,
+        &:focus {
+          color: $uw-grey;
+        }
+        &:active {
+          color: $uw-grey;
+        }
+      }
+    }
+    // Else run the loop on the faculties.
+    @else {
+      // MAke primary color.
+      .uw-blockquote__text,
+      .uw-blockquote__text::before,
+      .uw-blockquote__text::after{
+        color: gesso-brand($faculty, 'primary');
+      }
+      // Generic links.
+      a,
+      .card__title a{
+        color: gesso-brand($faculty, 'primary');
+        &:visited {
+          color: gesso-brand($faculty, 'primary');
+        }
+        &:hover,
+        &:focus {
+          color: gesso-brand($faculty, 'primary');
+        }
+        &:active {
+          color: gesso-brand($faculty, 'primary');
+        }
+        // Links as buttons need white.
+        &.button {
+          color: $uw-white;
+          &:visited {
+            color: $uw-white;
+          }
+          &:hover,
+          &:focus {
+            color: $uw-grey;
+          }
+          &:active {
+            color: $uw-grey;
+          }
+        }
+        &.pager__link {
+          color: $uw-black;
+        }
+      }
+
+      // Blackout the link
+      .layout-builder__link,
+      .timeline-info__withlink a,
+      .tabs a,
+      .toolbar-tray a{
+        color:$uw-black;
+      }
+    }
+  }
+}
+
-- 
GitLab