/* * # Semantic Popup * http://github.com/quirkyinc/semantic * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * * Released: April 17 2013 */ /******************************* Popup *******************************/ .ui.popup { display: none; position: absolute; top: 0px; right: 0px; z-index: 900; border: 1px solid #DCDDDE; max-width: 250px; background-color: #FFFFFF; padding: 0.8em 1.2em; font-size: 0.875rem; font-weight: normal; font-style: normal; color: rgba(0, 0, 0, 0.7); -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; border-radius: 0.2em; -webkit-box-shadow: 0px 1px 1px #DCDDDE; -moz-box-shadow: 0px 1px 1px #DCDDDE; box-shadow: 0px 1px 1px #DCDDDE; } .ui.popup .header { margin: -0.8em -1.2em 0.8em; background-color: rgba(0, 0, 0, 0.05); padding: 0.8em 1.2em; line-height: 1; font-weight: bold; color: rgba(0, 0, 0, 0.8); -webkit-border-radius: 0.2em 0.2em 0em 0em; -moz-border-radius: 0.2em 0.2em 0em 0em; border-radius: 0.2em 0.2em 0em 0em; } /* Default Interactions */ .ui.popup .ui.button, .ui.popup form.ui input .ui.popup form.ui textarea { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } /*-------------- Spacing ---------------*/ .ui.popup { margin: 0em; } .ui.popup.bottom { margin: 0.75em 0em 0em; } .ui.popup.top { margin: 0em 0em 0.75em; } .ui.popup.left.center { margin: 0em 0.75em 0em 0em; } .ui.popup.right.center { margin: 0em 0em 0em 0.75em; } .ui.popup.center { margin-left: -1.25em; } /*-------------- Pointer ---------------*/ .ui.popup:before { position: absolute; content: ""; width: 0.75em; height: 0.75rem; background-image: none; background-color: #FFFFFF; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); transform: rotate(45deg); z-index: 2; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: 1px 1px 1px #DCDDDE; -moz-box-shadow: 1px 1px 1px #DCDDDE; box-shadow: 1px 1px 1px #DCDDDE; } /*--- Below ---*/ .ui.bottom.center.popup:before { margin-left: -0.4em; top: -0.4em; left: 50%; right: auto; bottom: auto; -webkit-box-shadow: -1px -1px 1px #dcddde; -moz-box-shadow: -1px -1px 1px #dcddde; box-shadow: -1px -1px 1px #dcddde; } .ui.bottom.left.popup:before { top: -0.4em; left: 1em; right: auto; bottom: auto; margin-left: 0em; -webkit-box-shadow: -1px -1px 1px #dcddde; -moz-box-shadow: -1px -1px 1px #dcddde; box-shadow: -1px -1px 1px #dcddde; } .ui.bottom.right.popup:before { top: -0.4em; right: 1em; bottom: auto; left: auto; margin-left: 0em; -webkit-box-shadow: -1px -1px 1px #dcddde; -moz-box-shadow: -1px -1px 1px #dcddde; box-shadow: -1px -1px 1px #dcddde; } /*--- Above ---*/ .ui.top.center.popup:before { top: auto; right: auto; bottom: -0.4em; left: 50%; margin-left: -0.4em; } .ui.top.left.popup:before { bottom: -0.4em; left: 1em; top: auto; right: auto; margin-left: 0em; } .ui.top.right.popup:before { bottom: -0.4em; right: 1em; top: auto; left: auto; margin-left: 0em; } /*--- Left ---*/ .ui.left.center.popup:before { top: 50%; right: -0.35em; bottom: auto; left: auto; margin-top: -0.4em; -moz-box-shadow: 1px -1px 1px #dcddde; -webkit-box-shadow: 1px -1px 1px #dcddde; box-shadow: 1px -1px 1px #dcddde; } /*--- Right ---*/ .ui.right.center.popup:before { top: 50%; left: -0.35em; bottom: auto; right: auto; margin-top: -0.4em; -moz-box-shadow: -1px 1px 1px #dcddde; -webkit-box-shadow: -1px 1px 1px #dcddde; box-shadow: -1px 1px 1px #dcddde; } /******************************* States *******************************/ .ui.popup.loading { display: block; visibility: hidden; } .ui.popup.active { display: block; } /******************************* Variations *******************************/ /*-------------- Size ---------------*/ .ui.small.popup { font-size: 0.75rem; } .ui.large.popup { font-size: 1rem; } /*-------------- Colors ---------------*/ /* Black */ .ui.inverted.popup { background-color: #333333; border: none; color: #FFFFFF; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .ui.inverted.popup .header { background-color: rgba(0, 0, 0, 0.2); color: #FFFFFF; } .ui.inverted.popup:before { background-color: #333333; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; }