-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: save 2 css snippets #459
Changes from all commits
c7bdcea
53af6f6
069184b
942641f
2a6a775
0ba35db
c0b643c
0dbe6c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<template id="css-banner-tacc--notes"> | ||
<!-- TO DYNAMICALL REDUCE HEIGHT OF BANNER: NO NEED to edit this stylesheet. Edit banner "Picture / Image" on CMS. Set `style="height: 60vh; max-height: 550px; min-height: 230px;"`. To use static height, set `style="height: 550px"` instead. --> | ||
</template> | ||
<style id="css-banner-tacc"> | ||
/* To limit width of title on wide screens */ | ||
@media (width >= 992px) { | ||
|
@@ -23,7 +26,7 @@ | |
left: 0; top: 0; bottom: 0; right: 0; | ||
background-color: var(--global-color-primary--x-light); | ||
} | ||
.banner-cell--major a:hover .u-highlight { | ||
.banner-cell--major a:hover :is(.u-highlight, .highlight) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two class names are supported: ITCSS class name, simple class name. |
||
background-color: var(--global-color-accent--normal); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<style id="css-global-a11y"> | ||
/* 1. To make mobile menu button stand out */ | ||
.navbar-dark .navbar-toggler { | ||
border-color: var(--global-color-primary--normal); | ||
} | ||
|
||
/* 2. To make keyboard focus stand out on header */ | ||
/* | ||
.nav-link:focus-visible, | ||
#header-logo:focus-visible, | ||
.navbar-dark .navbar-toggler:focus-visible { | ||
*/ | ||
Comment on lines
+8
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not know why this is commented out. When I remember, or when prodded, I will comment it or remove it accordingly. |
||
#s-header :focus, | ||
#header-branding a:focus, | ||
.s-search-bar::part(input):focus, | ||
.s-search-bar::part(button):focus { | ||
outline-color: var(--global-color-primary--xx-light); | ||
} | ||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If dev is asked to change height of the banner, and sees this snippet, they may be tempted to work in here. But this stylesheet intentionally does not manage the banner height, because CMS editor should use
style
tag to set image height reliably.¹Because TACC/Core-CMS clones
style
attribute of CMS image to parent tags that appear if image is made a link or given a caption.