You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
1.8 KiB

  1. /* https://github.com/LearnBoost/CSS3-Overlay/ */
  2. body.overlaid {
  3. -webkit-user-select: none;
  4. -moz-user-select: none;
  5. user-select: none;
  6. }
  7. body.overlaid div.overlay {
  8. -webkit-transform: translateY(0);
  9. -moz-transform: translateY(0);
  10. transform: translateY(0);
  11. }
  12. div.overlay {
  13. /* using display none to hide the overlay nullifies -webkit-transition */
  14. -webkit-transform: translateY(-50000px);
  15. -moz-transform: translateY(-50000px);
  16. transform: translateY(-50000px);
  17. position: fixed;
  18. width: 100%;
  19. height: 100%;
  20. top: 0;
  21. left: 0;
  22. background: rgba(0,0,0,0.4);
  23. -webkit-user-select: auto;
  24. -moz-user-select: auto;
  25. user-select: auto;
  26. }
  27. div.overlay > div.wrap-outer {
  28. position: relative;
  29. width: 100%;
  30. height: 100%;
  31. display: -webkit-box;
  32. display: -moz-box;
  33. display: box;
  34. -webkit-box-orient: horizontal;
  35. -moz-box-orient: horizontal;
  36. box-orient: horizontal;
  37. -webkit-box-align: stretch;
  38. -moz-box-align: stretch;
  39. box-align: stretch;
  40. -webkit-box-pack: center;
  41. -moz-box-pack: center;
  42. box-pack: center;
  43. }
  44. div.overlay > div.wrap-outer > div.wrap {
  45. display: -webkit-box;
  46. display: -moz-box;
  47. display: box;
  48. -webkit-box-orient: vertical;
  49. -moz-box-orient: vertical;
  50. box-orient: vertical;
  51. -webkit-box-align: stretch;
  52. -moz-box-align: stretch;
  53. box-align: stretch;
  54. -webkit-box-pack: center;
  55. -moz-box-pack: center;
  56. box-pack: center;
  57. }
  58. div.overlay > div.wrap-outer > div.wrap > * {
  59. -webkit-box-flex: 0;
  60. -moz-box-flex: 0;
  61. box-flex: 0;
  62. display: block;
  63. }
  64. div.overlay > div.wrap-outer > div.wrap > div.dialog {
  65. padding: 21px;
  66. background-color: #fff;
  67. }