Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
alain
Make it Open Project Site
Commits
d2e1a81e
Commit
d2e1a81e
authored
Mar 19, 2021
by
Benthe Kuijpers
Browse files
page header colours on news pages
parent
bed4ccb5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
wordpress/wp-content/themes/makeitopen/assets/css/maps/style.css.map
View file @
d2e1a81e
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/css/style.css
View file @
d2e1a81e
This diff is collapsed.
Click to expand it.
wordpress/wp-content/themes/makeitopen/assets/scss/templates/_page.scss
View file @
d2e1a81e
...
...
@@ -28,4 +28,21 @@
background
:
$bg-yellow
;
}
}
&
--news
{
.page-header
h1
:before
,
.text-wrapper
a
.btn
,
.single__button
a
.btn
,
ol
li
:before
,
ul
li
:before
{
background
:
$red
;
}
a
.btn
:before
,
.single__button
a
.btn
:before
,
ol
li
:after
,
ul
li
:after
{
background
:
$bg-yellow
;
}
}
}
\ No newline at end of file
wordpress/wp-content/themes/makeitopen/home.php
View file @
d2e1a81e
<?php
get_header
();
?>
<main
id=
"primary"
class=
"site-main"
>
<main
id=
"primary"
class=
"site-main
page--news
"
>
<div
class=
"container"
>
...
...
wordpress/wp-content/themes/makeitopen/single.php
View file @
d2e1a81e
<?php
get_header
();
?>
<main
id=
"primary"
class=
"site-main"
>
<main
id=
"primary"
class=
"site-main
page--news
"
>
<div
class=
"single__content"
>
<?php
...
...
@@ -25,9 +25,9 @@
<div
class=
"single__button"
>
<?php
if
(
is_singular
(
'events'
))
{
?>
<a
href=
"
<?php
echo
get_post_type_archive_link
(
'events'
);
?>
"
class=
"btn
btn--red
btn--back"
>
<?php
_e
(
'see all events'
,
'makeitopen'
);
?>
</a>
<a
href=
"
<?php
echo
get_post_type_archive_link
(
'events'
);
?>
"
class=
"btn btn--back"
>
<?php
_e
(
'see all events'
,
'makeitopen'
);
?>
</a>
<?php
}
else
{
?>
<a
href=
"
<?php
echo
get_permalink
(
get_option
(
'page_for_posts'
));
?>
"
class=
"btn
btn--red
btn--back"
>
<?php
_e
(
'see all news'
,
'makeitopen'
);
?>
</a>
<a
href=
"
<?php
echo
get_permalink
(
get_option
(
'page_for_posts'
));
?>
"
class=
"btn btn--back"
>
<?php
_e
(
'see all news'
,
'makeitopen'
);
?>
</a>
<?php
}
?>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment