@@ -1458,7 +1458,7 @@ input, select, textarea {
14581458/* Section/Article */
14591459
14601460 section , article {
1461- margin-bottom : 5 em ;
1461+ margin-bottom : 3 em ;
14621462 }
14631463
14641464 section > : last-child ,
@@ -1721,6 +1721,11 @@ input, select, textarea {
17211721 padding : 0 ;
17221722 margin : 0 ;
17231723 }
1724+
1725+ ul .list-unstyled li {
1726+ padding : 0 ;
1727+ }
1728+
17241729 ul li {
17251730 padding-left : 0.5em ;
17261731 }
@@ -2690,4 +2695,87 @@ input, select, textarea {
26902695 text-align : left;
26912696 }
26922697
2693- }
2698+ }
2699+
2700+ /* Custom */
2701+
2702+ .hover-img {
2703+ background-color : # 000 ;
2704+ color : # fff ;
2705+ border-radius : 3px ;
2706+ display : inline-block;
2707+ border-radius : 8px ;
2708+ overflow : hidden;
2709+ position : relative;
2710+ text-align : center;
2711+ width : 100% ;
2712+ outline : 0 ;
2713+ }
2714+
2715+ .hover-img * {
2716+ box-sizing : border-box;
2717+ transition : all 0.45s ease;
2718+ }
2719+
2720+ .hover-img : before ,
2721+ .hover-img : after {
2722+ background-color : rgba (0 , 0 , 0 , 0.2 );
2723+ border-top : 32px solid rgba (0 , 0 , 0 , 0.2 );
2724+ border-bottom : 32px solid rgba (0 , 0 , 0 , 0.2 );
2725+ position : absolute;
2726+ top : 0 ;
2727+ bottom : 0 ;
2728+ left : 0 ;
2729+ right : 0 ;
2730+ content : '' ;
2731+ transition : all 0.3s ease;
2732+ z-index : 1 ;
2733+ opacity : 0 ;
2734+ transform : scaleY (2 );
2735+ }
2736+
2737+ .hover-img img {
2738+ vertical-align : top;
2739+ max-width : 100% ;
2740+ backface-visibility : hidden;
2741+ }
2742+
2743+ .hover-img figcaption {
2744+ position : absolute;
2745+ top : 0 ;
2746+ bottom : 0 ;
2747+ left : 0 ;
2748+ right : 0 ;
2749+ align-items : center;
2750+ z-index : 1 ;
2751+ display : flex;
2752+ flex-direction : column;
2753+ justify-content : center;
2754+ line-height : 1.1em ;
2755+ opacity : 0 ;
2756+ z-index : 2 ;
2757+ transition-delay : 0.1s ;
2758+ font-size : 1.2rem ;
2759+ font-family : sans-serif;
2760+ font-weight : 400 ;
2761+ letter-spacing : 1px ;
2762+ text-transform : uppercase;
2763+ }
2764+
2765+ .hover-img : hover : before ,
2766+ .hover-img : hover : after {
2767+ transform : scale (1 );
2768+ opacity : 1 ;
2769+ }
2770+
2771+ .hover-img : hover > img {
2772+ opacity : 0.7 ;
2773+ }
2774+
2775+ .hover-img : hover figcaption {
2776+ opacity : 1 ;
2777+ }
2778+
2779+ .hover-img a {
2780+ color : white;
2781+ }
0 commit comments