Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $padding: 2rem;
- $bubblePadding:1.5rem;
- $bubbleSize: 1rem;
- $halfBubbleSize: $bubbleSize/2;
- $paddingAndHalfBubbleSize: $padding + $halfBubbleSize;
- //-------------- TOP ROW --------------
- //TODO
- &.anchor--topLeft,
- &.anchor--leftTop {
- top: -$bubblePadding;
- left:$paddingAndHalfBubbleSize;
- &.bubble--leftTop {
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: $bubblePadding;
- }
- }
- &.bubble--leftCenter {
- transform: translateY(-50%) TranslateY($bubblePadding + $halfBubbleSize);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translateY(-100%) translateY((2*$bubblePadding) + $bubbleSize);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: $bubblePadding;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-(2 * $padding));
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: $bubblePadding;
- }
- }
- &.bubble--rightCenter {
- transform: translateY(-100%,-50%) TranslateY($bubblePadding + $halfBubbleSize);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-(2 * $padding));
- top: $halfBubbleSize;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: $bubblePadding;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2.5rem);
- top: $padding;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: $paddingAndHalfBubbleSize;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%) translateX(-$halfBubbleSize);
- top: $padding;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX($paddingAndHalfBubbleSize);
- top: $padding;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: $paddingAndHalfBubbleSize;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2.5rem, -100%);
- top: -$padding;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: $paddingAndHalfBubbleSize;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%) translateX(-$halfBubbleSize);
- top: -$padding;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX($paddingAndHalfBubbleSize);
- top: -$padding;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: $paddingAndHalfBubbleSize;
- bottom: -$halfBubbleSize;
- }
- }
- }
- //DONE, WORKS
- &.anchor--topCenter {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- // DONE, WORKS
- &.anchor--topRight,
- &.anchor--rightTop {
- top: -1rem;
- right: -1rem;
- &.bubble--leftTop {
- transform: translateX(100%);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(100%, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(100%, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- // transform: translateX(-100%);
- right: 1rem;
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translateY(-50%);
- right: 1rem;
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translateY(-100%);
- right: 1rem;
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(100%);
- right: 2.5rem;
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(50%);
- right: 1rem;
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- right: -1.5rem;
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(100%, -100%);
- right: 2rem;
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(50%, -100%);
- right: 1rem;
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(0%, -100%);
- right: -1.5rem;
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- //-------------- MIDDLE ROW --------------
- //TODO
- &.anchor--leftCenter {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- //TODO
- &.anchor--rightCenter {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- //-------------- BOTTOM ROW --------------
- //TODO
- &.anchor--bottomLeft,
- &.anchor--leftBottom {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- //TODO
- &.anchor--bottomCenter {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
- // TODO
- &.anchor--bottomRight,
- &.anchor--rightbottom {
- top: -1rem;
- left:50%;
- &.bubble--leftTop {
- transform: translateX(1rem);
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--leftCenter {
- transform: translate(1rem, -50%);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--leftBottom {
- transform: translate(1rem, -100%);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- left: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--rightTop {
- transform: translateX(-100%) translateX(-1rem);
- top: -1.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- top: 1.5rem;
- }
- }
- &.bubble--rightCenter {
- transform: translate(-100%,-50%) translateX(-1rem);
- top: 0rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- transform: translateY(-$halfBubbleSize);
- top: 50%;
- }
- }
- &.bubble--rightBottom {
- transform: translate(-100%,-100%) translateX(-1rem);
- top: 2.5rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid transparent;
- border-bottom: $halfBubbleSize solid transparent;
- border-left: $halfBubbleSize solid $popover-help-bgcolor;
- position: absolute;
- right: -$halfBubbleSize;
- bottom: 1.5rem;
- }
- }
- &.bubble--topLeft {
- transform: translateX(-2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topCenter {
- transform: translateX(-50%);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left:50%;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--topRight {
- transform: translateX(-100%) translateX(2rem);
- top: 1.5rem;
- &:after {
- content: '';
- border-bottom: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- top: -$halfBubbleSize;
- }
- }
- &.bubble--bottomLeft {
- transform: translate(-2rem, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- left: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomCenter {
- transform: translate(-50%, -100%);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- transform: translateX(-$halfBubbleSize);
- left: 50%;
- bottom: -$halfBubbleSize;
- }
- }
- &.bubble--bottomRight {
- transform: translate(-100%, -100%) translateX(2rem);
- top: -1rem;
- &:after {
- content: '';
- border-top: $halfBubbleSize solid $popover-help-bgcolor;
- border-left: $halfBubbleSize solid transparent;
- border-right: $halfBubbleSize solid transparent;
- position: absolute;
- right: 1.5rem;
- bottom: -$halfBubbleSize;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement