| 1 |
figure |
| 2 |
position: relative |
| 3 |
|
| 4 |
figcaption |
| 5 |
text-align: center |
| 6 |
line-height: $base-line-height |
| 7 |
font-size: $base-font-size |
| 8 |
|
| 9 |
figure[data-type=table] |
| 10 |
clear: both |
| 11 |
figure[data-type=video] |
| 12 |
position: relative |
| 13 |
margin-bottom: $base-line-height |
| 14 |
text-align: center |
| 15 |
clear: both |
| 16 |
p |
| 17 |
margin: 0 |
| 18 |
|
| 19 |
&.wy-figure-full |
| 20 |
&:before |
| 21 |
position: relative |
| 22 |
padding-bottom: 51% |
| 23 |
width: 100% |
| 24 |
height: 0 |
| 25 |
content: "" |
| 26 |
display: block |
| 27 |
iframe |
| 28 |
width: 100% |
| 29 |
height: 100% |
| 30 |
position: absolute |
| 31 |
left: 0 |
| 32 |
top: 0 |
| 33 |
|
| 34 |
figure[data-type=image] |
| 35 |
position: relative |
| 36 |
margin-bottom: $base-line-height |
| 37 |
.wy-figure-controls |
| 38 |
top: 0px |
| 39 |
img |
| 40 |
width: 100% |
| 41 |
&.wy-figure-large |
| 42 |
width: 100% |
| 43 |
clear: both |
| 44 |
&.wy-figure-medium |
| 45 |
width: 50% |
| 46 |
&.wy-figure-small |
| 47 |
width: 33% |
| 48 |
|
| 49 |
figure[data-type=quote] |
| 50 |
font-family: $custom-font-family |
| 51 |
margin-bottom: $base-line-height |
| 52 |
margin-left: $base-line-height |
| 53 |
font-style: italic |
| 54 |
position: relative |
| 55 |
border-left: solid 5px $text-color |
| 56 |
padding-left: $base-line-height |
| 57 |
figcaption |
| 58 |
font-weight: bold |
| 59 |
text-align: left |
| 60 |
.wy-figure-controls |
| 61 |
margin-left: -5px |
| 62 |
&.wy-figure-medium |
| 63 |
font-size: 20px |
| 64 |
&.wy-figure-large |
| 65 |
font-size: 24px |
| 66 |
&.wy-figure-right |
| 67 |
width: 33% |
| 68 |
&.wy-figure-left |
| 69 |
width: 33% |
| 70 |
border-left: none |
| 71 |
border-right: solid 5px $text-color |
| 72 |
padding-left: 0 |
| 73 |
padding-right: $base-line-height |
| 74 |
margin-left: 0 |
| 75 |
margin-right: $base-line-height |
| 76 |
.wy-figure-controls |
| 77 |
margin-left: 0 |
| 78 |
margin-right: -5px |
| 79 |
cite |
| 80 |
display: block |
| 81 |
text-align: left |
| 82 |
font-weight: bold |
| 83 |
&:before |
| 84 |
content: "\2014\00a0" |
| 85 |
&:empty:before |
| 86 |
opacity: 0.4 |
| 87 |
content: "\2014 Type to add citation (optional)" |
| 88 |
|
| 89 |
figure:hover .wy-figure-controls |
| 90 |
display: block |
| 91 |
|
| 92 |
.wy-figure-controls |
| 93 |
background: $gray |
| 94 |
padding: $base-line-height / 4 |
| 95 |
position: absolute |
| 96 |
display: none |
| 97 |
min-width: 100% |
| 98 |
white-space: nowrap |
| 99 |
left: 0 |
| 100 |
top: -37px |
| 101 |
margin: auto |
| 102 |
font-family: $base-font-family |
| 103 |
border-bottom: solid 3px darken($gray, 10%) |
| 104 |
line-height: $base-line-height |
| 105 |
font-style: normal |
| 106 |
z-index: 5 |
| 107 |
text-align: center |
| 108 |
.wy-figure-controls span |
| 109 |
display: inline-block |
| 110 |
border: none |
| 111 |
background: none |
| 112 |
color: $text-invert |
| 113 |
vertical-align: top |
| 114 |
font-size: 14px |
| 115 |
width: 24px |
| 116 |
height: 24px |
| 117 |
line-height: 24px |
| 118 |
text-align: center |
| 119 |
cursor: pointer |
| 120 |
&.#{$icon-prefix}, &:before |
| 121 |
line-height: 24px |
| 122 |
&:hover |
| 123 |
background: rgba(255,255,255,.3) |
| 124 |
color: $white |
| 125 |
&.on |
| 126 |
background: $white |
| 127 |
color: $gray |
| 128 |
|
| 129 |
.wy-figure-controls span |
| 130 |
&.wy-figure-controls-divider |
| 131 |
width: 1px |
| 132 |
background: lighten($gray, 10%) |
| 133 |
padding: 0 |
| 134 |
margin: 0 2px |
| 135 |
cursor: normal |
| 136 |
&.wy-figure-controls-small |
| 137 |
font-size: 50% |
| 138 |
&.wy-figure-controls-medium |
| 139 |
font-size: 75% |
| 140 |
&.wy-figure-controls-arrow-left |
| 141 |
@extend %icon |
| 142 |
@extend .#{$icon-prefix}-#{$icon-arrow-left} |
| 143 |
&.wy-figure-controls-arrow-right |
| 144 |
@extend %icon |
| 145 |
@extend .#{$icon-prefix}-#{$icon-arrow-right} |
| 146 |
&.wy-figure-controls-arrow-up |
| 147 |
@extend %icon |
| 148 |
@extend .#{$icon-prefix}-#{$icon-arrow-up} |
| 149 |
&.wy-figure-controls-arrow-down |
| 150 |
@extend %icon |
| 151 |
@extend .#{$icon-prefix}-#{$icon-arrow-down} |
| 152 |
&.wy-figure-controls-resize-full |
| 153 |
@extend %icon |
| 154 |
@extend .#{$icon-prefix}-#{$icon-expand} |
| 155 |
&.wy-figure-controls-resize-small |
| 156 |
@extend %icon |
| 157 |
@extend .#{$icon-prefix}-#{$icon-compress} |
| 158 |
&.wy-figure-controls-delete |
| 159 |
@extend %icon |
| 160 |
@extend .#{$icon-prefix}-#{$icon-trash} |
| 161 |
margin-left: $base-line-height |
| 162 |
&:hover |
| 163 |
background: $red |
| 164 |
&.wy-figure-controls-table |
| 165 |
@extend %icon |
| 166 |
@extend .#{$icon-prefix}-#{$icon-table} |
| 167 |
width: auto |
| 168 |
padding-left: $base-line-height / 4 |
| 169 |
text-align: left |
| 170 |
|
| 171 |
.wy-figure-right |
| 172 |
float: right |
| 173 |
margin-left: $base-line-height |
| 174 |
.wy-figure-controls |
| 175 |
right: 0 |
| 176 |
|
| 177 |
.wy-figure-left |
| 178 |
float: left |
| 179 |
margin-right: $base-line-height |
| 180 |
|
| 181 |
// On mobile, images should be full width |
| 182 |
+media($mobile) |
| 183 |
figure[data-type=image] |
| 184 |
width: 100% !important |
| 185 |
float: none !important |
| 186 |
margin-left: 0 |
| 187 |
margin-right: 0 |
| 188 |
figure[data-type=video] iframe |
| 189 |
width: 100% !important |
| 190 |
height: auto !important |