PluginProbe
Powerkit – Supercharge your WordPress Site / 2.9.0
Powerkit – Supercharge your WordPress Site v2.9.0
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / inline-posts / public / css / public-powerkit-inline-posts.css

public-powerkit-inline-posts.css in Powerkit – Supercharge your WordPress Site 2.9.0, at modules/inline-posts/public/css/public-powerkit-inline-posts.css

172 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * All of the CSS for your public-facing functionality should be
3 * included in this file.
4 */
5 /**
6 * Environment for all styles (variables, additions, etc).
7 */
8 /*--------------------------------------------------------------*/
9 /*--------------------------------------------------------------*/
10 .pk-inline-posts .pk-inline-posts-title {
11 margin-bottom: 1.5rem;
12 }
13
14 .pk-inline-posts:not(:last-child) {
15 padding-bottom: 40px;
16 margin-bottom: 3rem;
17 border-bottom: 1px #e9ecef solid;
18 }
19
20 .pk-inline-posts:not(:first-child) {
21 padding-top: 40px;
22 margin-top: 3rem;
23 border-top: 1px #e9ecef solid;
24 }
25
26 .pk-inline-posts-container .pk-overlay {
27 position: relative;
28 display: flex;
29 flex-direction: row;
30 justify-content: flex-start;
31 width: 100%;
32 }
33
34 .pk-inline-posts-container .pk-overlay-background {
35 position: absolute;
36 left: 0;
37 top: 0;
38 right: 0;
39 bottom: 0;
40 }
41
42 .pk-inline-posts-container .pk-overlay-background figure {
43 width: 100%;
44 height: 100%;
45 margin-bottom: 0;
46 }
47
48 .pk-inline-posts-container .pk-overlay-background img {
49 width: 100%;
50 height: 100%;
51 -o-object-fit: cover;
52 object-fit: cover;
53 font-family: 'object-fit: cover;';
54 }
55
56 .pk-inline-posts-container .pk-overlay-ratio:before {
57 content: '';
58 display: table;
59 box-sizing: border-box;
60 width: 0;
61 height: 100%;
62 }
63
64 .pk-inline-posts-container .pk-ratio-landscape:before {
65 padding-bottom: 75%;
66 }
67
68 .pk-inline-posts-container .pk-overlay-link {
69 display: block;
70 width: 100%;
71 height: 100%;
72 }
73
74 .pk-inline-posts-container .pk-post-inner:not(:last-child) {
75 margin-bottom: 1.5rem;
76 }
77
78 .pk-inline-posts-container .pk-post-meta {
79 display: flex;
80 flex-wrap: wrap;
81 align-items: center;
82 }
83
84 .pk-inline-posts-container .pk-post-meta .sep {
85 display: inline-block;
86 padding: 0 0.5rem;
87 }
88
89 .pk-inline-posts-container article:not(:first-child) {
90 margin-top: 40px;
91 }
92
93 @media (min-width: 576px) {
94 .pk-inline-posts-template-list .pk-post-outer {
95 display: flex;
96 flex-wrap: wrap;
97 margin-right: -20px;
98 margin-left: -20px;
99 }
100 .pk-inline-posts-template-list .pk-post-inner {
101 position: relative;
102 width: 100%;
103 padding-right: 20px;
104 padding-left: 20px;
105 flex: 0 0 50%;
106 max-width: 50%;
107 }
108 .pk-inline-posts-template-list .pk-post-inner:not(:last-child) {
109 margin-bottom: 0;
110 }
111 .pk-inline-posts-template-list .pk-post-inner:first-child:last-child {
112 flex: 0 0 100%;
113 max-width: 100%;
114 }
115 .pk-inline-posts-template-list .pk-post-inner + .pk-post-inner {
116 margin-top: 0;
117 display: flex;
118 flex-direction: column;
119 }
120 }
121
122 .pk-inline-posts-template-grid .pk-post-inner + .pk-post-inner {
123 margin-top: 1rem;
124 }
125
126 @media (min-width: 576px) {
127 .pk-inline-posts-template-grid {
128 display: flex;
129 flex-wrap: wrap;
130 margin-right: -20px;
131 margin-left: -20px;
132 }
133 .pk-inline-posts-template-grid article {
134 position: relative;
135 width: 100%;
136 padding-right: 20px;
137 padding-left: 20px;
138 flex: 0 0 50%;
139 max-width: 50%;
140 }
141 .pk-inline-posts-template-grid article:nth-child(-n+2) {
142 margin-top: 0;
143 }
144 .pk-inline-posts-template-grid[data-columns="1"] {
145 flex-direction: column;
146 }
147 .pk-inline-posts-template-grid[data-columns="1"] article {
148 flex: 0 0 100%;
149 max-width: 100%;
150 }
151 .pk-inline-posts-template-grid[data-columns="1"] article:not(:first-child) {
152 margin-top: 40px;
153 }
154 }
155
156 @media (min-width: 1200px) {
157 .pk-inline-posts-template-grid[data-columns="3"] article {
158 flex: 0 0 33.3333333333%;
159 max-width: 33.3333333333%;
160 }
161 .pk-inline-posts-template-grid[data-columns="3"] article:nth-child(-n+3) {
162 margin-top: 0;
163 }
164 .pk-inline-posts-template-grid[data-columns="4"] article {
165 flex: 0 0 25%;
166 max-width: 25%;
167 }
168 .pk-inline-posts-template-grid[data-columns="4"] article:nth-child(-n+4) {
169 margin-top: 0;
170 }
171 }
172