gallery.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .dg-container {
  2. width: 100%;
  3. height: 100%;
  4. position: relative;
  5. padding-top: 50px;
  6. }
  7. .dg-wrapper{
  8. width: 550px;
  9. height: 360px;
  10. margin: 0 auto;
  11. position: relative;
  12. -webkit-transform-style: preserve-3d;
  13. -moz-transform-style: preserve-3d;
  14. -o-transform-style: preserve-3d;
  15. -ms-transform-style: preserve-3d;
  16. transform-style: preserve-3d;
  17. -webkit-perspective: 1000px;
  18. -moz-perspective: 1000px;
  19. -o-perspective: 1000px;
  20. -ms-perspective: 1000px;
  21. perspective: 1000px;
  22. }
  23. .dg-wrapper a{
  24. width: 100%;
  25. height: 100%;
  26. display: block;
  27. position: absolute;
  28. left: 0;
  29. top: 0;
  30. background: transparent url(browser.png) no-repeat top left;
  31. box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
  32. }
  33. .dg-wrapper a.dg-transition{
  34. -webkit-transition: all 0.5s ease-in-out;
  35. -moz-transition: all 0.5s ease-in-out;
  36. -o-transition: all 0.5s ease-in-out;
  37. -ms-transition: all 0.5s ease-in-out;
  38. transition: all 0.5s ease-in-out;
  39. }
  40. .dg-wrapper a img,
  41. .dg-wrapper a iframe {
  42. display: block;
  43. text-align: center;
  44. padding: 48px 1px 1px 1px;
  45. margin: 0 auto;
  46. max-width: calc(100% - 2px);
  47. height: calc(100% - 16px);
  48. }
  49. .dg-wrapper a img {
  50. width: auto;
  51. }
  52. .dg-wrapper a div {
  53. /*font-style: italic;*/
  54. font-weight: 600;
  55. text-align: center;
  56. line-height: 50px;
  57. text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
  58. color: #5882FA;
  59. font-size: 16px;
  60. width: 100%;
  61. bottom: -75px;
  62. display: none;
  63. position: absolute;
  64. }
  65. .dg-wrapper a.dg-center div{
  66. display: block;
  67. }
  68. .dg-container nav{
  69. width: 58px;
  70. position: absolute;
  71. z-index: 1000;
  72. bottom: 60px;
  73. left: 50%;
  74. margin-left: -29px;
  75. }
  76. .dg-container nav span{
  77. text-indent: -9000px;
  78. float: left;
  79. cursor:pointer;
  80. width: 24px;
  81. height: 25px;
  82. opacity: 0.8;
  83. background: transparent url(arrows.png) no-repeat top left;
  84. }
  85. .dg-container nav span:hover{
  86. opacity: 1;
  87. }
  88. .dg-container nav span.dg-next{
  89. background-position: top right;
  90. margin-left: 10px;
  91. }
  92. @media(min-width: 1400px) {
  93. .dg-container {
  94. padding-top: 100px;
  95. }
  96. .dg-wrapper {
  97. width: 764px;
  98. height: 500px;
  99. }
  100. .dg-wrapper a {
  101. background: transparent url(browser-bg.png) no-repeat top left;
  102. }
  103. .dg-wrapper a img,
  104. .dg-wrapper a iframe {
  105. padding-top: 65px;
  106. }
  107. }