Parcourir la source

Prettier blog list

Jeremy Thomas il y a 8 ans
Parent
commit
941d86da28
5 fichiers modifiés avec 93 ajouts et 65 suppressions
  1. 11 9
      docs/_layouts/post.html
  2. 20 7
      docs/_sass/specific.sass
  3. 21 37
      docs/blog.html
  4. 41 12
      docs/css/bulma-docs.css
  5. 0 0
      docs/css/bulma-docs.css.map

+ 11 - 9
docs/_layouts/post.html

@@ -5,27 +5,29 @@ route: blog
 
 
 {% include blog-hero.html %}
 {% include blog-hero.html %}
 
 
-<section class="section is-medium">
+<section class="section">
   <div class="container">
   <div class="container">
     <div class="columns">
     <div class="columns">
       <div class="column is-offset-2 is-8">
       <div class="column is-offset-2 is-8">
         <div class="article-image is-single is-{{ page.color }}">
         <div class="article-image is-single is-{{ page.color }}">
           <span class="article-overlay"></span>
           <span class="article-overlay"></span>
           <span class="article-icon">
           <span class="article-icon">
-            <span class="icon">
-              <i class="fa fa-{{ page.icon }}"></i>
-            </span>
+            <i class="fa fa-{{ page.icon }}"></i>
           </span>
           </span>
-          <strong class="article-title">
-            {{ page.name }}
+          <strong class="article-info">
+            <span>
+              <time class="article-date" datetime="{{ page.date | date_to_xmlschema }}">
+                {{ page.date | date_to_string }}
+              </time>
+              <strong class="article-title">
+                {{ page.name }}
+              </strong>
+            </span>
           </strong>
           </strong>
         </div>
         </div>
         <p class="subtitle is-6">
         <p class="subtitle is-6">
           <a class="article-back" href="{{ site.url }}/blog">Back</a>
           <a class="article-back" href="{{ site.url }}/blog">Back</a>
         </p>
         </p>
-        <p class="subtitle is-4">
-          {{ page.date | date_to_string }}
-        </p>
         <h1 class="title is-2">
         <h1 class="title is-2">
           {{ page.title }}
           {{ page.title }}
         </h1>
         </h1>

+ 20 - 7
docs/_sass/specific.sass

@@ -53,7 +53,6 @@
   height: 240px
   height: 240px
   margin-left: auto
   margin-left: auto
   margin-right: auto
   margin-right: auto
-  width: 320px
   position: relative
   position: relative
   text-align: center
   text-align: center
   @each $name, $pair in $colors
   @each $name, $pair in $colors
@@ -66,15 +65,14 @@
     .article-overlay
     .article-overlay
       opacity: 0.25
       opacity: 0.25
     .article-icon
     .article-icon
-      transform: scale(1.1)
-    .article-title
+      transform: scale(1.4)
+    .article-date
       transform: scale(0.9)
       transform: scale(0.9)
+    .article-title
+      transform: scale(1.1)
   &.is-single
   &.is-single
     margin-bottom: 2rem
     margin-bottom: 2rem
     width: 100%
     width: 100%
-  +mobile
-    height: 180px
-    width: 240px
 
 
 .article-overlay
 .article-overlay
   +overlay
   +overlay
@@ -85,11 +83,15 @@
   transition-timing-function: $easing
   transition-timing-function: $easing
 
 
 .article-icon,
 .article-icon,
-.article-title
+.article-info
   +overlay
   +overlay
   align-items: center
   align-items: center
   display: flex
   display: flex
   justify-content: center
   justify-content: center
+
+.article-icon,
+.article-date,
+.article-title
   transition-duration: $speed
   transition-duration: $speed
   transition-property: transform
   transition-property: transform
   transition-timing-function: $easing
   transition-timing-function: $easing
@@ -97,14 +99,25 @@
 .article-icon
 .article-icon
   color: $black
   color: $black
   opacity: 0.25
   opacity: 0.25
+  & > span
+    display: block
   .fa
   .fa
     font-size: 56px
     font-size: 56px
 
 
