/* * # Semantic - Modal * http://github.com/jlukic/semantic-ui/ * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Modal *******************************/ .ui.modal { display: none; position: fixed; z-index: 1001; top: 50%; right: 50%; text-align: right; width: 90%; margin-right: -45%; background-color: #FFFFFF; border: 1px solid #DDDDDD; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } /******************************* Content *******************************/ /*-------------- Close ---------------*/ .ui.modal > .close { cursor: pointer; position: absolute; opacity: 0.8; font-size: 1.25em; top: -1.75em; left: -1.75em; color: #FFFFFF; } .ui.modal > .close:hover { opacity: 1; } /*-------------- Header ---------------*/ .ui.modal > .header { margin: 0em; padding: 1.5rem 2rem; font-size: 1.6em; font-weight: bold; -webkit-border-radius: 0.325em 0.325em 0px 0px; -moz-border-radius: 0.325em 0.325em 0px 0px; border-radius: 0.325em 0.325em 0px 0px; } /*-------------- Content ---------------*/ .ui.modal > .content { display: table; width: 100%; position: relative; padding: 2em; background-color: #F4F4F4; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } .ui.modal > .content > .left { display: table-cell; padding-left: 5%; min-width: 25%; } .ui.modal > .content > .right { display: table-cell; padding-right: 5%; vertical-align: top; min-width: 25%; } .ui.modal > .content > .left > .icon { font-size: 8em; margin: 0em; } .ui.modal > .content p { line-height: 1.6; } /*-------------- Actions ---------------*/ .ui.modal .actions { padding: 1rem 2rem; text-align: left; } .ui.modal .actions > .button { margin-right: 0.75em; } /*------------------- Sizing --------------------*/ /* Mobile Only */ @media only screen and (max-width : 768px) { .ui.modal .content .left { display: block; padding: 0em 1em 0em 0em; } .ui.modal .content .right { display: block; padding: 1em 0em 0em 0em; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } } /* Tablet and Mobile */ @media only screen and (max-width : 998px) { .ui.modal { width: 92%; margin-right: -46%; } .ui.modal > .close { color: rgba(0, 0, 0, 0.8); top: 1.5rem; left: 1rem; } } /* Computer / Responsive */ @media only screen and (min-width : 998px) { .ui.modal { width: 74%; margin-right: -37%; } } @media only screen and (min-width : 1500px) { .ui.modal { width: 64%; margin-right: -32%; } } @media only screen and (min-width : 1750px) { .ui.modal { width: 54%; margin-right: -27%; } } @media only screen and (min-width : 2000px) { .ui.modal { width: 44%; margin-right: -22%; } } /******************************* Types *******************************/ .ui.basic.modal { background-color: transparent; border: none; color: #FFFFFF; } .ui.basic.modal > .close { top: 1.5rem; left: 1rem; } .ui.basic.modal .content { background-color: transparent; } /******************************* Variations *******************************/ /* A modal that cannot fit on the page */ .ui.modal.scrolling { position: absolute; margin-top: 10px; } /******************************* States *******************************/ .ui.active.modal { display: block; }