updates arrows in footer

This commit is contained in:
akcodez
2023-06-27 13:33:40 -07:00
parent 91bca194d7
commit ca72529459
4 changed files with 18 additions and 10 deletions

View File

@@ -4,12 +4,12 @@
background-image: url(../img/icons/arrow-up-right.svg);
background-repeat: no-repeat;
display: inline-block;
background-size: 15px;
background-size: 16px; // changed from 15px
padding: 0 4px 0 8px;
width: 14px;
background-position: left 0 bottom 2px;
transition: background-position 100ms ease-in-out;
width: 16px; // changed from 14px
height: 16px; // added this line
background-position: center; // changed this line
transition: transform 100ms ease-in-out; // changed from background-position
// Note: the background position is based on the padding, so it might
// need adjustments for elements with more padding to make it line up
// with the text. I thought background-origin: content-box might fix this
@@ -17,7 +17,7 @@
}
&:hover::after {
background-position: left 4px bottom 2px;
transform: translate(3px, -3px); // Translate the arrow up and to the right
}
.fa-external-link {

View File

@@ -4,9 +4,9 @@
"node-sass": "^7.0.0"
},
"scripts": {
"build-css": "node-sass --include-path scss xrpl.scss ../assets/css/devportal2022-v18.css --output-style compressed",
"build-css-out": "node-sass --include-path scss xrpl.scss ../out/assets/css/devportal2022-v18.css --output-style compressed --source-map true",
"build-css-watch-out": "node-sass --recursive --watch --include-path scss xrpl.scss ../out/assets/css/devportal2022-v18.css --output-style compressed --source-map true"
"build-css": "node-sass --include-path scss xrpl.scss ../assets/css/devportal2022-v19.css --output-style compressed",
"build-css-out": "node-sass --include-path scss xrpl.scss ../out/assets/css/devportal2022-v19.css --output-style compressed --source-map true",
"build-css-watch-out": "node-sass --recursive --watch --include-path scss xrpl.scss ../out/assets/css/devportal2022-v19.css --output-style compressed --source-map true"
},
"dependencies": {
"sass": "^1.26.10"