cntl.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. body {
  2. font-family: Arial;
  3. }
  4. .cntl {
  5. position: relative;
  6. width: 100%;
  7. overflow: hidden;
  8. }
  9. .cntl-center {
  10. left: 0;
  11. right: 0;
  12. margin-left: auto;
  13. margin-right: auto;
  14. }
  15. .cntl-bar {
  16. position: absolute;
  17. width: 10px;
  18. top: 0;
  19. bottom: 0;
  20. background-color: #ccc;
  21. box-shadow: inset 0px 0px 7px -2px #000;
  22. }
  23. .cntl-bar-fill {
  24. background-color: #009ABB;
  25. position: absolute;
  26. left: 0;
  27. right: 0;
  28. top: 0;
  29. height: 0;
  30. }
  31. .cntl-state {
  32. position: relative;
  33. width: 100%;
  34. min-height: 200px;
  35. margin-bottom: 50px;
  36. }
  37. .cntl-state::after {
  38. display: block;
  39. content: ' ';
  40. clear: both;
  41. }
  42. .cntl-icon {
  43. border-radius: 50%;
  44. width: 80px;
  45. height: 80px;
  46. background-color: #00313C;
  47. border: solid 3px #009ABB;
  48. box-shadow: 0px 0px 19px -9px #000;
  49. position: absolute;
  50. top: 0;
  51. text-align: center;
  52. line-height: 80px;
  53. font-size: 25px;
  54. color: #fff;
  55. }
  56. .cntl-content {
  57. width: 40%;
  58. padding: 2%;
  59. background-color: rgba(238, 238, 238, 0.25);
  60. border-radius: 8px;
  61. border-bottom: solid 3px #009ABB;
  62. float: left;
  63. opacity: 0;
  64. position: relative;
  65. margin-left: -40%;
  66. }
  67. .cntl-state:nth-child(2n+2) .cntl-content {
  68. float: right;
  69. margin-right: -40%;
  70. }
  71. .cntl-image {
  72. width: 45%;
  73. padding: 2%;
  74. }
  75. .cntl-state:nth-child(2n+1) .cntl-image {
  76. float: right;
  77. }
  78. .cntl-image img {
  79. /*width: 90%;*/
  80. margin-bottom: 5px;
  81. }
  82. .cntl-image span {
  83. float: left;
  84. width: 100%;
  85. text-align: center;
  86. padding-bottom: 5px;
  87. color: #000000;
  88. font-weight: 600;
  89. }
  90. .cntl-content h4 {
  91. font-size: 20px;
  92. font-weight: normal;
  93. margin-bottom: 10px;
  94. }
  95. /*
  96. animations
  97. */
  98. .cntl-bar-fill, .cntl-content, .cntl-image {
  99. -webkit-transition: all 500ms ease;
  100. -moz-transition: all 500ms ease;
  101. -o-transition: all 500ms ease;
  102. -ms-transition: all 500ms ease;
  103. transition: all 500ms ease;
  104. }
  105. .cntl-state:nth-child(2n+2).cntl-animate .cntl-content {
  106. margin-right: 0%;
  107. }
  108. .cntl-animate .cntl-content {
  109. opacity: 1;
  110. margin-left: 0%;
  111. }
  112. .cntl-animate .cntl-image {
  113. opacity: 1;
  114. }
  115. /* mobile support */
  116. @media (max-width: 600px) {
  117. .cntl-bar {
  118. left: auto;
  119. right: 37px;
  120. }
  121. .cntl-content {
  122. width: 80%;
  123. float: none;
  124. }
  125. .cntl-state:nth-child(2n+2) .cntl-content {
  126. margi-right: 0%;
  127. float: none;
  128. }
  129. .cntl-image {
  130. width: 80%;
  131. }
  132. .cntl-state:nth-child(2n+1) .cntl-image {
  133. float: none;
  134. }
  135. .animate .cntl-content {
  136. margin-left: 2%;
  137. }
  138. .cntl-icon {
  139. left: auto;
  140. right: 0;
  141. }
  142. }