cs-skin-elastic.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. @font-face {
  2. font-family: 'icomoon';
  3. src:url('../font/icomoon.eot');
  4. src:url('../font/icomoon.eot') format('embedded-opentype'),
  5. url('../font/icomoon.woff') format('woff'),
  6. url('../font/icomoon.ttf') format('truetype'),
  7. url('https://technext.github.io/elaadmin/assets/fonts/icomoon/icomoon.svg?-rdnm34') format('svg');
  8. font-weight: normal;
  9. font-style: normal;
  10. }
  11. div.cs-skin-elastic {
  12. background: transparent;
  13. font-size: 1.5em;
  14. font-weight: 700;
  15. color: #5b8583;
  16. }
  17. @media screen and (max-width: 30em) {
  18. div.cs-skin-elastic { font-size: 1em; }
  19. }
  20. .cs-skin-elastic > span {
  21. background-color: #fff;
  22. z-index: 100;
  23. }
  24. .cs-skin-elastic > span::after {
  25. font-family: 'icomoon';
  26. content: '\e005';
  27. -webkit-backface-visibility: hidden;
  28. backface-visibility: hidden;
  29. }
  30. .cs-skin-elastic .cs-options {
  31. overflow: visible;
  32. background: transparent;
  33. opacity: 1;
  34. visibility: visible;
  35. padding-bottom: 1.25em;
  36. pointer-events: none;
  37. }
  38. .cs-skin-elastic.cs-active .cs-options {
  39. pointer-events: auto;
  40. }
  41. .cs-skin-elastic .cs-options > ul::before {
  42. content: '';
  43. position: absolute;
  44. width: 100%;
  45. height: 100%;
  46. left: 0;
  47. top: 0;
  48. -webkit-transform: scale3d(1,0,1);
  49. transform: scale3d(1,0,1);
  50. background: #fff;
  51. -webkit-transform-origin: 50% 0%;
  52. transform-origin: 50% 0%;
  53. -webkit-transition: -webkit-transform 0.3s;
  54. transition: transform 0.3s;
  55. }
  56. .cs-skin-elastic.cs-active .cs-options > ul::before {
  57. -webkit-transform: scale3d(1,1,1);
  58. transform: scale3d(1,1,1);
  59. -webkit-transition: none;
  60. transition: none;
  61. -webkit-animation: expand 0.6s ease-out;
  62. animation: expand 0.6s ease-out;
  63. }
  64. .cs-skin-elastic .cs-options ul li {
  65. opacity: 0;
  66. -webkit-transform: translate3d(0,-25px,0);
  67. transform: translate3d(0,-25px,0);
  68. -webkit-transition: opacity 0.15s, -webkit-transform 0.15s;
  69. transition: opacity 0.15s, transform 0.15s;
  70. }
  71. .cs-skin-elastic.cs-active .cs-options ul li {
  72. -webkit-transform: translate3d(0,0,0);
  73. transform: translate3d(0,0,0);
  74. opacity: 1;
  75. -webkit-transition: none;
  76. transition: none;
  77. -webkit-animation: bounce 0.6s ease-out;
  78. animation: bounce 0.6s ease-out;
  79. }
  80. /* Optional delays (problematic in IE 11/Win) */
  81. /*
  82. .cs-skin-elastic.cs-active .cs-options ul li:first-child {
  83. -webkit-animation-delay: 0.1s;
  84. animation-delay: 0.1s;
  85. }
  86. .cs-skin-elastic.cs-active .cs-options ul li:nth-child(2) {
  87. -webkit-animation-delay: 0.15s;
  88. animation-delay: 0.15s;
  89. }
  90. .cs-skin-elastic.cs-active .cs-options ul li:nth-child(3) {
  91. -webkit-animation-delay: 0.2s;
  92. animation-delay: 0.2s;
  93. }
  94. .cs-skin-elastic.cs-active .cs-options ul li:nth-child(4) {
  95. -webkit-animation-delay: 0.25s;
  96. animation-delay: 0.25s;
  97. }
  98. /* with more items, more delays declarations are needed */
  99. .cs-skin-elastic .cs-options span {
  100. background-repeat: no-repeat;
  101. background-position: 1.5em 50%;
  102. background-size: 2em auto;
  103. padding: 0.8em 1em 0.8em 4em;
  104. }
  105. .cs-skin-elastic .cs-options span:hover,
  106. .cs-skin-elastic .cs-options li.cs-focus span,
  107. .cs-skin-elastic .cs-options .cs-selected span {
  108. color: #1e4c4a;
  109. }
  110. .cs-skin-elastic .cs-options .cs-selected span::after {
  111. content: '';
  112. }
  113. .cs-skin-elastic .cs-options li.flag-france span {
  114. background-image: url(https://technext.github.io/elaadmin/assets/img/france.svg);
  115. }
  116. .cs-skin-elastic .cs-options li.flag-brazil span {
  117. background-image: url(https://technext.github.io/elaadmin/assets/img/brazil.svg);
  118. }
  119. .cs-skin-elastic .cs-options li.flag-safrica span {
  120. background-image: url(https://technext.github.io/elaadmin/assets/img/south-africa.svg);
  121. }
  122. .cs-skin-elastic .cs-options li.flag-argentina span {
  123. background-image: url(https://technext.github.io/elaadmin/assets/img/argentina.svg);
  124. }
  125. @-webkit-keyframes expand {
  126. 0% { -webkit-transform: scale3d(1,0,1); }
  127. 25% { -webkit-transform: scale3d(1,1.2,1); }
  128. 50% { -webkit-transform: scale3d(1,0.85,1); }
  129. 75% { -webkit-transform: scale3d(1,1.05,1) }
  130. 100% { -webkit-transform: scale3d(1,1,1); }
  131. }
  132. @keyframes expand {
  133. 0% { -webkit-transform: scale3d(1,0,1); transform: scale3d(1,0,1); }
  134. 25% { -webkit-transform: scale3d(1,1.2,1); transform: scale3d(1,1.2,1); }
  135. 50% { -webkit-transform: scale3d(1,0.85,1); transform: scale3d(1,0.85,1); }
  136. 75% { -webkit-transform: scale3d(1,1.05,1); transform: scale3d(1,1.05,1); }
  137. 100% { -webkit-transform: scale3d(1,1,1); transform: scale3d(1,1,1); }
  138. }
  139. @-webkit-keyframes bounce {
  140. 0% { -webkit-transform: translate3d(0,-25px,0); opacity:0; }
  141. 25% { -webkit-transform: translate3d(0,10px,0); }
  142. 50% { -webkit-transform: translate3d(0,-6px,0); }
  143. 75% { -webkit-transform: translate3d(0,2px,0); }
  144. 100% { -webkit-transform: translate3d(0,0,0); opacity: 1; }
  145. }
  146. @keyframes bounce {
  147. 0% { -webkit-transform: translate3d(0,-25px,0); transform: translate3d(0,-25px,0); opacity:0; }
  148. 25% { -webkit-transform: translate3d(0,10px,0); transform: translate3d(0,10px,0); }
  149. 50% { -webkit-transform: translate3d(0,-6px,0); transform: translate3d(0,-6px,0); }
  150. 75% { -webkit-transform: translate3d(0,2px,0); transform: translate3d(0,2px,0); }
  151. 100% { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); opacity: 1; }
  152. }
  153. /* Default custom select styles */
  154. div.cs-select {
  155. display: inline-block;
  156. vertical-align: middle;
  157. position: relative;
  158. text-align: left;
  159. background: #f1f2f7;
  160. z-index: 100;
  161. width: 100%;
  162. max-width: 80px;
  163. margin-left: 25px;
  164. -webkit-touch-callout: none;
  165. -webkit-user-select: none;
  166. -khtml-user-select: none;
  167. -moz-user-select: none;
  168. -ms-user-select: none;
  169. user-select: none;
  170. }
  171. div.cs-select:focus {
  172. outline: none; /* For better accessibility add a style for this in your skin */
  173. }
  174. .cs-select select {
  175. display: none;
  176. }
  177. .cs-select span {
  178. display: block;
  179. position: relative;
  180. cursor: pointer;
  181. padding: 9px 15px;
  182. white-space: nowrap;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. }
  186. /* Placeholder and selected option */
  187. .cs-select > span::after,
  188. .cs-select .cs-selected span::after {
  189. speak: none;
  190. position: absolute;
  191. top: 50%;
  192. -webkit-transform: translateY(-50%);
  193. transform: translateY(-50%);
  194. -webkit-font-smoothing: antialiased;
  195. -moz-osx-font-smoothing: grayscale;
  196. }
  197. .cs-select > span::after {
  198. content: "\f107";
  199. font-family: 'Fontawesome';
  200. right: 1em;
  201. }
  202. .cs-select .cs-selected span::after {
  203. content: '\2713';
  204. margin-left: 1em;
  205. }
  206. .cs-select.cs-active > span::after {
  207. -webkit-transform: translateY(-50%) rotate(180deg);
  208. transform: translateY(-50%) rotate(180deg);
  209. }
  210. div.cs-active {
  211. z-index: 200;
  212. }
  213. /* Options */
  214. .cs-select .cs-options {
  215. position: absolute;
  216. overflow: hidden;
  217. width: 100%;
  218. background: #f1f2f7;
  219. visibility: hidden;
  220. }
  221. .cs-select.cs-active .cs-options {
  222. visibility: visible;
  223. }
  224. .cs-select ul {
  225. list-style: none;
  226. margin: 0;
  227. padding: 0;
  228. width: 100%;
  229. }
  230. .cs-select ul span {
  231. padding: 5px 15px;
  232. }
  233. .cs-select ul li {
  234. display: block;
  235. }
  236. .cs-select ul li.cs-focus span {
  237. background-color: #ddd;
  238. }
  239. /* Optgroup and optgroup label */
  240. .cs-select li.cs-optgroup ul {
  241. padding-left: 1em;
  242. }
  243. .cs-select li.cs-optgroup > span {
  244. cursor: default;
  245. }