Skip to content
Snippets Groups Projects
Commit 9d818186 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-6028: Tighten the spacing in projects and in view interact rest of views grids

parent 29dc0420
No related branches found
No related tags found
1 merge request!81ISTWCMS-6028: Tighten the spacing in projects and in view interact rest of views grids
// Media Query Ranges // Media Query Ranges
$screen-xxs: 240px; $screen-xxs: 20rem;
$screen-xs: 30rem; $screen-xs: 30rem;
$screen-fb: 37.5rem; $screen-fb: 37.5rem;
$screen-sm: 40.06rem; $screen-sm: 40.06rem;
......
...@@ -49,11 +49,27 @@ $sidebar-width: 18.75rem; ...@@ -49,11 +49,27 @@ $sidebar-width: 18.75rem;
@include uw-contained-width; @include uw-contained-width;
display: flex; display: flex;
gap: var(--size-1); gap: var(--size-1);
grid-row-gap: 0;
height: var(--size-6);
justify-content: flex-end; justify-content: flex-end;
// Moving the rss button up for the blog news and events
margin-top: -3rem;
padding: 0; padding: 0;
.button{ .button{
margin: 0; margin: 0;
} }
.path-services & {
margin-top: 0;
@media(min-width: $screen-md) {
margin-top: -3rem;
}
}
.path-events &{
margin-top: 0;
@media(min-width: 375px) {
margin-top: -3rem;
}
}
} }
&-header{ &-header{
grid-column: 1 / 3; grid-column: 1 / 3;
...@@ -90,20 +106,25 @@ $sidebar-width: 18.75rem; ...@@ -90,20 +106,25 @@ $sidebar-width: 18.75rem;
@media(min-width: $screen-lg) { @media(min-width: $screen-lg) {
display: grid; display: grid;
gap: var(--grid-gap); gap: var(--grid-gap);
grid-row-gap: 0;
grid-template-columns: auto $sidebar-width; grid-template-columns: auto $sidebar-width;
} }
.view-content { .view-content {
grid-column: 1 / 2; grid-column: 1 / 2;
margin-bottom: var(--size-6);
width: 100%; width: 100%;
} }
.view-filters { .view-filters {
.views-projects-container &{
margin-top: var(--size-9);
}
h2{ h2{
margin-top: 0; margin-top: 0;
} }
.views-projects-container &{
@media(min-width: $screen-lg) {
margin-top: var(--size-1);
h2{
margin-top: inherit;
}
}
}
background: var(--uw-white); background: var(--uw-white);
grid-column: 2 / 3; grid-column: 2 / 3;
height: 0; height: 0;
...@@ -234,14 +255,12 @@ $sidebar-width: 18.75rem; ...@@ -234,14 +255,12 @@ $sidebar-width: 18.75rem;
@media(min-width: $screen-sm){ @media(min-width: $screen-sm){
display: grid; display: grid;
gap: var(--grid-gap); gap: var(--grid-gap);
grid-row-gap: 0;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(4, min-content); grid-template-rows: repeat(4, min-content);
} }
.views-row{ .views-row{
margin-bottom: var(--grid-gap); margin-bottom: var(--grid-gap);
@media(min-width: $screen-sm){
margin-bottom: 0;
}
} }
} }
} }
...@@ -259,20 +278,8 @@ $sidebar-width: 18.75rem; ...@@ -259,20 +278,8 @@ $sidebar-width: 18.75rem;
} }
} }
} }
// Moving the rss button up for the blog news and events
.block-page-title-block{
padding-right: 12rem;
@media(min-width: $screen-sm) {
padding-right: inherit;
}
}
.view-interact{
margin-top: -4rem;
@media(min-width: $screen-md) {
margin-top: 0;
}
}
} }
.view-uw-view-news-items, .view-uw-view-news-items,
.view-uw-view-blogs, .view-uw-view-blogs,
.view-uw-view-events, .view-uw-view-events,
...@@ -287,7 +294,6 @@ $sidebar-width: 18.75rem; ...@@ -287,7 +294,6 @@ $sidebar-width: 18.75rem;
} }
} }
.path-catalogs, .path-catalogs,
.path-taxonomy, .path-taxonomy,
.path-services { .path-services {
...@@ -369,26 +375,15 @@ $sidebar-width: 18.75rem; ...@@ -369,26 +375,15 @@ $sidebar-width: 18.75rem;
} }
.view{ .view{
&.with-filters{ &.with-filters{
margin: inherit; margin: 0;
.views-element-container { .views-element-container {
grid-column: 1 / 3; grid-column: 1 / 3;
} }
.view-interact{
margin-top: -3.25rem;
@media(min-width: $screen-sm) {
margin-top: -4rem;
}
}
> .view-content { > .view-content {
margin: inherit; margin: 0;
> h2{ > h2{
grid-column: 1 / 3; grid-column: 1 / 3;
margin: inherit; margin: 0;
//padding: 0 var(--size-2);
//@media(min-width: 75rem) {
// padding-left: 0;
// padding-right: 0;
//}
width: 100%; width: 100%;
} }
} }
...@@ -405,16 +400,12 @@ $sidebar-width: 18.75rem; ...@@ -405,16 +400,12 @@ $sidebar-width: 18.75rem;
} }
} }
&.view-uw-view-projects{ &.view-uw-view-projects{
.view-content{
//grid-template-rows: auto;
//margin: inherit;
}
&.view-display-id-search{ &.view-display-id-search{
&_page{ &_page{
.view-content{ .view-content{
margin-top: var(--size-1); margin-top: var(--size-1);
@media(min-width: $screen-md) { @media(min-width: $screen-md) {
margin-top: var(--size-6); margin-top: var(--size-4);
} }
} }
} }
......
...@@ -9,16 +9,27 @@ ...@@ -9,16 +9,27 @@
&--message { &--message {
margin-top: var(--size-2); margin-top: var(--size-2);
} }
@media(min-width: $screen-md) {
@media(min-width: $screen-lg) {
margin-top: var(--size-6); margin-top: var(--size-6);
&--message { &--message {
margin-top: var(--size-6); margin-top: var(--size-6);
} }
} }
} }
&.view-uw-view-contacts {
&.view-uw-view-projects {
.view-content { .view-content {
gap: 0; margin-top: 0;
@media(min-width: $screen-lg) {
margin-top: var(--size-105);
}
}
&.view-uw-view-contacts {
.view-content {
gap: 0;
}
} }
} }
} }
......
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