diff --git a/components/base/tooltip/tooltip.hbs b/components/base/tooltip/tooltip.hbs new file mode 100644 index 00000000..c11cfd8a --- /dev/null +++ b/components/base/tooltip/tooltip.hbs @@ -0,0 +1,31 @@ +
+
+ + + +
+
+
+ This information is collected to ensure the marriage abides by Massachusetts State Law Chapter 207 Sections 1-8. +
+
+ +
+
+ +

+ +
+
+ + + +
+
+
+ This information is collected to ensure the marriage abides by Massachusetts State Law Chapter 207 Sections 1-8. +
+
+ +
+
diff --git a/components/base/tooltip/tooltip.yml b/components/base/tooltip/tooltip.yml new file mode 100644 index 00000000..60ec73f2 --- /dev/null +++ b/components/base/tooltip/tooltip.yml @@ -0,0 +1,3 @@ +title: ToolTip +handle: tt +status: ready diff --git a/scripts/components/tooltip.js b/scripts/components/tooltip.js new file mode 100644 index 00000000..2d8dbd3f --- /dev/null +++ b/scripts/components/tooltip.js @@ -0,0 +1,5 @@ +'use strict' +// This module controls the City of Boston table component +// --------------------------- + + diff --git a/stylesheets/components/tooltip/_component.styl b/stylesheets/components/tooltip/_component.styl new file mode 100644 index 00000000..7a9a4904 --- /dev/null +++ b/stylesheets/components/tooltip/_component.styl @@ -0,0 +1,92 @@ +/* + + ToolTip + + Base: + tt + + Elements: + c = Container + i = icon + w = Tool Tip Wrapper + */ + +.tt + position: relative; + display: inline-block; + margin-left: 0.25em; + padding: 0; + + .icon + background: $optimistic-blue-dark + // width: 10px + // height: 10px + // border-radius: 50% + // font-size: 0.5rem + + // margin: 5px 0.5em 0 5px + // padding: 4.7px 0 0 3.0px + // line-height: 0px + // color: white + + line-height: normal + color: white + font-size: 0.5rem + text-align: center + width: 10px; + height: 10px; + border-radius: 50% + + &::before + content: '?' + + .tt--info + text-transform: lowercase + &::before { content: 'i' } + + .msg + display: none + position: absolute + line-height: normal + z-index: 1000 + left: 110% + top: -10% + + min-width: 250px + max-width: 300px + + padding: 0.25em 0.5em + font-weight: 300 + font-style: italic + font-size: 1.875em + text-transform: initial + text-align: left + + background: $grey-000 + font-family: $serif + color: $grey-400 + + .icon:hover .msg + display: block + + +.tt-wrapper { + display: block; + margin-bottom: 1em; +} + +.tt-wrapper--label { + display: flex; + flex-start: left; + align-items: center; + + label { + display: inline-block; + color: #091f2f; + font-family: "Lora", Georgia, serif; + font-size: 15px; + font-weight: 500; + line-height: 1.4; + letter-spacing: 1px; + } +} diff --git a/stylesheets/components/tooltip/base.styl b/stylesheets/components/tooltip/base.styl new file mode 100644 index 00000000..8e082ac7 --- /dev/null +++ b/stylesheets/components/tooltip/base.styl @@ -0,0 +1,7 @@ +/* + + SECTION HEADER + +*/ + +@require('*.styl') diff --git a/stylesheets/variables/_colors.styl b/stylesheets/variables/_colors.styl index c5125f7a..628203ee 100644 --- a/stylesheets/variables/_colors.styl +++ b/stylesheets/variables/_colors.styl @@ -32,6 +32,7 @@ $grey-000 = #f3f3f3 $grey-100 = #e0e0e0 $grey-200 = #C8C8C8 $grey-300 = #828282 +$grey-400 = #58585b $focus-indicator-color = $optimistic-blue-light $error-border-color = $freedom-red-light