diff --git a/app/styles/app/layouts/settings.sass b/app/styles/app/layouts/settings.sass index eaddbc9a..1f405acc 100644 --- a/app/styles/app/layouts/settings.sass +++ b/app/styles/app/layouts/settings.sass @@ -122,45 +122,21 @@ $input-main-height: 30px display: inline-block width: grid-calc(2, 24) float: right + text-align: center + + a + padding: 1em .icon-delete @extend %icon @extend .icon-delete - display: block width: 1.1em height: 1.3em - margin: .2em auto 0 &:hover .icon-delete @extend .icon-delete-hover - .tooltip - display: block -.tooltip - display: none - position: absolute - right: 0 - left: 0 - top: -2.7em - width: auto - margin: auto - padding: .2em .8em .3em - z-index: 5 - background-color: #818383 - border-radius: 4px - color: $white - white-space: nowrap - &:before - content: "" - position: absolute - bottom: -0.3em - left: 39% - width: 1em - height: 1em - transform: rotate(45deg) - z-index: -1 - background-color: #818383 .settings-sshkey display: block @@ -227,8 +203,6 @@ $input-main-height: 30px &:hover .icon-delete @extend .icon-delete-hover - .tooltip - display: block .form--envvar diff --git a/app/styles/app/modules/switch.sass b/app/styles/app/modules/switch.sass index 07079dfe..22b6d73a 100644 --- a/app/styles/app/modules/switch.sass +++ b/app/styles/app/modules/switch.sass @@ -11,7 +11,7 @@ width: $switch-width height: $switch-height margin-right: 1em - padding: 3px 3px 3px 4px + padding: 2px 3px 3px 4px vertical-align: middle overflow: visible background-color: #E2E1E2 diff --git a/app/styles/app/modules/tooltips.sass b/app/styles/app/modules/tooltips.sass index db463507..f0a784a5 100644 --- a/app/styles/app/modules/tooltips.sass +++ b/app/styles/app/modules/tooltips.sass @@ -1,42 +1,59 @@ +%tooltip + &:hover + .tooltip-bubble + transform: translateY(0) + opacity: 1 -$tooltip-grey: #6A6C6D + .tooltip-bubble + position: absolute + top: -3.2em + width: auto + height: 1.9em + margin: auto + padding: .2em .8em .3em + z-index: 5 + background-color: #818383 + border-radius: 4px + color: $white + text-align: center + white-space: nowrap + + transition: all 100ms ease + transform: translateY(20%) + opacity: 0 + + &:before + content: "" + position: absolute + bottom: -0.3em + width: 1em + height: 1em + transform: rotate(45deg) + z-index: -1 + background-color: #818383 .tooltip + @extend %tooltip + .tooltip-bubble + right: 0 + left: 0 + &:before + left: 42% + +.tooltip--right + @extend %tooltip + .tooltip-bubble + right: -0.5em + &:before + left: 72% + +.tooltip--jobs + @extend %tooltip + display: inline-block position: relative - display: none - -.tooltip-inner - position: absolute - bottom: 0 - right: 0 - background: $tooltip-grey - color: $white - font-size: $font-size-small - line-height: 18px - text-align: center - padding: 8px 5px - @extend %border-radius-4px - - &:after - content: '' - position: absolute - top: 98% - right: 3em - width: 0 - height: 0 - border-top: 13px solid $tooltip-grey - border-right: 13px solid transparent - border-left: 13px solid transparent - - @media #{$small-only} - bottom: -2.5em - - @media #{$medium-up} - width: 18rem - -.tooltip-inner - height: 4.1em - top: -8em - left: 4em - &:after - left: 3.7em \ No newline at end of file + .tooltip-bubble + top: -4.5em + left: -2em + height: 3.7em + &:before + left: 15% diff --git a/app/templates/components/env-var.hbs b/app/templates/components/env-var.hbs index 4f8745fc..ef2d900e 100644 --- a/app/templates/components/env-var.hbs +++ b/app/templates/components/env-var.hbs @@ -4,10 +4,10 @@
- Delete -
- -These are jobs you can allow to fail without failing your entire build
+These are jobs you can allow to fail
without failing your entire build
- Delete -
- +- Default keys cannot be deleted -
- +These are jobs are allowed to fail, without failing your entire build.
+These are jobs are allowed to fail, without failing your entire build.