|
@@ -1,31 +1,38 @@
|
|
|
-.a8c-posts-list {
|
|
|
- margin-left: 0;
|
|
|
- .a8c-posts-list__listing {
|
|
|
- list-style: none;
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- }
|
|
|
+.a8c-posts-list__listing {
|
|
|
+ list-style: none;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
|
|
|
- .a8c-posts-list__item {
|
|
|
- display: block;
|
|
|
+.a8c-posts-list-item__featured span {
|
|
|
+ color: #{map-deep-get($config-global, "color", "background")};
|
|
|
+ background-color: #{map-deep-get($config-global, "color", "primary", "default")};
|
|
|
+ font-family: #{map-deep-get($config-global, "font", "family", "primary")};
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: #{map-deep-get($config-global, "font", "size", "sm")};
|
|
|
+ line-height: 1;
|
|
|
+ padding: calc(0.5 * #{map-deep-get($config-global, "spacing", "unit")}) calc(0.66 * #{map-deep-get($config-global, "spacing", "unit")} );
|
|
|
+}
|
|
|
|
|
|
- .a8c-posts-list-item__meta {
|
|
|
- color: #{map-deep-get($config-global, "color", "foreground", "light")};
|
|
|
- font-size: #{map-deep-get($config-global, "font", "size", "xs")};
|
|
|
- line-height: #{map-deep-get($config-global, "font", "line-height", "body")};
|
|
|
- }
|
|
|
+.a8c-posts-list__item {
|
|
|
+ display: block;
|
|
|
|
|
|
- .a8c-posts-list-item__excerpt {
|
|
|
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
|
|
|
- line-height: #{map-deep-get($config-global, "font", "line-height", "body")};
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
+ /* Vertical margins logic between posts */
|
|
|
+ margin-top: calc(3 * #{map-deep-get($config-global, "spacing", "vertical")});
|
|
|
+ margin-bottom: calc(3 * #{map-deep-get($config-global, "spacing", "vertical")});
|
|
|
+
|
|
|
+ &:first-child {
|
|
|
+ margin-top: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
- & > li {
|
|
|
- /* Vertical margins logic */
|
|
|
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
|
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
|
+ .entry > * {
|
|
|
+ /* Vertical margins logic between post details */
|
|
|
+ margin-top: #{map-deep-get($config-global, "spacing", "unit")};
|
|
|
+ margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
|
|
|
|
|
|
&:first-child {
|
|
|
margin-top: 0;
|
|
@@ -36,11 +43,21 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- & > li > a {
|
|
|
- font-family: #{map-deep-get($config-heading, "font", "family")};
|
|
|
- font-size: #{map-deep-get($config-heading, "font", "size", "h4")};
|
|
|
- font-weight: #{map-deep-get($config-heading, "font", "weight")};
|
|
|
- line-height: #{map-deep-get($config-heading, "font", "line-height", "h4")};
|
|
|
+ .a8c-posts-list-item__meta {
|
|
|
+ color: #{map-deep-get($config-global, "color", "foreground", "light")};
|
|
|
+ font-size: #{map-deep-get($config-global, "font", "size", "sm")};
|
|
|
+
|
|
|
+ a {
|
|
|
+ color: currentColor;
|
|
|
+
|
|
|
+ &:hover,
|
|
|
+ &:active {
|
|
|
+ color: #{map-deep-get($config-global, "color", "primary", "hover")};
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .a8c-posts-list-item__edit-link {
|
|
|
+ margin-left: #{map-deep-get($config-global, "spacing", "unit")};
|
|
|
}
|
|
|
-
|
|
|
}
|