Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
PRODDEV-540: Added styles changes
Browse files Browse the repository at this point in the history
  • Loading branch information
szherebchuk committed Mar 22, 2022
1 parent f6e4e06 commit 3c2aa70
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
12 changes: 9 additions & 3 deletions assets/css/openy_carnation.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
padding-left: 2px;
padding-right: 2px;
}
.openy_carnation .desktop-menu .page-head__main-menu .menu-item-home {
max-width: 80px;
}
.openy_carnation .desktop-menu .page-head__main-menu .menu-item-home a {
width: 80px;
}
.openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .top-menu {
margin-top: 84px;
margin-top: 6px;
}
.openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-favorites-page, .openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-categories-page, .openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-video-page {
padding-top: 88px;
}
.openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-schedule-page, .openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-favorites-page, .openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-categories-page, .openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-video-page {
padding-top: 172px;
.openy_carnation.openy-gated-content.toolbar-fixed #block-openy-carnation-content #gated-content .gated-content-schedule-page {
padding-top: 196px;
}
.openy_carnation.openy-gated-content article, .openy_carnation.openy-gated-content .openy-page-tabs {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/openy_gated_content.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
top: auto !important;
}
.openy-gated-content .layout-content #gated-content .gated-content-schedule-page, .openy-gated-content .layout-content #gated-content .gated-content-favorites-page, .openy-gated-content .layout-content #gated-content .gated-content-categories-page, .openy-gated-content .layout-content #gated-content .gated-content-video-page {
padding-top: 86px;
padding-top: 86px !important;
}
.openy-gated-content .layout-content #gated-content .gated-content-schedule-page .date-filter, .openy-gated-content .layout-content #gated-content .gated-content-schedule-page .calendar .desktop .slot {
top: auto !important;
Expand Down
37 changes: 37 additions & 0 deletions assets/css/openy_rose.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.viewport .page-head .top-navs, .viewport .page-head .nav-global > .container > .row, .viewport .page-head .nav-global > .container > .row .header-content {
min-height: 210px;
}
.openy_rose-based.openy-gated-content.toolbar-fixed .layout-content #gated-content .top-menu {
z-index: auto;
}
.openy_rose-based.openy-gated-content.toolbar-fixed.primary-menu-minimize .layout-content #gated-content .top-menu {
top: 158px !important;
}
.openy_rose-based.openy-gated-content.toolbar-fixed.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .date-filter {
top: 242px !important;
}
.openy_rose-based.openy-gated-content.toolbar-fixed.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .calendar .desktop .header .slot {
top: 290px !important;
}
.openy_rose-based.openy-gated-content.toolbar-fixed.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .calendar .desktop .content {
margin-top: 114px;
}
.openy_rose-based.openy-gated-content.primary-menu-minimize .viewport .top-navs.affix {
min-height: 80px;
height: 80px;
}
.openy_rose-based.openy-gated-content.primary-menu-minimize .layout-content #gated-content .top-menu {
top: 80px !important;
}
.openy_rose-based.openy-gated-content.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .date-filter {
top: 166px !important;
}
.openy_rose-based.openy-gated-content.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .calendar .desktop .header .slot {
top: 214px !important;
}
.openy_rose-based.openy-gated-content.primary-menu-minimize .layout-content #gated-content .gated-content-schedule-page .calendar .desktop .content {
margin-top: 194px;
}
.openy_rose-based.openy-gated-content .layout-content #block-openy-rose-content #gated-content {
padding-top: 14px;
}
6 changes: 6 additions & 0 deletions openy_gated_content.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ openy_carnation_styles:
theme:
assets/css/openy_carnation.css: {}

openy_rose_styles:
version: 0.1
css:
theme:
assets/css/openy_rose.css: {}

openy_gated_content_styles:
version: 0.1
css:
Expand Down
3 changes: 3 additions & 0 deletions openy_gated_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ function openy_gated_content_page_attachments(array &$attachments) {
if (openy_gated_content_get_base_theme() === 'openy_carnation') {
$attachments['#attached']['library'][] = 'openy_gated_content/openy_carnation_styles';
}
if (openy_gated_content_get_base_theme() === 'openy_rose') {
$attachments['#attached']['library'][] = 'openy_gated_content/openy_rose_styles';
}
}

/**
Expand Down

0 comments on commit 3c2aa70

Please sign in to comment.