|
| 1 | +$style-guide-bad-bg = lighten(desaturate($red, 80%), 80%) |
| 2 | +$style-guide-bad-text = darken(desaturate($red, 80%), 20%) |
| 3 | +$style-guide-good-bg = lighten(desaturate($green, 80%), 85%) |
| 4 | +$style-guide-good-text = darken(desaturate($green, 80%), 10%) |
| 5 | + |
| 6 | +$style-guide-priority-a-bg = $style-guide-bad-text |
| 7 | +$style-guide-priority-a-color = white |
| 8 | +$style-guide-priority-b-bg = $style-guide-bad-text |
| 9 | +$style-guide-priority-b-color = white |
| 10 | +$style-guide-priority-c-bg = steelblue |
| 11 | +$style-guide-priority-c-color = white |
| 12 | +$style-guide-priority-d-bg = $style-guide-bad-text |
| 13 | +$style-guide-priority-d-color = white |
| 14 | + |
| 15 | +.style-guide |
| 16 | + .style-example, details, .style-enforcement |
| 17 | + border-radius $radius |
| 18 | + margin: 1.6em 0 |
| 19 | + padding 1.6em |
| 20 | + h4 |
| 21 | + margin-top: 0 |
| 22 | + figure, p |
| 23 | + &:last-child |
| 24 | + margin-bottom 0 |
| 25 | + padding-bottom 0 |
| 26 | + .style-example |
| 27 | + &.example-bad |
| 28 | + background $style-guide-bad-bg |
| 29 | + h4 |
| 30 | + color $style-guide-bad-text |
| 31 | + &.example-good |
| 32 | + background $style-guide-good-bg |
| 33 | + h4 |
| 34 | + color $style-guide-good-text |
| 35 | + details, .style-enforcement |
| 36 | + background-color #eee |
| 37 | + details |
| 38 | + position relative |
| 39 | + summary |
| 40 | + cursor pointer |
| 41 | + padding 1.6em |
| 42 | + margin -1.6em |
| 43 | + outline none |
| 44 | + > h4 |
| 45 | + display inline-block |
| 46 | + margin 0 |
| 47 | + .style-enforcement |
| 48 | + table |
| 49 | + width 100% |
| 50 | + background-color $codebg |
| 51 | + border-radius $radius |
| 52 | + th, td |
| 53 | + padding .4em |
| 54 | + text-align center |
| 55 | + th |
| 56 | + padding-bottom .2em |
| 57 | + td |
| 58 | + padding-top .2em |
| 59 | + .style-rule-tag |
| 60 | + background-color $codebg |
| 61 | + border-radius $radius |
| 62 | + font-size .9em |
| 63 | + color $style-guide-good-text |
| 64 | + font-weight 600 |
| 65 | + text-transform uppercase |
| 66 | + padding: .1em .4em |
| 67 | + a > .style-rule-tag |
| 68 | + color $green |
| 69 | + sup |
| 70 | + text-transform: uppercase |
| 71 | + font-size: .7em |
| 72 | + margin-left: 1em |
| 73 | + pointer-events: all |
| 74 | + position: absolute |
| 75 | + [data-p="a"] |
| 76 | + color: #6b2a2a |
| 77 | + [data-p="b"] |
| 78 | + color: #8c480a |
| 79 | + [data-p="c"] |
| 80 | + color: #2b5a99 |
| 81 | + [data-p="d"] |
| 82 | + content: #3f536d |
0 commit comments