/** * Pop up box styles */ .popbox { position: absolute; display: none; z-index: 100; background-color: #fff; border: none; min-width: 150px; } .popbox-close { display: block; width: 20px; float: right; cursor: pointer; } .popbox-modal-center { left: 50%; top: 50%; } .dialog-body-mask { position: absolute; top: 0; left: 0; background-color: #e0e0e0; opacity: 0.5; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter: alpha(opacity=50); } @mixin popbox( $suffix: null, $border-color: $base-color, $border-style: solid, $border-width: 1px, $border-radius: 0, $title-color: darken($base-color, 20%), $title-font-style: bold, $title-text-align: left, $title-text-padding: 0 0 0 5px, $title-height: null, $title-background-color: lighten($base-color, 30%), $title-background-gradient: false, $background-color: #fff, $body-padding: 0 ) { .popbox-#{$suffix} { border-color: $border-color; border-style: $border-style; border-width: top($border-width) right($border-width) bottom($border-width) left($border-width); @if $supports-border-radius == true { @include radius(top($border-radius) right($border-radius) bottom($border-radius) left($border-radius)); @if top($border-radius) > 0 or right($border-radius) > 0 { .popbox-title { @include radius(top($border-radius) right($border-radius) 0 0); } } .popbox-wrap-content { padding: 8px; } } .popbox-title { color: $title-color; background-color: $title-background-color; @if $title-height == null { height: $text-size * 2.5; line-height: $text-size * 2.5; } @else { height: $title-height; line-height: $title-height; } @if $title-background-gradient == true { @include background-gradient($title-background-color, panel-title, top); } .popbox-title-text { font-weight: $title-font-style; text-align: $title-text-align; padding: $title-text-padding; } } .popbox-content { padding: $body-padding; } } } @include popbox( modal, $border-radius: 15px, $title-background-color: #fff, $title-text-padding: 0 0 0 12px, $body-padding: 10px 5px ); @include popbox( relative, $border-radius: 15px, $title-background-color: #fff, $title-text-padding: 0 0 0 12px, $body-padding: 10px 5px );