/* Tooltip text */ .ags-xoiwcp-settings-tooltip { .ags-xoiwcp-settings-tooltiptext { font-size : 13px; color : $baseFontColor; padding-top : 10px; font-style : italic; span { display : none; } } &.tooltip-visible { .ags-xoiwcp-settings-tooltiptext { background-color : #F4F4F4; padding : 10px 10px 10px 42px; background-image : url(../images/info.svg); background-repeat : no-repeat; background-position : left top; background-size : 40px; } } @media (min-width : $breakSmall) { &.bottom { bottom : 0; top : unset; } &.tooltip-hover { width : 30px; height : 35px; position : absolute; right : 0; top : 0; text-align : right; background-image : url("../images/question.svg"); background-repeat : no-repeat; background-position : center right; background-size : 23px; opacity : 0.8; .ags-xoiwcp-settings-tooltiptext { visibility : hidden; width : 300px; background-color : #FFF; padding : 0 20px 20px; box-shadow : 0 0 35px 0 #E2E1D8; text-align : left; font-style : normal; span { display : block; margin : 0 -20px 18px; background-color : $agsMediumGreen; color : #FFF; font-weight : bold; padding : 10px 20px 8px; font-size : 15px; } /* Position the tooltip text */ position : absolute; z-index : 1; top : 50%; transform : translateY(-50%); left : 0; margin-left : -345px; /* Fade in tooltip */ opacity : 0; transition : opacity 0.5s; &::after { content : ""; position : absolute; top : 50%; transform : translateY(-50%); left : 100%; border-width : 8px; border-style : solid; border-color : transparent transparent transparent #FFF; } } /* Show the tooltip text when you mouse over the tooltip container */ &:hover { opacity : 1; .ags-xoiwcp-settings-tooltiptext { visibility : visible; opacity : 1; } } } &.tooltip-visible { margin-left : 20%; margin-left : calc(20% + 20px); } } }