gatsby-remark-dictionary
Version:
Create a dictionary of word and phrases to be converted to highlighted values and links. define once and all phrases will be converted during build time.
111 lines (97 loc) • 2.51 kB
JavaScript
import styled from '@emotion/styled';
export const StyledNextPrevious = styled('div')`
margin: 0px;
padding: 0px;
width: auto;
display: grid;
grid-template-rows: auto;
column-gap: 24px;
grid-template-columns: calc(50% - 8px) calc(50% - 8px);
.previousBtn {
cursor: pointer;
-moz-box-align: center;
-moz-box-direction: normal;
-moz-box-orient: horizontal;
margin: 0px;
padding: 0px;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
place-self: stretch;
border-radius: 3px;
border: 1px solid rgb(230, 236, 241);
transition: border 200ms ease 0s;
box-shadow: rgba(116, 129, 141, 0.1) 0px 3px 8px 0px;
text-decoration: none;
background-color: ${props => props.theme.colors.background};
color: ${props => props.theme.colors.text};
}
.nextBtn {
cursor: pointer;
-moz-box-align: center;
-moz-box-direction: normal;
-moz-box-orient: horizontal;
margin: 0px;
padding: 0px;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
place-self: stretch;
border-radius: 3px;
border: 1px solid rgb(230, 236, 241);
transition: border 200ms ease 0s;
box-shadow: rgba(116, 129, 141, 0.1) 0px 3px 8px 0px;
text-decoration: none;
background-color: ${props => props.theme.colors.background};
color: ${props => props.theme.colors.text};
}
.nextBtn:hover,
.previousBtn:hover {
text-decoration: none;
border: 1px solid #1ed3c6;
}
.nextBtn:hover .rightArrow,
.previousBtn:hover .leftArrow {
color: #1ed3c6;
}
.leftArrow {
display: block;
margin: 0px;
color: rgb(157, 170, 182);
flex: 0 0 auto;
font-size: 24px;
transition: color 200ms ease 0s;
padding: 16px;
padding-right: 16px;
}
.rightArrow {
flex: 0 0 auto;
font-size: 24px;
transition: color 200ms ease 0s;
padding: 16px;
padding-left: 16px;
display: block;
margin: 0px;
color: rgb(157, 170, 182);
}
.nextPreviousTitle {
display: block;
margin: 0px;
padding: 0px;
transition: color 200ms ease 0s;
}
.nextPreviousTitle span {
font-size: 16px;
line-height: 1.5;
font-weight: 500;
}
@media (max-width: 767px) {
display: block;
padding: 0 15px;
.previousBtn {
margin-bottom: 20px;
}
}
`;