Skip to content
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

Hotfix/texascale org/2020 launch #256

Merged
merged 46 commits into from
Jun 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
64ced52
GL-36: taccsite_custom: Texascale 2020 launch reqs
wesleyboar Nov 25, 2020
16a354e
GL-36: taccsite_custom: Texascale 2020 Fixs Part 1
wesleyboar Nov 25, 2020
632530b
GL-36: taccsite_custom: Texascale 2020 Tpl's Hack
wesleyboar Nov 25, 2020
5dd8568
GL-36: Texascale Hack Note, taccsite_custom commit
wesleyboar Nov 26, 2020
38c594f
GL-36: taccsite_custom: Texascale 2020 Fixs Part 2
wesleyboar Nov 27, 2020
61ae69b
WIP: GL-36: taccsite_custom: Image Map Widget split
wesleyboar Nov 28, 2020
baf0fc3
GL-36: Add & Indent template {{block.super}}'s
wesleyboar Nov 30, 2020
2d161d8
WIP: GL-36: taccsite_custom: Image Map Widget load
wesleyboar Nov 30, 2020
1f7fc6e
WIP: GL-36: taccsite_custom: Image Map Widget rebase
wesleyboar Nov 30, 2020
c0994ef
GL-36: taccsite_custom: Minor snippet update
wesleyboar Nov 30, 2020
33e156f
GL-36: taccsite_custom: Tiny texascale-org CSS fix
wesleyboar Nov 30, 2020
708f1f7
GL-36: taccsite_custom: Cleanup texascale-org CSS
wesleyboar Nov 30, 2020
e4a2da1
GL-36: Update/Fix Frontera Secret Sauce styles
wesleyboar Nov 30, 2020
f81d004
Noop: taccsite_cms: Fix outdated comment
wesleyboar Nov 30, 2020
c018af2
GL-36: Document `c-image-map` styles
wesleyboar Nov 30, 2020
af76b17
GL-36: taccsite_custom: Minor Texascale.org fixes
wesleyboar Nov 30, 2020
6ae8ec2
GL-36: taccsite_custom: Migrate texascale-org !39
wesleyboar Nov 30, 2020
684ed45
GL-36: taccsite_custom: Migrate texascale-org !40
wesleyboar Nov 30, 2020
fcfc35e
GL-36: Fix HACK templates that use {{block.super}}
wesleyboar Nov 30, 2020
d483479
GL-36: Add missing texascale.org `fullwidth.html`
wesleyboar Nov 30, 2020
90b8f46
GL-36: taccsite_custom: Fix bad CSS file name
wesleyboar Dec 1, 2020
ff5c657
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 1, 2020
f73a3eb
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 2, 2020
1c47ffb
Quick: taccsite_custom: Merged master
wesleyboar Dec 2, 2020
ce9065f
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 2, 2020
aa614e8
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 2, 2020
f393a44
Quick: taccsite_custom: Fix page titles
wesleyboar Dec 4, 2020
bd3e00d
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 4, 2020
8e21a17
Submod: Task/texascale org/2020 launch
wesleyboar Dec 4, 2020
244da04
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 4, 2020
4b0f475
Quick: Fix page titles on deprecated templates
wesleyboar Dec 4, 2020
7fd1ebb
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 9, 2020
762b795
Merge branch 'master' into hotfix/texascale-org/2020-launch
wesleyboar Dec 15, 2020
78dea73
Merge remote-tracking branch 'upstream/main' into hotfix/texascale-or…
wesleyboar Jan 20, 2021
db53365
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar Jan 22, 2021
d8513e7
Quick: Update `WARNING.md` with latest progress
wesleyboar Jan 22, 2021
2dc7c26
Quick: Fix typo
wesleyboar Jan 22, 2021
233846f
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar Jan 27, 2021
48a9c5a
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar Mar 24, 2021
51bf862
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar Apr 22, 2021
204622b
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar May 10, 2021
3cee741
Merge branch 'main' into hotfix/texascale-org/2020-launch
wesleyboar Jun 17, 2021
431004c
Quick: Texascale: Remove unwanted table border
wesleyboar Jun 19, 2021
62d9691
Quick: Remove duplicate footnote link
wesleyboar Jun 19, 2021
754047a
Quick: Remove outdated temp templates
wesleyboar Jun 19, 2021
c695c27
Quick: Texascale: Fix image map to laod from core
wesleyboar Jun 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions taccsite_cms/static/site_cms/css/src/_imports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ These styles are only to be imported by other stylesheets.

## Rules

1. Files __must__ be [located in appropriate directory](#Directories).
1. Files __must__ be [documented in appropriate format](#Documentation%20Format).
1. Files __must__ follow the [style guide](#Style%20Guide).
1. Files __must__ be [located in appropriate directory](#directories).
1. Files __must__ be [documented in appropriate format](#documentation-format).
1. Files __must__ follow the [style guide](#style-guide).

1. Styles __should__ be [structural](#structure-vs-skin) and __may__ be a [skin](#structure-vs-skin).

## Directories

Expand Down Expand Up @@ -37,3 +39,10 @@ Styleguide __StylesSection__.__StylesName__
## Style Guide

See [TACC: CSS Style Guide](https://confluence.tacc.utexas.edu/x/ZQALBg).

## Structure vs. Skin

- Most Core styles will be _only __or__ mostly_ for [structure][tacc-oocss].
- Some core styles may be [skin][tacc-oocss].

[tacc-oocss]: https://confluence.tacc.utexas.edu/x/VwALBg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
Image Map

An image with (optional) counters and (related) captions.

Caveat: The element for `.c-image-map__item-toggle` must support `:focus`; for options, see https://stackoverflow.com/a/1600194.

Notice: These classes apply opinionated styles (based on https://texascale.org/2019/visualizing-science/whats-in-a-node/) that should be revisited when alternative styles arrive (from future implementations):

- `.c-image-map--has-caption-toggle-alignment`
- `.c-image-map__item--unmapped`

.c-image-map--should-position-items - Allow items to respect absolute position that is relative to the image
.c-image-map--has-item-counters - Renders counter element and text for each item
.c-image-map--has-toggle-counters - Renders counter text inside each toggle
.c-image-map--has-caption-toggle-alignment - Standard alignment of captions and toggles

Markup: ../../../../../../snippets/image-map-whats-in-a-node.html

Styleguide Components.ImageMap
*/

/* Styles are organized by OOCSS methodology */
/* SEE: https://confluence.tacc.utexas.edu/x/VwALBg */
@import url("./c-image-map.structure.css");
@import url("./c-image-map.skin.css");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* No skin styles exist, yet */
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
/* PROPERTIES */

.c-image-map {
--button-shape-size: 50px;
--toggle-shape-size: 60px;
--caption-width: 100%;
}
.c-image-map--has-caption-toggle-alignment {
--caption-toggle-offset-horz: 0px;
--caption-toggle-offset-vert: calc( ( var(--toggle-shape-size) / 2 ) + 1em );
}



/* ROOT */

/* Shrink-wrap component */
.c-image-map {
display: table;
}
/* On narrow viewport, center the widget */
@media only screen and (max-width: 991px) {
.c-image-map { margin: 0 auto; }
}

/* Set dynamic image size */
/* FAQ: Organized under "ROOT" only because it defines size of entire widget */
.c-image-map__image {
/* FAQ: Removes inline whitespace between container and image */
display: block;
/* Stretch component */
width: 100%;
/* Prevent image from growing larger than native size */
max-width: 495px;
}



/* ELEMENTS */


/* Item */

.c-image-map__item {
width: 100%;
}


/* Captions */

.c-image-map__item-caption {
width: var(--caption-width);
}


/* Close Buttons */

/* On wide viewport, hide close button */
@media only screen and (min-width: 992px) {
.c-image-map__item-close {
display: none !important; /* overwrite `display: flex` */
}
}


/* Toggles */

.c-image-map__item-toggle {
width: var(--toggle-shape-size);
height: var(--toggle-shape-size);

/* Set transform origin to horizontal center */
margin-top: calc( -1 * var(--toggle-shape-size) / 2 );
margin-left: calc( -1 * var(--toggle-shape-size) / 2 );
}


/* Toggles & Captions */

/* Toggles & Captions: Position Anchors */

/* Anchor child elements */
.c-image-map {
position: relative;
}
/* Prepare to position toggle horz. (directly) and vert. (via item) */
.c-image-map:not(.c-image-map--should-position-items) .c-image-map__item {
position: relative;
}
/* Position and size items over image */
.c-image-map:not(.c-image-map--should-position-items) .c-image-map__items {
position: absolute;
top: 0;
left: 0;
right: 0;
}
/* Allow relative alignment (x-axis, y-axis) and layering (z-axis) */
.c-image-map__item-caption {
position: relative;
}

/* Toggles & Captions: UX */

/* Toggles & Captions: UX: Cursors */

/* On narrow viewport, suggest toggles' click action to users */
@media only screen and (max-width: 991px) {
.c-image-map__item-toggle {
cursor: pointer;
}
}

/* Toggles & Captions: UX: Hide/Show Captions */

/* Hide captions by default */
.c-image-map__item-toggle ~ .c-image-map__item-caption {
visibility: hidden;
}
/* Show the description on item click or focus or target */
/* FAQ: A click provides focus on focusable items */
/*
/* Click on item toggle should SHOW caption */
.c-image-map__item-toggle:focus ~ .c-image-map__item-caption,
/* Click on item caption should NOT HIDE caption */
.c-image-map__item:focus-within .c-image-map__item-caption,
/* Click on another item caption should HIDE caption of target item */
/* CAVEAT: Without focus on any other item, caption of target item is shown */
.c-image-map:not(:focus-within) .c-image-map__item:target .c-image-map__item-caption {
visibility: visible;
}
/* On wide viewport, always show captions */
@media only screen and (min-width: 992px) {
.c-image-map__item-caption {
visibility: visible !important; /* overwrite `.c-image-map__item-toggle… .c-image-map__item-caption` */
}
}


/* Toggles & Close Buttons */

/* Toggle and close markup should suggest clickability */
button.c-image-map__item-toggle:hover,
button.c-image-map__item-close:hover {
cursor: pointer;
}
/* As a link, toggle and close should not look like default links */
a.c-image-map__item-toggle:hover,
a.c-image-map__item-close:hover {
text-decoration: none;
}
/* As a button, toggle and close should not look like default buttons */
button.c-image-map__item-toggle,
button.c-image-map__item-close {
border: none;
}


/* Toggles, Counters, & Close Buttons */

.c-image-map__item-toggle,
.c-image-map--has-item-counters .c-image-map__item::before,
.c-image-map__item-close {
/* Align any text vertically and horizontally */
display: flex;
justify-content: center;
align-items: center;
}



/* MODIFIERS */


/* Position Items */

/* Prepare to position toggle horz. (directly) and vert. (via item) */
.c-image-map--should-position-items .c-image-map__item,
.c-image-map--should-position-items .c-image-map__item-toggle {
position: absolute;
}
/* IMPORTANT: Define these per instance. Key:
- `unique-instance--item…` is a `c-image-map__item`
- `top` is the vertical y position of the item & toggle
- `left` is the horizontal x position of the item & toggle */
/*
#unique-instance--item_1_name { top: 10% }
#unique-instance--item_1_name .c-image-map__item-toggle { left: 5%; }

#unique-instance--item_2_name { top: 20% }
#unique-instance--item_2_name .c-image-map__item-toggle { left: 5%; }

#unique-instance--item_3_name { top: 30% }
#unique-instance--item_3_name .c-image-map__item-toggle { left: 5%; }

#unique-instance--item_4_name { top: 40% }
#unique-instance--item_4_name .c-image-map__item-toggle { left: 5%; }

#unique-instance--item_5_name { top: 50% }
#unique-instance--item_5_name .c-image-map__item-toggle { left: 5%; }
*/


/* Toggle Counters */

/* Assign numbers to markers */
.c-image-map--has-toggle-counters {
counter-reset: items;
}
.c-image-map--has-toggle-counters .c-image-map__item {
counter-increment: items;
}
.c-image-map--has-toggle-counters .c-image-map__item-toggle::before {
content: counter(items);
}


/* Item Counters */

/* Assign numbers to markers */
.c-image-map--has-item-counters {
counter-reset: items;
}
.c-image-map--has-item-counters .c-image-map__item {
counter-increment: items;
}
.c-image-map--has-item-counters .c-image-map__item::before {
content: counter(items);
}

/* On narrow viewport, hide counters for all items */
@media only screen and (max-width: 991px) {
.c-image-map--has-item-counters .c-image-map__item::before {
display: none;
}
}
/* On narrow viewport, hide counters for unmapped items */
.c-image-map--has-item-counters .c-image-map__item--unmapped::before {
display: none;
}


/* Caption-Toggle Alignment */

/* Fix scroll position for toggle anchor links to item */
.c-image-map--has-caption-toggle-alignment .c-image-map__item {
scroll-snap-align: start;
scroll-margin: var(--caption-toggle-offset-vert);
}

/* Align caption far left, but still aligned vertically with toggle */
.c-image-map--has-caption-toggle-alignment .c-image-map__item-caption {
left: var(--caption-toggle-offset-horz);
}

/* On narrow screen, move toggles of unmapped items to center of widget */
@media only screen and (max-width: 991px) {
.c-image-map--has-caption-toggle-alignment .c-image-map__item--unmapped .c-image-map__item-toggle {
left: 50% !important; /* overwrite item ID selector */
}
}
/* On wide screen, move toggles of unmapped items to top-right of caption */
@media only screen and (min-width: 992px) {
.c-image-map--has-caption-toggle-alignment .c-image-map__item--unmapped .c-image-map__item-toggle {
left: calc( var(--caption-toggle-offset-horz) + var(--caption-width) ) !important; /* overwrite item ID */
}
}

/* On narrow viewport, set caption atop (z-axis) toggles below it (y-axis) */
@media only screen and (max-width: 991px) {
.c-image-map--has-caption-toggle-alignment .c-image-map__item-caption {
/* Layer caption above toggle */
z-index: 1;

/* Position caption below toggle */
margin-top: var(--caption-toggle-offset-vert);
}
}
/* On wide viewport, set toggle atop (z-axis) its own caption (if nearby) */
/* FAQ: An `.c-image-map__item--unmapped` places caption near toggle */
@media only screen and (min-width: 992px) {
.c-image-map--has-caption-toggle-alignment .c-image-map__item-toggle {
/* Layer toggle above caption */
z-index: 1;
}
}