3 =tether-theme-arrows($themePrefix: "tether", $themeName: "arrows", $arrowSize: 16px, $backgroundColor: #fff, $color: inherit, $useDropShadow: false)
4 .#{ $themePrefix }-element.#{ $themePrefix }-theme-#{ $themeName }
8 .#{ $themePrefix }-content
12 background: $backgroundColor
19 +transform(translateZ(0))
20 +filter(drop-shadow(0 1px 4px rgba(0, 0, 0, .2)))
28 border-color: transparent
29 border-width: $arrowSize
32 // Centers and middles
34 &.#{ $themePrefix }-element-attached-bottom.#{ $themePrefix }-element-attached-center .#{ $themePrefix }-content
35 margin-bottom: $arrowSize
40 margin-left: - $arrowSize
41 border-top-color: $backgroundColor
43 &.#{ $themePrefix }-element-attached-top.#{ $themePrefix }-element-attached-center .#{ $themePrefix }-content
44 margin-top: $arrowSize
49 margin-left: - $arrowSize
50 border-bottom-color: $backgroundColor
52 &.#{ $themePrefix }-element-attached-right.#{ $themePrefix }-element-attached-middle .#{ $themePrefix }-content
53 margin-right: $arrowSize
58 margin-top: - $arrowSize
59 border-left-color: $backgroundColor
61 &.#{ $themePrefix }-element-attached-left.#{ $themePrefix }-element-attached-middle .#{ $themePrefix }-content
62 margin-left: $arrowSize
67 margin-top: - $arrowSize
68 border-right-color: $backgroundColor
70 // Top and bottom corners
72 &.#{ $themePrefix }-element-attached-top.#{ $themePrefix }-element-attached-left.#{ $themePrefix }-target-attached-bottom .#{ $themePrefix }-content
73 margin-top: $arrowSize
78 border-bottom-color: $backgroundColor
80 &.#{ $themePrefix }-element-attached-top.#{ $themePrefix }-element-attached-right.#{ $themePrefix }-target-attached-bottom .#{ $themePrefix }-content
81 margin-top: $arrowSize
86 border-bottom-color: $backgroundColor
88 &.#{ $themePrefix }-element-attached-bottom.#{ $themePrefix }-element-attached-left.#{ $themePrefix }-target-attached-top .#{ $themePrefix }-content
89 margin-bottom: $arrowSize
94 border-top-color: $backgroundColor
96 &.#{ $themePrefix }-element-attached-bottom.#{ $themePrefix }-element-attached-right.#{ $themePrefix }-target-attached-top .#{ $themePrefix }-content
97 margin-bottom: $arrowSize
102 border-top-color: $backgroundColor
106 &.#{ $themePrefix }-element-attached-top.#{ $themePrefix }-element-attached-right.#{ $themePrefix }-target-attached-left .#{ $themePrefix }-content
107 margin-right: $arrowSize
112 border-left-color: $backgroundColor
114 &.#{ $themePrefix }-element-attached-top.#{ $themePrefix }-element-attached-left.#{ $themePrefix }-target-attached-right .#{ $themePrefix }-content
115 margin-left: $arrowSize
120 border-right-color: $backgroundColor
122 &.#{ $themePrefix }-element-attached-bottom.#{ $themePrefix }-element-attached-right.#{ $themePrefix }-target-attached-left .#{ $themePrefix }-content
123 margin-right: $arrowSize
128 border-left-color: $backgroundColor
130 &.#{ $themePrefix }-element-attached-bottom.#{ $themePrefix }-element-attached-left.#{ $themePrefix }-target-attached-right .#{ $themePrefix }-content
131 margin-left: $arrowSize
136 border-right-color: $backgroundColor