Skip to content

Commit d6de30f

Browse files
committed
Ref #449 add icon of external link in sidebar by modifying the style.css
1 parent 0986164 commit d6de30f

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

_quarto.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ website:
4242
- section: "Our Cookbooks"
4343
href: our-cookbooks.qmd
4444
contents:
45-
- text: "PO.DAAC Tutorials"
45+
- text: "PO.DAAC Tutorials"
4646
href: https://podaac.github.io/tutorials/
47-
- text: "ASDC Mission Tutorials"
47+
- text: "ASDC Mission Tutorials"
4848
href: https://nasa.github.io/ASDC_Data_and_User_Services/
49-
- text: "NSIDC Data Cookbook"
49+
- text: "NSIDC Data Cookbook"
5050
href: https://nsidc.github.io/NSIDC-Data-Cookbook/
51-
- text: "OBDAAC Ocean Data Cookbook"
51+
- text: "OBDAAC Ocean Data Cookbook"
5252
href: https://nasa.github.io/oceandata-notebooks/
53-
- text: "ORNL DAAC Airborne Tutorials"
53+
- text: "ORNL DAAC Airborne Tutorials"
5454
href: https://ornldaac.github.io/airborne/
55-
- text: "ORNL DAAC GEDI Tutorials"
55+
- text: "ORNL DAAC GEDI Tutorials"
5656
href: https://ornldaac.github.io/gedi_tutorials/
5757

5858
# ============================================================

styles.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
1+
#quarto-sidebar a.sidebar-link[href^="https://"]:not([href^="https://nasa-openscapes.github.io/earthdata-cloud-cookbook"])::after {
2+
content: "";
3+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z"/><path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z"/></svg>');
4+
background-size: contain;
5+
background-repeat: no-repeat;
6+
background-position: center center;
7+
margin-left: 0.2em;
8+
padding-right: 0.75em;
9+
}
210
.sidebar-logo {
311
max-width: 150px;
412
}
@@ -14,4 +22,4 @@
1422
.platform-table td > div.sourceCode {
1523
margin-top: 0.3rem;
1624
margin-bottom: 0.3rem;
17-
}
25+
}

0 commit comments

Comments
 (0)