Skip to content
Snippets Groups Projects
Commit 4e7a36a8 authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-5628: css svg-background mixin test with new images folder(details),...

ISTWCMS-5628: css svg-background mixin test with new images folder(details), logo demo of site footer using images folder.
parent 7a79e2d5
No related branches found
No related tags found
1 merge request!6Feature/istwcms 5628 ebremner images
......@@ -8,7 +8,6 @@
:where(details) {
@include uw-no-breakout();
@include svg-background(mobile-arrow-down);
background: var(--gray-2);
border: var(--size-xs) solid #bfbfbf;
border-bottom:var(--size-xs) solid var(--uw-black-primary);
......@@ -52,10 +51,10 @@
:where(summary) {
@include uw-no-breakout();
@include svg-background(mobile-arrow-down);
background: var(--gray-2);
background-color: var(--gray-2);
background-position: right var(--size-2) center; // LTR
background-repeat: no-repeat;
background-size: rem(13px);
background-size: 13px;
border-radius: var(--radius-1);
color: var(--uw-black-primary);
cursor: pointer;
......
// @file
// SVG background image Mixin
@mixin svg-background($path) {
background-image: url($path), linear-gradient(transparent, transparent);
@mixin svg-background($image-name, $image-location: '../images/') {
background-image: url($image-location + $image-name + '.svg'), linear-gradient(transparent, transparent);
background-repeat: no-repeat;
background-size: 100%;
display: inline-block;
//background-size: 100%;
//display: inline-block;
}
//@mixin svg-background($image-name, $image-location: '../source/images/icons/') {
// background-image: url($image-location + $image-name + '.svg');
//}
//
//@mixin svg-background-color($image-color, $image-name, $image-location: '../source/images/icons/') {
// background-color: $image-color;
// -webkit-mask: url($image-location + $image-name + '.svg') no-repeat;
// mask: url($image-location + $image-name + '.svg') no-repeat;
// -webkit-mask-size: contain;
// mask-size: contain;
//}
@mixin svg-background-color($image-color, $image-name, $image-location: '../images/') {
background-color: $image-color;
-webkit-mask: url($image-location + $image-name + '.svg') no-repeat;
mask: url($image-location + $image-name + '.svg') no-repeat;
-webkit-mask-size: contain;
mask-size: contain;
}
......@@ -5,7 +5,7 @@
body: "The standard Lorem Ipsum passage, used since the 1500s<br /><br />Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
site_name: "Faculty of Environment",
logo_link: "https://uwaterloo.ca/",
logo_url: "/uw_wcms_gesso/source/images/logos/uwaterloo-logo.svg",
logo_url: "/images/uwaterloo-logo.svg",
logo_alt_text: "Faculty of Environment",
facebook: "https://www.facebook.com/University.Waterloo"
} %}
......
body: "The standard Lorem Ipsum passage, used since the 1500s<br /><br />Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
site_name: "Faculty of Environment"
logo_link: "https://uwaterloo.ca"
logo_url: "/uw_wcms_gesso/source/images/logos/uwaterloo-logo.svg"
logo_url: "/images/uwaterloo-logo.svg"
logo_alt_text: "Faculty of Health logo"
home_link : "#"
facebook: "https://www.facebook.com/University.Waterloo"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment