cmu-web-kilt 0.8.20 → 0.8.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/css/cmu-app.css +23 -0
  4. data/css/cmu-cms.css +63 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2450fb23414f53bfce85737aa21abe01785476dc3dc3d34938db03f65b2d3f7c
4
- data.tar.gz: 904439b8475bb949d4de6db4c880c1bf9ae4ba211348451f814c3bdae37f663a
3
+ metadata.gz: f6c5b9f04add3154c13f0971817c95b663d0566414671e8760c52849ecec489f
4
+ data.tar.gz: 64b4520b0bfb8d7f169b06ed3b0db7b4dc9429e1aef812c710fe78e3a73d05ba
5
5
  SHA512:
6
- metadata.gz: dee196d59b94bd7510c4f4b303f0db19a4db8f17a1a829ac9aac5a5d53e32c9d8ab35d2741b7906c0a9e2a1caf660d296e8b3ad7ebcf3933d15de83b4693be63
7
- data.tar.gz: e347449c960f9eadbcc77d34446f8eaaba0b28232f28f3696833c3251738e5f6bc597c9aa8e5affd19152809dfb89d9031754257c527ad955e8cf5197d56fb1f
6
+ metadata.gz: 52808e9830667a45c59604d63b7e860376e83af42e3daa745337daf71e236a03f2b40bafde6de16741ef55d894122382d7a956266130bef814025f6112c7ed5c
7
+ data.tar.gz: 1bdaf2426b5ca21f237f25ba2f974cb1e3d8c4234cb3ab9ea0b306cb964930a70f656272b7e7308c09d49d76928a84185625dc2aab98d480e61c502e67bf8c8d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.20
1
+ 0.8.21
data/css/cmu-app.css CHANGED
@@ -113,6 +113,13 @@ body:is(.cmu-app, .cmu-framed)
113
113
  box-sizing: border-box;
114
114
  max-width: 100%;
115
115
  }
116
+ /* Except the template's site search: its field's width plus its padding fill
117
+ the search box, and the magnifier sits over that padding. Counted inside
118
+ the width, the field comes up short and the magnifier lands outside it. */
119
+ body:is(.cmu-app, .cmu-framed) form.search input {
120
+ box-sizing: content-box;
121
+ max-width: none;
122
+ }
116
123
  body:is(.cmu-app, .cmu-framed) select.inline,
