Merge pull request #379 from the-programmers-hangout/ui-fix-links-underline-2

ui: fix links underline
This commit is contained in:
Jean-Philippe Sirois
2020-11-12 04:01:14 -05:00
committed by GitHub
2 changed files with 12 additions and 20 deletions
+9 -20
View File
@@ -168,29 +168,18 @@ export const MarkdownWrapper = styled.div`
} }
a:not(.anchor):not(.button) { a:not(.anchor):not(.button) {
display: inline-block;
position: relative;
font-weight: 700;
color: ${(props) => (props.theme.name === "dark" ? "#f9f9f9" : "#172129")};
text-decoration: none; text-decoration: none;
word-break: break-word; color: inherit;
cursor: pointer; background-image: linear-gradient(120deg, #feaf6d 0%, #ff70a5 100%);
background-repeat: no-repeat;
&::after { background-size: 100% 3px;
content: ""; background-position: 0 100%;
display: block; transition: all 0.125s ease-in;
width: 100%; font-weight: 700;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(92.97deg, #feaf6d 0%, #ff70a5 100%);
}
&:hover { &:hover {
background: linear-gradient(92.97deg, #feaf6d 0%, #ff70a5 100%); color: black;
background-clip: text; background-size: 100% 100%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} }
} }
` `
@@ -51,11 +51,13 @@ export const Box = styled.div`
position: relative; position: relative;
color: #fff !important; color: #fff !important;
font-weight: 400 !important; font-weight: 400 !important;
background: none !important;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
margin-bottom: 1px; margin-bottom: 1px;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
font-size: 18px; font-size: 18px;
transition: none !important;
&:hover { &:hover {
background: none; background: none;
@@ -66,6 +68,7 @@ export const Box = styled.div`
} }
&::after { &::after {
margin-left: 4px;
position: absolute; position: absolute;
left: 100%; left: 100%;
display: block; display: block;