summaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/styles/tlv-checkbox.less
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-02-19 10:28:42 +0200
committerMichael Lando <ml636r@att.com>2017-02-19 10:51:01 +0200
commit451a3400b76511393c62a444f588a4ed15f4a549 (patch)
treee4f5873a863d1d3e55618eab48b83262f874719d /catalog-ui/app/styles/tlv-checkbox.less
parent5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff)
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-ui/app/styles/tlv-checkbox.less')
-rw-r--r--catalog-ui/app/styles/tlv-checkbox.less87
1 files changed, 87 insertions, 0 deletions
diff --git a/catalog-ui/app/styles/tlv-checkbox.less b/catalog-ui/app/styles/tlv-checkbox.less
new file mode 100644
index 0000000000..9dd5873545
--- /dev/null
+++ b/catalog-ui/app/styles/tlv-checkbox.less
@@ -0,0 +1,87 @@
+.tlv-checkbox {
+ font-family: clearview-book, Sans-Serif;
+ font-size: 14px;
+ display: inline-block;
+
+ .tlv-checkbox-i {
+ height: 0;
+ /*visibility: hidden;*/
+ display: none;
+ width: 0;
+
+ &:checked ~ .tlv-checkbox-label,
+ &:checked:hover ~ .tlv-checkbox-label{
+ &::before {
+ .tlv-sprite;
+ .checkbox-checked;
+ }
+ }
+
+ &:disabled ~ .tlv-checkbox-label{
+ pointer-events: none;
+ }
+
+ &:hover ~ .tlv-checkbox-label{
+ &::before {
+ .tlv-sprite;
+ .checkbox-hover;
+ }
+ }
+ }
+
+ .tlv-checkbox-label {
+ /*display: inline-block;*/
+ display: block;
+ vertical-align: middle;
+
+ &::before {
+ .tlv-sprite;
+ .checkbox;
+ content: '';
+ display: inline-block;
+ margin-right: 4px;
+ margin-top: -2px;
+ vertical-align: middle;
+ }
+ }
+}
+
+
+.tlv-radio {
+ font-size: 14px;
+ display: inline-block;
+
+ .tlv-radio-i {
+ height: 0;
+ visibility: hidden;
+ width: 0;
+
+ &:checked ~ .tlv-radio-label{
+ &::before {
+ .tlv-sprite;
+ .radio-checked;
+
+ }
+ }
+
+ &:disabled ~ .tlv-radio-label{
+ opacity: .6;
+ }
+ }
+
+ .tlv-radio-label {
+ display: inline-block;
+ vertical-align: middle;
+ margin-bottom: 0;
+
+ &::before {
+ .tlv-sprite;
+ .radio;
+ content: '';
+ display: inline-block;
+ margin-right: 4px;
+ margin-top: -2px;
+ vertical-align: middle;
+ }
+ }
+}