-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-88: SystemSpecs: Support Sysmon Image DataList
For System Monitor, Image / Picture, and DataList: - Limit System Specs child plugins to these. - Style these in System Monitor layout. - Load System Monitor styles via new `app.*` stylesheet.
- Loading branch information
1 parent
491c385
commit 3fb8a30
Showing
4 changed files
with
240 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 77 additions & 56 deletions
133
taccsite_cms/contrib/taccsite_system_specs/templates/system_specs.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
taccsite_cms/static/site_cms/css/src/_imports/trumps/s-system-specs.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/* | ||
System Specifications | ||
Styles for System Specifications content which assumes external code: | ||
- custom properties | ||
(for `--global-...`) | ||
- `c-data-list` | ||
(for "Data List") | ||
- `s-sysmon` | ||
(for "System Monitor") | ||
Styleguide Trumps.Scopes.SystemSpecs | ||
*/ | ||
@import url("_imports/tools/media-queries.css"); | ||
|
||
|
||
|
||
/* Layout */ | ||
|
||
@media only screen and (--narrow-and-above) { | ||
.s-system-specs { | ||
display: flow-root; | ||
} | ||
.s-system-specs > * { | ||
display: inline-block; | ||
} | ||
.s-system-specs > figure { | ||
float: left; | ||
} | ||
} | ||
|
||
|
||
|
||
/* Spacing */ | ||
|
||
.s-system-specs { | ||
--row-height: 32px; | ||
} | ||
|
||
.s-system-specs > aside { | ||
margin-top: var(--row-height); | ||
} | ||
|
||
@media only screen and (--medium-and-below) { | ||
.s-system-specs > figure { | ||
margin-bottom: var(--row-height); | ||
} | ||
} | ||
|
||
|
||
|
||
/* Sizes */ | ||
|
||
@media only screen and (--medium-and-above) { | ||
.s-system-specs { | ||
--col-width--thin: 42%; | ||
--col-width--wide: 48%; | ||
--col-gutter: 10%; | ||
--col-padding: 40px; | ||
|
||
padding-inline: var(--col-padding); | ||
} | ||
.s-system-specs > div, | ||
.s-system-specs > aside { | ||
width: var(--col-width--thin); | ||
padding-inline: var(--col-padding); | ||
} | ||
.s-system-specs > figure { | ||
width: var(--col-width--wide); | ||
margin-right: var(--col-gutter); | ||
} | ||
} | ||
|
||
|
||
|
||
/* Position */ | ||
|
||
.s-system-specs > figure > img { | ||
display: block; /* to support margin */ | ||
} | ||
.s-system-specs > figure > figcaption { | ||
/* To nudge upward on top of image */ | ||
position: relative; /* to prevent image from appearing on top */ | ||
margin-top: -40px; | ||
} | ||
|
||
@media only screen and (--medium-and-below) { | ||
.s-system-specs > figure > img { | ||
/* To center horizontally */ | ||
width: 60%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} | ||
@media only screen and (--medium-and-above) { | ||
.s-system-specs > figure > figcaption { | ||
/* To center horizontally */ | ||
width: 80%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
|
||
|
||
/* Components */ | ||
|
||
.s-system-specs .c-data-list__key a { | ||
font-weight: var(--medium); | ||
} |
7 changes: 7 additions & 0 deletions
7
taccsite_cms/static/site_cms/css/src/app.taccsite_system_specs.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* DO NOT ADD STYLES HERE; ONLY IMPORT OTHER STYLESHEETS */ | ||
|
||
/* Organize via ITCSS */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/IAA9Cw */ | ||
|
||
/* TRUMPS */ | ||
@import url("_imports/trumps/s-system-specs.css"); |