Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Asc Public Docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Asc Public Docs
Commits
4e63a0e6
Unverified
Commit
4e63a0e6
authored
11 months ago
by
Jacob Cain
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Header and tooltip CSS (#100)
* better glossary tooltips * small css adj
parent
1f9b0452
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
custom_theme/main.html
+7
-0
7 additions, 0 deletions
custom_theme/main.html
docs/css/extras.css
+115
-4
115 additions, 4 deletions
docs/css/extras.css
with
122 additions
and
4 deletions
custom_theme/main.html
+
7
−
0
View file @
4e63a0e6
...
...
@@ -2,6 +2,13 @@
{% block scripts %}
<script
async
type=
"text/javascript"
src=
"https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DOI"
id=
"_fed_an_ua_tag"
></script>
<script>
let
myAbbrs
=
document
.
getElementsByTagName
(
"
abbr
"
)
for
(
let
i
=
0
;
i
<
myAbbrs
.
length
;
i
++
)
{
myAbbrs
[
i
].
dataset
.
title
=
myAbbrs
[
i
].
title
myAbbrs
[
i
].
removeAttribute
(
"
title
"
)
}
</script>
{{super()}}
{% endblock %}
...
...
This diff is collapsed.
Click to expand it.
docs/css/extras.css
+
115
−
4
View file @
4e63a0e6
/* This handles the issue where mkdocs-css and uswds-css are in conflict. Both try to set html to a specific font-size percentage.
mkdocs-css makes the font too large causing the usa banner to be too large. uswds-css makes the page font too small.
Therefore a solution is to set the font-size percentage in the middle.*/
/* mkdocs-css enlarges the whole page, so this scales back some of the uswds-css components*/
html
{
font-size
:
12
0%
!important
;
font-size
:
12
5%
;
}
@font-face
{
font-family
:
"Public Sans Web"
;
font-style
:
normal
;
font-weight
:
400
;
font-display
:
fallback
;
src
:
url(https://asc-public-docs.s3.us-west-2.amazonaws.com/common/uswds/3.6.0/fonts/public-sans/PublicSans-Medium.woff2)
format
(
"woff2"
);
}
@font-face
{
font-family
:
"Public Sans Web"
;
font-style
:
normal
;
font-weight
:
700
;
font-display
:
fallback
;
src
:
url(https://asc-public-docs.s3.us-west-2.amazonaws.com/common/uswds/3.6.0/fonts/public-sans/PublicSans-Bold.woff2)
format
(
"woff2"
);
}
.usa-banner__header-text
,
.usa-banner__button
,
.usa-banner__guidance
{
font-family
:
Public
Sans
Web
,
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Roboto
,
Helvetica
,
Arial
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
,
Segoe
UI
Symbol
;
}
.usa-banner__guidance
{
font-size
:
.8rem
;
}
.usa-banner__button
{
font-size
:
.6rem
;
font-weight
:
400
;
}
.usa-banner__button
::after
,
.usa-banner__button
[
aria-expanded
=
"true"
]
::after
{
height
:
0.8rem
;
width
:
0.8rem
;
mask-size
:
0.8rem
;
}
@media
(
max-width
:
39.99rem
)
{
.usa-banner__button
::after
,
.usa-banner__button
[
aria-expanded
=
"true"
]
::after
{
height
:
2.4rem
;
width
:
2.4rem
;
mask-size
:
1.2rem
;
}
.usa-banner__button
[
aria-expanded
=
"true"
]
::before
{
height
:
2.4rem
;
width
:
2.4rem
;
}
.usa-banner__header
{
min-height
:
2.4rem
;
padding-top
:
0.4rem
;
padding-bottom
:
0.4rem
;
}
}
@media
(
min-width
:
40rem
)
{
.usa-banner__header
{
padding-top
:
0.2rem
;
padding-bottom
:
0.2rem
;
}
}
.usa-banner__header-flag
{
width
:
.8rem
;
margin-top
:
1px
;
}
.usa-banner__header-text
{
font-size
:
.6rem
;
line-height
:
1.2
;
}
.usa-banner__header
{
margin-left
:
auto
;
margin-right
:
auto
;
max-width
:
61rem
;
padding-left
:
0.8rem
;
}
.usa-banner__inner
{
padding-left
:
0rem
!important
;
}
.usa-banner__icon
{
width
:
2rem
;
}
.header-search
{
max-width
:
59.5rem
;
margin-left
:
auto
;
margin-right
:
auto
;
}
@media
screen
and
(
min-width
:
0px
)
{
abbr
[
data-title
]
{
position
:
relative
;
}
abbr
[
data-title
]
:hover::after
,
abbr
[
data-title
]
:focus::after
{
content
:
attr
(
data-title
);
background-color
:
#1e1e1e
;
color
:
white
;
position
:
absolute
;
left
:
0
;
top
:
22px
;
min-width
:
15rem
;
border-radius
:
4px
;
box-shadow
:
1px
1px
4px
0
rgba
(
1
,
1
,
1
,
0.5
);
font-size
:
14px
;
padding
:
3px
5px
;
z-index
:
50
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment