| 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-widget-posts { |
| 11 |
--pk-posts-thumbnail-width: 80px; |
| 12 |
--pk-posts-thumbnail-border-radius: 100%; |
| 13 |
--pk-posts-thumbnail-gutter: 2rem; |
| 14 |
--pk-posts-number-color: #FFFFFF; |
| 15 |
--pk-posts-number-font-size: 80%; |
| 16 |
--pk-posts-number-top: 0; |
| 17 |
--pk-posts-number-left: 0; |
| 18 |
--pk-posts-number-right: initial; |
| 19 |
--pk-posts-number-bottom: initial; |
| 20 |
--pk-posts-number-width: 30px; |
| 21 |
--pk-posts-number-height: 30px; |
| 22 |
--pk-posts-number-line-height: 30px; |
| 23 |
--pk-posts-number-border-radius: 100%; |
| 24 |
} |
| 25 |
|
| 26 |
/*--------------------------------------------------------------*/ |
| 27 |
.pk-widget-posts .pk-post-item:not(:first-child) { |
| 28 |
margin-top: 1rem; |
| 29 |
} |
| 30 |
|
| 31 |
.pk-widget-posts .pk-post-outer { |
| 32 |
display: -webkit-box; |
| 33 |
display: -ms-flexbox; |
| 34 |
display: flex; |
| 35 |
} |
| 36 |
|
| 37 |
.pk-widget-posts .pk-post-thumbnail { |
| 38 |
position: relative; |
| 39 |
-webkit-box-flex: 0; |
| 40 |
-ms-flex: 0 0 var(--pk-posts-thumbnail-width); |
| 41 |
flex: 0 0 var(--pk-posts-thumbnail-width); |
| 42 |
margin-right: var(--pk-posts-thumbnail-gutter); |
| 43 |
} |
| 44 |
|
| 45 |
.pk-widget-posts .pk-post-thumbnail img { |
| 46 |
width: var(--pk-posts-thumbnail-width); |
| 47 |
height: var(--pk-posts-thumbnail-width); |
| 48 |
border-radius: var(--pk-posts-thumbnail-border-radius); |
| 49 |
-o-object-fit: cover; |
| 50 |
object-fit: cover; |
| 51 |
font-family: 'object-fit: cover;'; |
| 52 |
} |
| 53 |
|
| 54 |
.pk-widget-posts .pk-post-data { |
| 55 |
-webkit-box-flex: 1; |
| 56 |
-ms-flex-positive: 1; |
| 57 |
flex-grow: 1; |
| 58 |
width: 100%; |
| 59 |
} |
| 60 |
|
| 61 |
.pk-widget-posts .pk-post-number { |
| 62 |
position: absolute; |
| 63 |
top: var(--pk-posts-number-top); |
| 64 |
left: var(--pk-posts-number-left); |
| 65 |
right: var(--pk-posts-number-right); |
| 66 |
bottom: var(--pk-posts-number-bottom); |
| 67 |
width: var(--pk-posts-number-width); |
| 68 |
height: var(--pk-posts-number-height); |
| 69 |
line-height: var(--pk-posts-number-line-height); |
| 70 |
color: var(--pk-posts-number-color); |
| 71 |
text-align: center; |
| 72 |
border-radius: var(--pk-posts-number-border-radius); |
| 73 |
font-size: var(--pk-posts-number-font-size); |
| 74 |
} |
| 75 |
|
| 76 |
.pk-widget-posts .pk-post-data .meta-category { |
| 77 |
display: inline-block; |
| 78 |
margin-bottom: 0.25rem; |
| 79 |
} |
| 80 |
|
| 81 |
.pk-widget-posts .pk-post-data .entry-title { |
| 82 |
margin-bottom: 0.25rem; |
| 83 |
} |
| 84 |
|
| 85 |
.pk-widget-posts .pk-post-meta { |
| 86 |
display: -webkit-box; |
| 87 |
display: -ms-flexbox; |
| 88 |
display: flex; |
| 89 |
-ms-flex-wrap: wrap; |
| 90 |
flex-wrap: wrap; |
| 91 |
-webkit-box-align: center; |
| 92 |
-ms-flex-align: center; |
| 93 |
align-items: center; |
| 94 |
} |
| 95 |
|
| 96 |
.pk-widget-posts .pk-post-meta .sep { |
| 97 |
display: inline-block; |
| 98 |
padding: 0 0.5rem; |
| 99 |
} |
| 100 |
|
| 101 |
.pk-widget-posts .pk-post-meta-hide { |
| 102 |
display: none; |
| 103 |
} |
| 104 |
|
| 105 |
.pk-widget-posts-template-large .pk-post-item:not(:first-child) { |
| 106 |
margin-top: 2rem; |
| 107 |
} |
| 108 |
|
| 109 |
.pk-widget-posts-template-large .pk-post-outer { |
| 110 |
display: block; |
| 111 |
} |
| 112 |
|
| 113 |
.pk-widget-posts-template-large .pk-post-thumbnail { |
| 114 |
margin-right: 0; |
| 115 |
margin-bottom: 1rem; |
| 116 |
} |
| 117 |
|
| 118 |
.pk-widget-posts-template-large .pk-post-thumbnail img { |
| 119 |
width: 100%; |
| 120 |
height: auto; |
| 121 |
border-radius: 0; |
| 122 |
} |
| 123 |
|