github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/dist/components/modal.css (about) 1 /*! 2 * # Semantic UI x.x - Modal 3 * http://github.com/semantic-org/semantic-ui/ 4 * 5 * 6 * Copyright 2014 Contributors 7 * Released under the MIT license 8 * http://opensource.org/licenses/MIT 9 * 10 */ 11 12 13 /******************************* 14 Modal 15 *******************************/ 16 17 .ui.modal { 18 display: none; 19 position: fixed; 20 z-index: 1001; 21 top: 50%; 22 left: 50%; 23 text-align: left; 24 width: 90%; 25 margin-left: -45%; 26 background: #ffffff; 27 border: none; 28 box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.3); 29 border-radius: 0.2857rem; 30 -webkit-user-select: text; 31 -moz-user-select: text; 32 -ms-user-select: text; 33 user-select: text; 34 will-change: top, left, margin, transform, opacity; 35 } 36 .ui.modal > :first-child:not(.icon), 37 .ui.modal > .icon:first-child + * { 38 border-top-left-radius: 0.2857rem; 39 border-top-right-radius: 0.2857rem; 40 } 41 .ui.modal > :last-child { 42 border-bottom-left-radius: 0.2857rem; 43 border-bottom-right-radius: 0.2857rem; 44 } 45 46 47 /******************************* 48 Content 49 *******************************/ 50 51 52 /*-------------- 53 Close 54 ---------------*/ 55 56 .ui.modal > .close { 57 cursor: pointer; 58 position: absolute; 59 top: -2.5rem; 60 right: -2.5rem; 61 z-index: 1; 62 opacity: 0.8; 63 font-size: 1.25em; 64 color: #ffffff; 65 width: 2.25rem; 66 height: 2.25rem; 67 padding: 0.625rem 0rem 0rem 0rem; 68 } 69 .ui.modal > .close:hover { 70 opacity: 1; 71 } 72 73 /*-------------- 74 Header 75 ---------------*/ 76 77 .ui.modal > .header { 78 display: block; 79 font-family: 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif; 80 background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff; 81 background: linear-gradient(transparent, rgba(0, 0, 0, 0.05)) #ffffff; 82 margin: 0em; 83 padding: 1.2rem 2rem; 84 box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05); 85 font-size: 1.6em; 86 line-height: 1.3em; 87 font-weight: bold; 88 color: rgba(0, 0, 0, 0.85); 89 border-bottom: 1px solid rgba(39, 41, 43, 0.15); 90 } 91 92 /*-------------- 93 Content 94 ---------------*/ 95 96 .ui.modal > .content { 97 display: table; 98 table-layout: fixed; 99 width: 100%; 100 font-size: 1em; 101 line-height: 1.4; 102 padding: 2rem; 103 background: #ffffff; 104 } 105 106 /* Image */ 107 .ui.modal > .content > .image { 108 display: table-cell; 109 width: ''; 110 vertical-align: top; 111 } 112 .ui.modal > .content > .image[class*="top aligned"] { 113 vertical-align: top; 114 } 115 .ui.modal > .content > .image[class*="middle aligned"] { 116 vertical-align: middle; 117 } 118 119 /* Description */ 120 .ui.modal > .content > .description { 121 display: table-cell; 122 vertical-align: top; 123 } 124 .ui.modal > .content > .icon + .description, 125 .ui.modal > .content > .image + .description { 126 min-width: ''; 127 width: 80%; 128 padding-left: 2em; 129 } 130 /*rtl:ignore*/ 131 .ui.modal > .content > .image > i.icon { 132 font-size: 8rem; 133 margin: 0em; 134 opacity: 1; 135 width: auto; 136 } 137 138 /*-------------- 139 Actions 140 ---------------*/ 141 142 .ui.modal .actions { 143 background: #efefef; 144 padding: 1rem 2rem; 145 border-top: 1px solid rgba(39, 41, 43, 0.15); 146 text-align: right; 147 } 148 .ui.modal .actions > .button { 149 margin-left: 0.75em; 150 } 151 152 /*------------------- 153 Responsive 154 --------------------*/ 155 156 157 /* Modal Width */ 158 @media only screen and (max-width: 767px) { 159 .ui.modal { 160 width: 95%; 161 margin: 0em 0em 0em -47.5%; 162 } 163 } 164 @media only screen and (min-width: 768px) { 165 .ui.modal { 166 width: 88%; 167 margin: 0em 0em 0em -44%; 168 } 169 } 170 @media only screen and (min-width: 992px) { 171 .ui.modal { 172 width: 74%; 173 margin: 0em 0em 0em -37%; 174 } 175 } 176 @media only screen and (min-width: 1400px) { 177 .ui.modal { 178 width: 56%; 179 margin: 0em 0em 0em -28%; 180 } 181 } 182 @media only screen and (min-width: 1920px) { 183 .ui.modal { 184 width: 42%; 185 margin: 0em 0em 0em -21%; 186 } 187 } 188 189 /* Tablet and Mobile */ 190 @media only screen and (max-width: 992px) { 191 .ui.modal > .header { 192 padding-right: 2.25rem; 193 } 194 .ui.modal > .close { 195 top: 0.905rem; 196 right: 1rem; 197 color: rgba(0, 0, 0, 0.8); 198 } 199 } 200 201 /* Mobile */ 202 @media only screen and (max-width: 767px) { 203 .ui.modal > .header { 204 padding: 0.75rem 1rem !important; 205 padding-right: 2.25rem !important; 206 } 207 .ui.modal > .content { 208 display: block; 209 padding: 1rem !important; 210 } 211 .ui.modal > .close { 212 top: 0.5rem !important; 213 right: 0.5rem !important; 214 } 215 /*rtl:ignore*/ 216 .ui.modal .content > .image { 217 display: block; 218 max-width: 100%; 219 margin: 0em auto !important; 220 text-align: center; 221 padding: 0rem 0rem 1rem !important; 222 } 223 .ui.modal > .content > .image > i.icon { 224 font-size: 5rem; 225 text-align: center; 226 } 227 /*rtl:ignore*/ 228 .ui.modal .content > .description { 229 display: block; 230 width: 100% !important; 231 margin: 0em !important; 232 padding: 1rem 0rem !important; 233 box-shadow: none; 234 } 235 236 /* Let Buttons Stack */ 237 .ui.modal > .actions { 238 padding: 1rem 1rem 0rem !important; 239 } 240 .ui.modal .actions > .buttons, 241 .ui.modal .actions > .button { 242 margin-bottom: 1rem; 243 } 244 } 245 246 247 /******************************* 248 Types 249 *******************************/ 250 251 .ui.basic.modal { 252 background-color: transparent; 253 border: none; 254 border-radius: 0em; 255 box-shadow: 0px 0px 0px 0px; 256 color: #ffffff; 257 } 258 .ui.basic.modal > .header, 259 .ui.basic.modal > .content, 260 .ui.basic.modal > .actions { 261 background-color: transparent; 262 } 263 .ui.basic.modal > .header { 264 color: #ffffff; 265 } 266 .ui.basic.modal > .close { 267 top: 1rem; 268 right: 1.5rem; 269 } 270 271 /* Tablet and Mobile */ 272 @media only screen and (max-width: 992px) { 273 .ui.basic.modal > .close { 274 color: #ffffff; 275 } 276 } 277 278 279 /******************************* 280 Variations 281 *******************************/ 282 283 284 /* A modal that cannot fit on the page */ 285 .scrolling.dimmable.dimmed { 286 overflow: hidden; 287 } 288 .scrolling.dimmable.dimmed > .dimmer { 289 overflow: auto; 290 -webkit-overflow-scrolling: touch; 291 } 292 .scrolling.dimmable > .dimmer { 293 position: fixed; 294 } 295 .ui.scrolling.modal { 296 position: static; 297 margin: 3.5rem auto !important; 298 } 299 @media only screen and (max-width: 992px) { 300 .ui.scrolling.modal { 301 margin-top: 1rem; 302 margin-bottom: 1rem; 303 } 304 } 305 306 307 /******************************* 308 States 309 *******************************/ 310 311 .ui.active.modal { 312 display: block; 313 } 314 315 316 /******************************* 317 Variations 318 *******************************/ 319 320 321 /*-------------- 322 Full Screen 323 ---------------*/ 324 325 .ui.fullscreen.modal { 326 width: 95% !important; 327 left: 2.5% !important; 328 margin: 1em auto; 329 } 330 .ui.fullscreen.scrolling.modal { 331 left: 0em !important; 332 } 333 .ui.fullscreen.modal > .header { 334 padding-right: 2.25rem; 335 } 336 .ui.fullscreen.modal > .close { 337 top: 0.905rem; 338 right: 1rem; 339 color: rgba(0, 0, 0, 0.8); 340 } 341 342 /*-------------- 343 Size 344 ---------------*/ 345 346 .ui.modal { 347 font-size: 1rem; 348 } 349 350 /* Small */ 351 .ui.small.modal > .header { 352 font-size: 1.3em; 353 } 354 355 /* Small Modal Width */ 356 @media only screen and (max-width: 767px) { 357 .ui.small.modal { 358 width: 95%; 359 margin: 0em 0em 0em -47.5%; 360 } 361 } 362 @media only screen and (min-width: 768px) { 363 .ui.small.modal { 364 width: 52.8%; 365 margin: 0em 0em 0em -26.4%; 366 } 367 } 368 @media only screen and (min-width: 992px) { 369 .ui.small.modal { 370 width: 44.4%; 371 margin: 0em 0em 0em -22.2%; 372 } 373 } 374 @media only screen and (min-width: 1400px) { 375 .ui.small.modal { 376 width: 33.6%; 377 margin: 0em 0em 0em -16.8%; 378 } 379 } 380 @media only screen and (min-width: 1920px) { 381 .ui.small.modal { 382 width: 25.2%; 383 margin: 0em 0em 0em -12.6%; 384 } 385 } 386 387 /* Large Modal Width */ 388 .ui.large.modal > .header { 389 font-size: 1.6em; 390 } 391 @media only screen and (max-width: 767px) { 392 .ui.large.modal { 393 width: 95%; 394 margin: 0em 0em 0em -47.5%; 395 } 396 } 397 @media only screen and (min-width: 768px) { 398 .ui.large.modal { 399 width: 88%; 400 margin: 0em 0em 0em -44%; 401 } 402 } 403 @media only screen and (min-width: 992px) { 404 .ui.large.modal { 405 width: 88.8%; 406 margin: 0em 0em 0em -44.4%; 407 } 408 } 409 @media only screen and (min-width: 1400px) { 410 .ui.large.modal { 411 width: 67.2%; 412 margin: 0em 0em 0em -33.6%; 413 } 414 } 415 @media only screen and (min-width: 1920px) { 416 .ui.large.modal { 417 width: 50.4%; 418 margin: 0em 0em 0em -25.2%; 419 } 420 } 421 422 423 /******************************* 424 Theme Overrides 425 *******************************/ 426 427 428 429 /******************************* 430 Site Overrides 431 *******************************/ 432