Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #109 #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ examples/**/package-lock.json
*.zip
sassdoc/
.idea/
.vscode/
12 changes: 12 additions & 0 deletions dist/assets/images/chevron-banner-focus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions dist/assets/images/chevron-banner-hover-border.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions dist/assets/images/chevron-banner-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions dist/assets/images/chevron-banner-small-focus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions dist/assets/images/chevron-banner-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions dist/assets/images/chevron-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/navody-digital-0.1.8.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/navody-digital-ie8-0.1.8.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions src/assets/images/chevron-banner-focus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/images/chevron-banner-hover-border.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/images/chevron-banner-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/images/chevron-banner-small-focus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/images/chevron-banner-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/assets/images/chevron-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/_custom/_all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
@import "phase-banner/phase-banner";
@import "hero/hero";
@import "thumbnail/thumbnail";
@import "actual-theme/actual-theme";
229 changes: 229 additions & 0 deletions src/components/_custom/actual-theme/_actual-theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
$dark-hover-red: #b31424;
$white: #ffffff;
$yellow: #ffdd00;
$black: #0b0c0c;
$red: #e61e32;

$chevron-banner: url("../../../assets/images/chevron-banner.svg");
$chevron-banner-small: url("../../../assets/images/chevron-banner-small.svg");
$chevron-banner-small-focus: url("../../../assets/images/chevron-banner-small-focus.svg");
$chevron-banner-focus: url("../../../assets/images/chevron-banner-focus.svg");
$chevron-banner-hover: url("../../../assets/images/chevron-banner-hover.svg");
$chevron-banner-hover-border: url("../../../assets/images/chevron-banner-hover-border.svg");

.gem-c-chevron-banner {
position: relative;
}

.gem-c-chevron-banner:hover .gem-c-chevron-banner__link-container {
background-color: $dark-hover-red;
}

@media (min-width: 20em) {
.gem-c-chevron-banner:hover .gem-c-chevron-banner__link-container:after {
background-image: $chevron-banner-hover;
}
}

.gem-c-chevron-banner--hover-border:hover .gem-c-chevron-banner__link-container {
border-right: 2px solid;
border-color: $white;
}

@media (min-width: 20em) {
.gem-c-chevron-banner--hover-border:hover .gem-c-chevron-banner__link-container {
border-right: 0;
}
}

@media (min-width: 20em) {
.gem-c-chevron-banner--hover-border:hover .gem-c-chevron-banner__link-container:after {
background-image: $chevron-banner-hover-border;
}
}

.gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container {
border-right: 2px solid;
border-color: $black;
background-color: $yellow;
}

@media (min-width: 20em) {
.gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container {
border-right: 0;
}
}

.gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container:after {
background-image: $chevron-banner-small-focus;
}

@media (min-width: 20em) {
.gem-c-chevron-banner:focus-within .gem-c-chevron-banner__link-container:after {
background-image: $chevron-banner-focus;
}
}

.gem-c-chevron-banner__link-container {
padding: 20px;
border: 2px solid transparent;
border-right: 0;
border-radius: 5px;
background-color: $red;
}

@media (min-width: 20em) {
.gem-c-chevron-banner__link-container {
margin-right: 120px;
padding: 15px;
border-radius: 5px 0 0 5px;
}
}

@media (min-width: 48.0625em) {
.gem-c-chevron-banner__link-container {
padding: 20px;
}
}

.gem-c-chevron-banner__link-container:after {
content: "";
position: absolute;
top: 0;
right: 10px;
width: 25px;
height: 100%;
background-image: $chevron-banner-small;
background-repeat: no-repeat;
background-position: center right;
background-size: 25px 25px;
}

@media (min-width: 20em) {
.gem-c-chevron-banner__link-container:after {
content: "";
display: block;
position: absolute;
top: 0;
right: 0;
min-width: 120px;
height: 100%;
background-image: $chevron-banner;
background-repeat: no-repeat;
background-position: -1px center;
background-size: auto 100%;
}
}

@media screen and (min-width: 0\0) and (min-width: 320px) and (max-width: 364px) {
.gem-c-chevron-banner__link-container:after {
background-position: -15px center;
}
}

@media screen and (min-width: 0\0) and (min-width: 365px) and (max-width: 640px) {
.gem-c-chevron-banner__link-container:after {
background-position: -28px center;
}
}

@media screen and (min-width: 0\0) and (min-width: 641px) and (max-width: 769px) {
.gem-c-chevron-banner__link-container:after {
background-position: -20px center;
}
}

@media screen and (min-width: 0\0) and (min-width: 770px) {
.gem-c-chevron-banner__link-container:after {
background-position: -14px center;
}
}

@media (max-width: 19.99em) {
.gem-c-chevron-banner__link {
display: block;
width: 80%;
}
}

.gem-c-chevron-banner__link:link,
.gem-c-chevron-banner__link:visited,
.gem-c-chevron-banner__link:hover {
color: $white;
font-family: "nta", Arial, sans-serif;
font-size: 18px;
font-weight: 700;
line-height: 1.1111111111;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

@media print {

.gem-c-chevron-banner__link:link,
.gem-c-chevron-banner__link:visited,
.gem-c-chevron-banner__link:hover {
font-family: sans-serif;
}
}

@media (min-width: 40.0625em) {

.gem-c-chevron-banner__link:link,
.gem-c-chevron-banner__link:visited,
.gem-c-chevron-banner__link:hover {
font-size: 24px;
line-height: 1.25;
}
}

@media print {

.gem-c-chevron-banner__link:link,
.gem-c-chevron-banner__link:visited,
.gem-c-chevron-banner__link:hover {
font-size: 18pt;
line-height: 1.15;
}
}

.gem-c-chevron-banner__link:link:focus,
.gem-c-chevron-banner__link:focus {
color: $black;
background-color: $yellow;
box-shadow: 0 -2px $yellow, 0 4px $black;
}

.gem-c-chevron-banner__link:after {
content: "";
position: absolute;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.homepage__ready-container {
margin: 30px 0 40px 0;

@media (min-width: 48.0625em) {
margin-bottom: 15px;
}
}


.homepage__ready-heading {
margin-bottom: 10px;
}

.homepage__ready-desc {
margin-top: 0;
font-family: "nta", Arial, sans-serif;
font-size: 18px;
font-weight: 400;
line-height: 1.1111111111;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
15 changes: 15 additions & 0 deletions src/components/_custom/actual-theme/actual-theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
params:
- name: themeTitle
type: string
required: true
description: Title of the actual theme to be rendered.
- name: themeDescription
type: string
required: true
description: Description text of the actual theme.
- name: themeRedirectUrl
type: string
required: true
description: Redirect url to be used after clicking on redirect button.

previewLayout: full-width
3 changes: 3 additions & 0 deletions src/components/_custom/actual-theme/macro.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro actualTheme(params) %}
{%- include "./template.njk" -%}
{% endmacro %}
Loading