117
124
  body:is(.cmu-app, .cmu-framed) input[type="text"].inline {
118
125
  width: auto;
@@ -316,6 +323,13 @@ body:is(.cmu-app, .cmu-framed) :is(.cmu-field-row, .cmu-field-button, .cmu-sugge
316
323
  max-width: 12em;
317
324
  margin: 0 3.4em 0 1.25em;
318
325
  }
326
+ /* The search makes the roof taller, and the template pins the menu button
327
+ near its top: center the button too, so it lines up with the name */
328
+ .roof > div:has(> form.search):has(> .cmu-account) > .menu-btn {
329
+ top: 50%;
330
+ margin-top: 0;
331
+ transform: translateY(-50%);
332
+ }
319
333
  @media (max-width: 767px) {
320
334
  .roof .cmu-account {
321
335
  display: none;
@@ -2327,6 +2341,15 @@ body:is(.cmu-app, .cmu-framed) .cmu-tap-search > input {
2327
2341
  0 0 16px rgba(0, 0, 0, 0.6),
2328
2342
  0 0 40px rgba(0, 0, 0, 0.5);
2329
2343
  }
2344
+ /* The site's address, linked to its public page: white like the words around
2345
+ it, underlined so it still reads as a link */
2346
+ .cmu-sign-in-page.cmu-sign-in-page--photo > div > :first-child a {
2347
+ border-bottom: 0;
2348
+ color: inherit;
2349
+ text-decoration: underline;
2350
+ text-decoration-thickness: 1px;
2351
+ text-underline-offset: 0.2em;
2352
+ }
2330
2353
  /* A taller roof than other pages: with no site name or tabs under it, the
2331
2354
  wordmark strip is the page's whole header */
2332
2355
  header:has(+ main.cmu-sign-in-page) .roof {
data/css/cmu-cms.css CHANGED
@@ -13,6 +13,40 @@
13
13
  display: none !important;
14
14
  }
15
15
 
16
+ /* Search in a white roof: the template's magnifier is a white picture, made
17
+ for the dark search box in a red or gray roof (invert). In a white roof the
18
+ box is light gray and the magnifier disappears, so darken it. */
19
+ .roof:not(.invert) .search button {
20
+ filter: brightness(0.33);
21
+ }
22
+ /* A search field's magnifier. The template paints its white one into every
23
+ field whose placeholder is "Search", where it can't be seen on a white
24
+ page and typed text runs under it. Instead: the template's own drawing
25
+ (images/icon-magnify.png), redrawn as an SVG in the kit's muted gray, on
26
+ every search: search fields, that placeholder, the Search bar, a text box
27
+ in a Filters group and a box that filters a table. npm run check:template
28
+ fails if the template's picture changes. The roof's search keeps the
29
+ template's. */
30
+ input:is([type="search"], [placeholder="Search"], [data-cmu-filter]):not(.roof *),
31
+ :is(.cmu-search-bar, .cmu-filter-group) > input[type="text"] {
32
+ padding-right: 2.25em;
33
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 49'%3E%3Ccircle cx='15' cy='14.75' r='13' fill='none' stroke='%235b6670' stroke-width='4'/%3E%3Cpath d='M26.7 35.2 31.9 44.6' stroke='%235b6670' stroke-width='7.4' stroke-linecap='round'/%3E%3C/svg%3E");
34
+ background-position: right 0.7em center;
35
+ background-repeat: no-repeat;
36
+ background-size: auto 1.1em;
37
+ }
38
+
39
+ /* Template icons on a dark section (invert): the external-link mark is dark
40
+ gray and the contact icons (phone, fax, map pin) are black, made for white
41
+ pages. Make them white, as the template does for the link mark in its
42
+ menu. */
43
+ .invert a.external::after {
44
+ filter: invert(1) grayscale(1) brightness(2);
45
+ }
46
+ .invert .icon::before {
47
+ filter: invert(1);
48
+ }
49
+
16
50
  :root {
17
51
  --cmu-red: #c41230;
18
52
  --cmu-ink: #22262a;
@@ -594,6 +628,13 @@ img.cmu-transparent,
594
628
  margin-top: 0 !important;
595
629
  padding-top: 1em;
596
630
  }
631
+ /* A heading's text in a rule-bottom span, as each FAQ topic has: the span is
632
+ inline, so the template draws its rule under every line and a heading that
633
+ wraps gets a rule through its second line. As an inline block, it's one
634
+ rule under the last line, as wide as the longest. */
635
+ :is(h1, h2, h3) > .rule-bottom {
636
+ display: inline-block;
637
+ }
597
638
 
598
639
  /* FAQ teaser: a few questions and answers in columns, before a link to the FAQ */
599
640
  .cmu-faq-teaser {
@@ -2044,6 +2085,28 @@ table.cmu-compare {
2044
2085
  background: var(--cmu-amber-tint);
2045
2086
  color: var(--cmu-amber);
2046
2087
  }
2088
+ /* Labels that aren't a status: blue for what something is, outline for a
2089
+ plain tag beside it, such as what a site is built with */
2090
+ .cmu-pill--blue {
2091
+ background: var(--cmu-blue-tint);
2092
+ color: var(--cmu-blue);
2093
+ }
2094
+ .cmu-pill--outline {
2095
+ background: #fff;
2096
+ color: var(--cmu-muted);
2097
+ box-shadow: inset 0 0 0 1px var(--cmu-line);
2098
+ }
2099
+ /* Pills beside a heading's text: kept together, wrapping as one group. The
2100
+ space before the group sets it apart, and drops away when it wraps, so a
2101
+ group on its own line starts flush. */
2102
+ .cmu-pills {
2103
+ display: inline-flex;
2104
+ flex-wrap: wrap;
2105
+ gap: 0.4rem;
2106
+ vertical-align: middle;
2107
+ font-family: "Open Sans", Helvetica, sans-serif;
2108
+ line-height: 1.4;
2109
+ }
2047
2110
 
2048
2111
  /* Article (cmu-article): the top of a single news story or post, as CMU's
2049
2112
  news pages set it. An optional category (cmu-label), then the date (the
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmu-web-kilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.20
4
+ version: 0.8.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - CMU Web