3 $scrollableArea: 2000px
8 +box-sizing(border-box)
16 background-color: #fe8
20 margin-top: ($exampleHeight - 50px) / 2
21 margin-left: ($exampleWidth - 200px) / 2
24 background-color: #4e9
31 border: 10px solid #eee
37 height: $scrollableArea
38 width: $scrollableArea
39 padding: ($scrollableArea - $exampleHeight)/2 ($scrollableArea - $exampleWidth)/2 + 9
65 content: "↕ scroll the page ↕"
68 content: "↕ scroll this area ↕"
74 font-variant: small-caps
77 transition: opacity 0.2s
82 &[deactivated], &[activated]
95 content: "Click To Show"
96 background-color: #AAA
97 border-left: 10px solid #EEE
105 content: "Click To Hide"
119 background-color: red
120 display: inline-block
136 @extend .attachment-mark
144 @each $type in target, element
145 .tether-#{ $type }-marker
148 @each $side in left, top, bottom, right
149 div.tether-#{ $type }-attached-#{ $side } &
152 div.tether-#{ $type }-attached-center &
155 .tether-element-attached-middle .tether-element-marker
158 .tether-target-attached-middle .tether-target-marker
165 box-shadow: inset 2px 0 0 0 red
166 &.tether-pinned-right
167 box-shadow: inset -2px 0 0 0 red
169 box-shadow: inset 0 2px 0 0 red
170 &.tether-pinned-bottom
171 box-shadow: inset 0 -2px 0 0 red
176 .tether-element.tether-out-of-bounds[data-example="hide"]
179 [data-example^="optimizer"]
181 /* This should just be a `code` selector, but sass doesn't allow that with & */
190 content: "I'm in the body"
196 .scroll-box .tether-element:before
197 content: "I'm in my scroll parent!"
199 .tether-element[data-example="scroll-visible"]
205 .hs-doc-content h2.projects-header