+.article-info
+  padding: 20px
+
+.article-date
+  color: rgba(#000, 0.5)
+  display: block
+
 .article-title
 .article-title
   color: $white
   color: $white
+  display: block
   font-size: 2.5rem
   font-size: 2.5rem
   font-weight: $weight-bold
   font-weight: $weight-bold
   line-height: 1.25
   line-height: 1.25
+  padding: 0 20px
 
 
 .emoji
 .emoji
   margin-right: 0.5em
   margin-right: 0.5em

+ 21 - 37
docs/blog.html

@@ -7,43 +7,27 @@ route: blog
 
 
   <section class="section">
   <section class="section">
     <div class="container">
     <div class="container">
-      {% for post in site.posts %}
-        <article class="box article">
-          <div class="columns">
-            <div class="column is-narrow">
-              <a class="article-image is-{{ post.color }}" href="{{ post.url }}">
-                <span class="article-overlay"></span>
-                <span class="article-icon">
-                  <span class="icon">
-                    <i class="fa fa-{{ post.icon }}"></i>
-                  </span>
-                </span>
-                <strong class="article-title">
-                  {{ post.name }}
-                </strong>
-              </a>
-            </div>
-            <div class="column">
-              <div class="columns">
-                <div class="column">
-                  <p class="subtitle">
+      <div class="columns is-multiline">
+        {% for post in site.posts %}
+          <article class="column is-4">
+            <a class="article-image is-{{ post.color }}" href="{{ post.url }}">
+              <span class="article-overlay"></span>
+              <span class="article-icon">
+                <i class="fa fa-{{ post.icon }}"></i>
+              </span>
+              <strong class="article-info">
+                <span>
+                  <time class="article-date" datetime="{{ post.date | date_to_xmlschema }}">
                     {{ post.date | date_to_string }}
                     {{ post.date | date_to_string }}
-                  </p>
-                  <h2 class="title">
-                    <a href="{{ post.url }}">
-                      {{ post.title }}
-                    </a>
-                  </h2>
-                </div>
-                <div class="column">
-                  <div class="content is-medium">
-                    {{ post.introduction | markdownify }}
-                  </div>
-                </div>
-              </div>
-            </div>
-          </div>
-        </article>
-      {% endfor %}
+                  </time>
+                  <strong class="article-title">
+                    {{ post.name }}
+                  </strong>
+                </span>
+              </strong>
+            </a>
+          </article>
+        {% endfor %}
+      </div>
     </div>
     </div>
   </section>
   </section>

+ 41 - 12
docs/css/bulma-docs.css

@@ -551,6 +551,18 @@ table th {
   text-align: right !important;
   text-align: right !important;
 }
 }
 
 
+.is-capitalized {
+  text-transform: capitalize !important;
+}
+
+.is-lowercase {
+  text-transform: lowercase !important;
+}
+
+.is-uppercase {
+  text-transform: uppercase !important;
+}
+
 .has-text-white {
 .has-text-white {
   color: white !important;
   color: white !important;
 }
 }
@@ -10213,7 +10225,6 @@ html.route-index #carbon {
   height: 240px;
   height: 240px;
   margin-left: auto;
   margin-left: auto;
   margin-right: auto;
   margin-right: auto;
-  width: 320px;
   position: relative;
   position: relative;
   text-align: center;
   text-align: center;
 }
 }
@@ -10263,27 +10274,25 @@ html.route-index #carbon {
 }
 }
 
 
 .article-image:hover .article-icon {
 .article-image:hover .article-icon {
-  -webkit-transform: scale(1.1);
-          transform: scale(1.1);
+  -webkit-transform: scale(1.4);
+          transform: scale(1.4);
 }
 }
 
 
-.article-image:hover .article-title {
+.article-image:hover .article-date {
   -webkit-transform: scale(0.9);
   -webkit-transform: scale(0.9);
           transform: scale(0.9);
           transform: scale(0.9);
 }
 }
 
 
+.article-image:hover .article-title {
+  -webkit-transform: scale(1.1);
+          transform: scale(1.1);
+}
+
 .article-image.is-single {
 .article-image.is-single {
   margin-bottom: 2rem;
   margin-bottom: 2rem;
   width: 100%;
   width: 100%;
 }
 }
 
 
-@media screen and (max-width: 768px) {
-  .article-image {
-    height: 180px;
-    width: 240px;
-  }
-}
-
 .article-overlay {
 .article-overlay {
   bottom: 0;
   bottom: 0;
   left: 0;
   left: 0;
@@ -10301,7 +10310,7 @@ html.route-index #carbon {
 }
 }
 
 
 .article-icon,
 .article-icon,
-.article-title {
+.article-info {
   bottom: 0;
   bottom: 0;
   left: 0;
   left: 0;
   position: absolute;
   position: absolute;
@@ -10316,6 +10325,11 @@ html.route-index #carbon {
   -webkit-box-pack: center;
   -webkit-box-pack: center;
       -ms-flex-pack: center;
       -ms-flex-pack: center;
           justify-content: center;
           justify-content: center;
+}
+
+.article-icon,
+.article-date,
+.article-title {
   -webkit-transition-duration: 86ms;
   -webkit-transition-duration: 86ms;
           transition-duration: 86ms;
           transition-duration: 86ms;
   -webkit-transition-property: -webkit-transform;
   -webkit-transition-property: -webkit-transform;
@@ -10331,15 +10345,30 @@ html.route-index #carbon {
   opacity: 0.25;
   opacity: 0.25;
 }
 }
 
 
+.article-icon > span {
+  display: block;
+}
+
 .article-icon .fa {
 .article-icon .fa {
   font-size: 56px;
   font-size: 56px;
 }
 }
 
 
+.article-info {
+  padding: 20px;
+}
+
+.article-date {
+  color: rgba(0, 0, 0, 0.5);
+  display: block;
+}
+
 .article-title {
 .article-title {
   color: white;
   color: white;
+  display: block;
   font-size: 2.5rem;
   font-size: 2.5rem;
   font-weight: 700;
   font-weight: 700;
   line-height: 1.25;
   line-height: 1.25;
+  padding: 0 20px;
 }
 }
 
 
 .emoji {
 .emoji {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
docs/css/bulma-docs.css.map


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff