From 1ddd8294b21693be4359b2112a40b716fa8d58b9 Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Wed, 26 Jun 2013 22:09:11 +0200 Subject: [PATCH 1/5] Fix less file --- dev/style.less | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dev/style.less b/dev/style.less index c527989..85318ae 100644 --- a/dev/style.less +++ b/dev/style.less @@ -55,13 +55,13 @@ License: GNU General Public License @heading-font: "Arvo", Georgia, serif; // Site name size - @site-text-size: 16px; + @site-text-size: 16; // Body text size - @body-text-size: 18px; + @body-text-size: 18; // Title text size - @title-text-size: 38px; + @title-text-size: 38; // Site name color @site-name-color: @grey; @@ -130,19 +130,19 @@ h6 { } h1 { - .font-size(48px); + .font-size(48); } h2 { - .font-size(34px); + .font-size(34); } h3 { - .font-size(28px); + .font-size(28); } h4 { - .font-size(18px); + .font-size(18); } hr { @@ -372,7 +372,7 @@ article { }// the-content .meta { - .font-size(10px); + .font-size(10); text-transform: uppercase; letter-spacing: .9px; @@ -469,7 +469,7 @@ h3#comments { // Jetpack .comment-meta { - font-size: (@body-text-size - 6); + font-size: (@body-text-size - 6px); margin-bottom: 10px; } @@ -553,7 +553,7 @@ html[xmlns] .clearfix { @rem-value: (@size / 10); @px-value: @size; @lineHeight: (@size * 1.48); - line-height: @lineHeight; + line-height: @lineHeight+0px; font-size: ~"@{px-value}px"; font-size: ~"@{rem-value}rem"; } From 7e4febde41afe2d76e8788e02e3cde65471a51bd Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Wed, 26 Jun 2013 22:12:13 +0200 Subject: [PATCH 2/5] Don't force the image width --- dev/style.less | 1 - style.css | 1 - 2 files changed, 2 deletions(-) diff --git a/dev/style.less b/dev/style.less index 85318ae..b3c6bc2 100644 --- a/dev/style.less +++ b/dev/style.less @@ -364,7 +364,6 @@ article { } img { - width: 100%; height: auto; } diff --git a/style.css b/style.css index 23ee467..5061524 100644 --- a/style.css +++ b/style.css @@ -565,7 +565,6 @@ article .the-content p { color: #787878; } article .the-content img { - width: 100%; height: auto; } article .meta { From 3b2c7295a654f7c32a76547cfff6d2c44861aed1 Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Wed, 26 Jun 2013 22:39:42 +0200 Subject: [PATCH 3/5] Customise theme to my needs --- archives.php | 59 +++++++++++++++++++++ custom-home.php | 22 ++++++++ dev/style.less | 5 +- footer.php | 25 +++++++++ header.php | 51 ++++++++++++++++++ index.php | 134 +++++++++++------------------------------------- style.css | 4 ++ 7 files changed, 195 insertions(+), 105 deletions(-) create mode 100644 archives.php create mode 100644 custom-home.php create mode 100644 footer.php create mode 100644 header.php diff --git a/archives.php b/archives.php new file mode 100644 index 0000000..3ec57f3 --- /dev/null +++ b/archives.php @@ -0,0 +1,59 @@ + + +
+ +

Tous les articles

+ +
+ + + + + post_date); + $month = mysql2date('n', $post->post_date); + $day = mysql2date('j', $post->post_date); + + ?> + + + + + + + +

+ +
    + + + + + + + +
  • -
  • + + +
+
+ +
+ + + diff --git a/custom-home.php b/custom-home.php new file mode 100644 index 0000000..2294c40 --- /dev/null +++ b/custom-home.php @@ -0,0 +1,22 @@ + + + + + +
+

+ +

+
+ +
+
+ + + + + diff --git a/dev/style.less b/dev/style.less index b3c6bc2..b655419 100644 --- a/dev/style.less +++ b/dev/style.less @@ -135,6 +135,7 @@ h1 { h2 { .font-size(34); + padding-bottom: 15px; } h3 { @@ -354,6 +355,8 @@ article { .the-content { + color: @text-color; + a { font-weight: 900; text-decoration: none; @@ -362,7 +365,7 @@ article { p { color: @text-color; } - + img { height: auto; } diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..6b8fd7b --- /dev/null +++ b/footer.php @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + diff --git a/header.php b/header.php new file mode 100644 index 0000000..7e11e1d --- /dev/null +++ b/header.php @@ -0,0 +1,51 @@ +> + + + +<?php bloginfo('name'); ?> | <?php if( is_home() ) : echo bloginfo( 'description' ); endif; ?><?php wp_title( '', true ); ?> + + + + + + + + +> + + + + + + +
+ +
+
+ diff --git a/index.php b/index.php index 2f8d14b..23f4734 100644 --- a/index.php +++ b/index.php @@ -1,69 +1,18 @@ -> - - - -<?php bloginfo('name'); ?> | <?php if( is_home() ) : echo bloginfo( 'description' ); endif; ?><?php wp_title( '', true ); ?> - - - - - - - - -> - - - - - - - - -
- - - - - - - - - + diff --git a/style.css b/style.css index 5061524..a9a80ba 100644 --- a/style.css +++ b/style.css @@ -359,6 +359,7 @@ h2 { line-height: 50.32px; font-size: 34px; font-size: 3.4rem; + padding-bottom: 15px; } h3 { line-height: 41.44px; @@ -557,6 +558,9 @@ article .post-meta a { article .post-meta a:hover { color: rgba(136, 136, 136, 0.5); } +article .the-content { + color: #787878; +} article .the-content a { font-weight: 900; text-decoration: none; From a8dce3173a486acffbf5591d55ea6a14255e3493 Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Thu, 27 Jun 2013 09:21:16 +0200 Subject: [PATCH 4/5] Add social buttons --- dev/style.less | 8 ++++++++ index.php | 15 +++++++++++++++ style.css | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev/style.less b/dev/style.less index b655419..311d9b2 100644 --- a/dev/style.less +++ b/dev/style.less @@ -501,6 +501,14 @@ footer { }// footer +/* custom social sharing buttons */ +.share_top_text{font-weight: bold; margin:0 0 15px 0px; font-size: 1.3em; color:#3F403D;} +.social-button-container{margin:15px 0 15px;border-bottom:none;} +.SocialCustomMenu a, SocialCustomMenu a:visited{display:inline;padding:5px;color:white;text-decoration:none;font-size:0.95em;} +.scmTwitter{background-color:#7cd5fd;border:solid 1px #c1c1c1} +.scmFacebook{background-color:#45619d;border:solid 1px #c1c1c1} +.scmGoogleplus{background-color:#af291d;border:solid 1px #c1c1c1} +.scmPinterest{background-color:#cb2027;border:solid 1px #c1c1c1} /* Misc & mixens -------------------------------------------------------------- */ diff --git a/index.php b/index.php index 23f4734..4ad2aba 100644 --- a/index.php +++ b/index.php @@ -91,6 +91,21 @@
+ + +

Abonnez-vous à la Newsletter pour être automatiquement tenu au courant des nouveautés !

+ widget(array('form' => 1, 'form_type' => 'php')); ?> +
diff --git a/style.css b/style.css index a9a80ba..fcea4ec 100644 --- a/style.css +++ b/style.css @@ -664,6 +664,41 @@ footer { padding-bottom: 40px; font-size: 12px; } +/* custom social sharing buttons */ +.share_top_text { + font-weight: bold; + margin: 0 0 15px 0px; + font-size: 1.3em; + color: #3F403D; +} +.social-button-container { + margin: 15px 0 15px; + border-bottom: none; +} +.SocialCustomMenu a, +SocialCustomMenu a:visited { + display: inline; + padding: 5px; + color: white; + text-decoration: none; + font-size: 0.95em; +} +.scmTwitter { + background-color: #7cd5fd; + border: solid 1px #c1c1c1; +} +.scmFacebook { + background-color: #45619d; + border: solid 1px #c1c1c1; +} +.scmGoogleplus { + background-color: #af291d; + border: solid 1px #c1c1c1; +} +.scmPinterest { + background-color: #cb2027; + border: solid 1px #c1c1c1; +} /* Misc & mixens -------------------------------------------------------------- */ /* Jetpack Gallery */.gallery .gallery-item { From 7f03b1f0942195fd72e0325e9eccf798fac2221a Mon Sep 17 00:00:00 2001 From: Vincent Jousse Date: Thu, 27 Jun 2013 09:31:09 +0200 Subject: [PATCH 5/5] Fix subscribe color --- dev/style.less | 4 +++- index.php | 2 +- style.css | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dev/style.less b/dev/style.less index 311d9b2..7609240 100644 --- a/dev/style.less +++ b/dev/style.less @@ -502,7 +502,7 @@ footer { }// footer /* custom social sharing buttons */ -.share_top_text{font-weight: bold; margin:0 0 15px 0px; font-size: 1.3em; color:#3F403D;} +.share_top_text{font-weight: bold; margin:0 0 15px 0px; font-size: 1.3em; color:@grey;} .social-button-container{margin:15px 0 15px;border-bottom:none;} .SocialCustomMenu a, SocialCustomMenu a:visited{display:inline;padding:5px;color:white;text-decoration:none;font-size:0.95em;} .scmTwitter{background-color:#7cd5fd;border:solid 1px #c1c1c1} @@ -510,6 +510,8 @@ footer { .scmGoogleplus{background-color:#af291d;border:solid 1px #c1c1c1} .scmPinterest{background-color:#cb2027;border:solid 1px #c1c1c1} +.subscribe { color: @grey; } + /* Misc & mixens -------------------------------------------------------------- */ diff --git a/index.php b/index.php index 4ad2aba..63697f1 100644 --- a/index.php +++ b/index.php @@ -102,7 +102,7 @@
-

Abonnez-vous à la Newsletter pour être automatiquement tenu au courant des nouveautés !

+ widget(array('form' => 1, 'form_type' => 'php')); ?> diff --git a/style.css b/style.css index fcea4ec..a19f623 100644 --- a/style.css +++ b/style.css @@ -669,7 +669,7 @@ footer { font-weight: bold; margin: 0 0 15px 0px; font-size: 1.3em; - color: #3F403D; + color: #565656; } .social-button-container { margin: 15px 0 15px; @@ -699,6 +699,9 @@ SocialCustomMenu a:visited { background-color: #cb2027; border: solid 1px #c1c1c1; } +.subscribe { + color: #565656; +} /* Misc & mixens -------------------------------------------------------------- */ /* Jetpack Gallery */.gallery .gallery-item {