Skip to content

Commit

Permalink
Grey color for menu as default and edited hlavicka-s-uvodnym-blokom.n…
Browse files Browse the repository at this point in the history
…jk page
  • Loading branch information
Tibor Dulovec committed Oct 15, 2021
1 parent 5e9f092 commit 802011a
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 47 deletions.
30 changes: 15 additions & 15 deletions app/views/komponenty/examples/exampleIntroBlock1.njk
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
{% from "../../../../src/idsk/components/intro-block/macro.njk" import idskIntroBlock %}
{{ idskIntroBlock({
{{ idskIntroBlock({
bottomMenu: [
{
item:"Eurofondy",
href:"#"},
item:"Eurofondy",
href:"#"},
{
item:"Kontakty",
href:"#"
},
},
{
item:"Informatizácia",
href:"#"
},
{
},
{
item:"Investície",
href:"#"
},
},
{
item:"O ministerstve",
href:"#"
}],
sideMenu: [
{
item:"O Eurofondoch",
href:"#"},
item:"O Eurofondoch",
href:"#"},
{
item:"Aktuality",
href:"#"
},
},
{
item:"O Ministerstve",
href:"#"
},
{
},
{
item:"Aktuálne výzvy",
href:"#"
},
},
{
item:"Dokumenty",
href:"#"
}],
classBackground: "app-pane-grey",
classBackground: "app-pane-transparent",
searchEnabled: true
})}}
})}}
1 change: 0 additions & 1 deletion app/views/komponenty/examples/exampleIntroBlock3.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@
item:"Dokumenty",
href:"#"
}],
classBackground: "app-pane-grey",
searchEnabled: true
})}}
47 changes: 23 additions & 24 deletions app/views/vzory/hlavicka-s-uvodnym-blokom.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

{% set pageName = "Hlavička s úvodným blokom" %}

{% block styles %}
<style>
#main-content {
padding-top: 0;
}
</style>
{% endblock %}

{% block skipLink %}
{{ idskSkipLink({
href: '#main-content',
Expand Down Expand Up @@ -82,63 +90,54 @@
link: "#",
text: "Twitter"
}
]
}) }}
{% endblock %}

{% block beforeContent %}
{{ govukBreadcrumbs({
"items": [
{ text: ' ID-SK frontend', href: '/' + legacyQuery },
{ text: pageName }
]
}) }}
}) }}
{% endblock %}

{% block content %}
{{ idskIntroBlock({
{{ idskIntroBlock({
bottomMenu: [
{
item:"Eurofondy",
href:"#"},
item:"Eurofondy",
href:"#"},
{
item:"Kontakty",
href:"#"
},
},
{
item:"Informatizácia",
href:"#"
},
{
},
{
item:"Investície",
href:"#"
},
},
{
item:"O ministerstve",
href:"#"
}],
searchEnabled:"true",
sideMenu: [
{
item:"Aktuálne výzvy",
href:"#"},
item:"Aktuálne výzvy",
href:"#"},
{
item:"Dokumenty",
href:"#"
},
},
{
item:"O eurofondoch",
href:"#"
},
{
},
{
item:"Aktuality",
href:"#"
},
},
{
item:"O ministerstve",
href:"#"
}]
})}}
{% endblock %}

{% block footer %}{% endblock %}
{% block footer %}{% endblock %}
1 change: 0 additions & 1 deletion app/views/vzory/homepage.njk
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@

{% block content %}
{{ idskIntroBlock({
classBackground: "app-pane-grey",
mainTitleLinkLabel: "viac o ministerstve",
bottomMenu: [
{
Expand Down
14 changes: 8 additions & 6 deletions src/idsk/components/intro-block/intro-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
}
}

div.app-pane-grey {
@include mq($from: desktop) {
background-color: govuk-colour("light-grey");
}
}

.govuk-grid-column-one-third-from-desktop {
@include mq($from: desktop){
width: calc(33.3333% - 50px);
Expand Down Expand Up @@ -104,6 +98,10 @@
margin-left: govuk-spacing(8);
}

@include mq($from: desktop) {
background-color: govuk-colour("light-grey");
}

@include mq($until: tablet) {
padding: 0 govuk-spacing(3);
}
Expand Down Expand Up @@ -220,6 +218,10 @@
}
}

.app-pane-transparent{
background-color: transparent;
}

.app-pane-blue {
.govuk-heading-l,
.govuk-heading-s,
Expand Down

0 comments on commit 802011a

Please sign in to comment.