Update sass reset and componets to use modern css and internal mixins to replace typey.
This commit is contained in:
parent
4b4234df6f
commit
3fdb351a8a
4 changed files with 285 additions and 361 deletions
|
|
@ -1,24 +0,0 @@
|
|||
// "More" link
|
||||
//
|
||||
// Styles the "Read more…" and "Help" links common on the web.
|
||||
|
||||
.more-link,
|
||||
%more-link {
|
||||
text-align: right;
|
||||
|
||||
@include rtl() {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&__help-icon {
|
||||
padding: 1px 0 1px 20px;
|
||||
background-image: image-url('navigation', 'more-link/more-link__help-icon.svg');
|
||||
background-position: 0 50%;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
@include rtl() {
|
||||
padding: 1px 20px 1px 0;
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><circle cx="8" cy="8" r="7" fill="#c5c5c5"/><path d="M8.767,10.847l-1.644,0c-0.004,-0.236 -0.007,-1.216 -0.007,-1.268c0,-0.533 0.089,-0.972 0.265,-1.316c0.176,-0.343 0.529,-0.73 1.058,-1.16c0.528,-0.43 0.844,-0.712 0.948,-0.845c0.159,-0.211 0.238,-0.443 0.238,-0.697c0,-0.352 -0.141,-0.654 -0.422,-0.906c-0.282,-0.251 -0.661,-0.377 -1.139,-0.377c-0.46,0 -0.844,0.131 -1.154,0.393c-0.309,0.263 -0.522,0.662 -0.638,1.2l-1.664,-0.207c0.047,-0.769 0.375,-1.423 0.983,-1.96c0.609,-0.538 1.407,-0.806 2.396,-0.806c1.041,0 1.868,0.272 2.483,0.816c0.615,0.543 0.922,1.177 0.922,1.899c0,0.4 -0.113,0.778 -0.338,1.135c-0.226,0.357 -0.709,0.843 -1.448,1.457c-0.383,0.319 -0.62,0.574 -0.713,0.768c-0.092,0.193 -0.134,1.376 -0.126,1.874ZM7.123,13.102l0,-1.629l1.666,0l0,1.629l-1.666,0Z" fill="#fff"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,24 +1,6 @@
|
|||
// Navbar
|
||||
//
|
||||
// A simple method to get navigation links to appear in one line.
|
||||
|
||||
.navbar,
|
||||
%navbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .5rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
|
||||
@include rtl() {
|
||||
flex-direction: row-reverse;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&__item,
|
||||
li {
|
||||
list-style-type: none;
|
||||
list-style-image: none;
|
||||
}
|
||||
.navbar {
|
||||
@extend %flex-inline;
|
||||
margin-block: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,49 +3,30 @@
|
|||
// Paged navigation is a list of page numbers when more than 1 page of content
|
||||
// is available.
|
||||
|
||||
.pagination,
|
||||
.pager,
|
||||
%pager {
|
||||
@include margin-top(.5);
|
||||
@include margin-bottom(.5);
|
||||
clear: both;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
@extend %flex-inline;
|
||||
@extend %link-nav;
|
||||
// Add vertical rhythm margins.
|
||||
@include margin-block(1);
|
||||
justify-content: center;
|
||||
|
||||
// A page item in the pager list.
|
||||
&__item {
|
||||
display: inline;
|
||||
padding: 0 .5em;
|
||||
list-style-type: none;
|
||||
background-image: none;
|
||||
.page-item {
|
||||
}
|
||||
|
||||
// The current page's list item.
|
||||
&__current-item {
|
||||
@extend %pager__item;
|
||||
font-weight: bold;
|
||||
&__item,
|
||||
.page-link {
|
||||
padding-inline: 2px;
|
||||
}
|
||||
|
||||
.active {
|
||||
font-weight: var(--fw-bold);
|
||||
}
|
||||
|
||||
.disabled {
|
||||
.page-link {
|
||||
@extend %disabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Zen selectors.
|
||||
//
|
||||
|
||||
// .pager-item - A list item containing a page number in the list of pages.
|
||||
// .pager-first - The first page's list item.
|
||||
// .pager-previous - The previous page's list item.
|
||||
// .pager-next - The next page's list item.
|
||||
// .pager-last - The last page's list item.
|
||||
// .pager-ellipsis - A concatenation of several list items using an ellipsis.
|
||||
|
||||
.pager-item,
|
||||
.pager-first,
|
||||
.pager-previous,
|
||||
.pager-next,
|
||||
.pager-last,
|
||||
.pager-ellipsis {
|
||||
@extend %pager__item;
|
||||
}
|
||||
|
||||
.pager-current {
|
||||
@extend %pager__current-item;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue