Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adullact
Theme-WordPress-Adullact-org
Commits
ac427403
Commit
ac427403
authored
Feb 10, 2020
by
N. Peraldi
Browse files
style: improve visuals
parent
e9429fba
Changes
3
Hide whitespace changes
Inline
Side-by-side
functions.php
View file @
ac427403
...
...
@@ -42,11 +42,12 @@ function dump_debug($list)
/**Génère un effet de type parallax avec une image personnalisée.
* @param string $url
* @param $padding : paddig en pixels.
*/
function
add_parallax
(
$url
)
function
add_parallax
(
$url
,
$padding
)
{
//génère un "style=" pour l'ajout d'un effet parallax
echo
"style=
\"
background: url('"
.
$url
.
"') fixed;width:100%
\"
"
;
echo
"style=
\"
background: url('"
.
$url
.
"') fixed;width:100%
;padding-top:"
.
$padding
.
"px;padding-bottom:"
.
$padding
.
"px;
\"
"
;
}
/**on supprime du texte inutile généré sur certaines pages
...
...
index.php
View file @
ac427403
...
...
@@ -19,7 +19,7 @@ $newsletter_icon = $adullact_icons_directory . "newsletter.png";
get_header
();
?>
<div
class=
"wrap
adullact-no-height-padding
"
>
<div
class=
"wrap"
>
<div
id=
"primary"
class=
"content-area"
>
<main
id=
"main"
class=
"site-main"
role=
"main"
>
<p
class=
"adullact-justify"
>
...
...
style.css
View file @
ac427403
...
...
@@ -159,7 +159,7 @@ input[type="search"] {
.adullact-cadres-ligne
{
display
:
flex
;
justify-content
:
center
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
}
...
...
@@ -170,18 +170,17 @@ input[type="search"] {
.adullact-cadre
{
background-color
:
#F1F1F1
;
width
:
1
90px
;
width
:
1
0em
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
margin-right
:
3%
;
margin-bottom
:
4%
;
margin-left
:
3%
;
text-align
:
center
;
align-items
:
center
;
font-size
:
1.6em
;
padding
:
10px
;
padding-top
:
20px
;
margin-bottom
:
1.2em
;
height
:
8em
;
}
.adullact-cadre
img
{
...
...
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