ui.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. /* Artfully masterminded by ZURB */
  2. /* --------------------------------------------------
  3. Table of Contents
  4. -----------------------------------------------------
  5. :: Buttons
  6. :: Alerts
  7. :: Notices/Alerts
  8. :: Tabs
  9. :: Pagination
  10. :: Lists
  11. :: Panels
  12. :: Nav
  13. :: Video
  14. :: Microformats
  15. */
  16. /* --------------------------------------------------
  17. Buttons
  18. -------------------------------------------------- */
  19. .button {
  20. background: #00a6fc;
  21. display: inline-block;
  22. text-align: center;
  23. padding: 9px 34px 11px;
  24. color: #fff;
  25. text-decoration: none;
  26. font-weight: bold;
  27. line-height: 1;
  28. font-family: "Helvetica Neue", "Helvetica", Arial, Verdana, sans-serif;
  29. position: relative;
  30. cursor: pointer;
  31. border: none;
  32. }
  33. /* Don't use native buttons on iOS */
  34. input[type=submit].button, button.button { -webkit-appearance: none; }
  35. .button.nice {
  36. background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px;
  37. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  38. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  39. text-shadow: 0 -1px 1px rgba(0,0,0,0.28);
  40. background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px, -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, transparent 100%);
  41. background: #00a6fc url(../images/misc/button-gloss.png) repeat-x 0 -34px, -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.4)), color-stop(100%,transparent));
  42. border: 1px solid #0593dc;
  43. -webkit-transition: background-color .15s ease-in-out;
  44. -moz-transition: background-color .15s ease-in-out;
  45. -o-transition: background-color .15s ease-in-out;
  46. }
  47. .button.radius {
  48. -moz-border-radius: 3px;
  49. -webkit-border-radius: 3px;
  50. border-radius: 3px;
  51. }
  52. .button.round {
  53. -moz-border-radius: 1000px;
  54. -webkit-border-radius: 1000px;
  55. border-radius: 1000px;
  56. }
  57. .button.full-width {
  58. width: 100%;
  59. padding-left: 0 !important;
  60. padding-right: 0 !important;
  61. text-align: center;
  62. }
  63. .button.left-align {
  64. text-align: left;
  65. text-indent: 12px;
  66. }
  67. /* Sizes ---------- */
  68. .small.button { font-size: 11px; padding: 8px 20px 10px; width: auto; }
  69. .medium.button { font-size: 13px; width: auto; }
  70. .large.button { font-size: 18px; padding: 11px 48px 13px; width: auto; }
  71. /* Nice Sizes ---------- */
  72. .nice.small.button { background-position: 0 -36px; }
  73. .nice.large.button { background-position: 0 -30px; }
  74. /* Colors ---------- */
  75. .blue.button { background-color: #00a6fc; }
  76. .red.button { background-color: #e91c21; }
  77. .white.button { background-color: #e9e9e9; color: #333; }
  78. .black.button { background-color: #141414; }
  79. /* Nice Colors ---------- */
  80. .nice.blue.button { border: 1px solid #0593dc; }
  81. .nice.red.button { border: 1px solid #b90b0b; }
  82. .nice.white.button { border: 1px solid #cacaca; text-shadow: none !important; }
  83. .nice.black.button { border: 1px solid #000; }
  84. /* Hovers ---------- */
  85. .button:hover, .button:focus { background-color: #0192dd; color: #fff; }
  86. .blue.button:hover, .blue.button:focus { background-color: #0192dd; }
  87. .red.button:hover, .red.button:focus { background-color: #d01217; }
  88. .white.button:hover, .white.button:focus { background-color: #dadada; color: #333; }
  89. .black.button:hover, .black.button:focus { background-color: #000; }
  90. /* Disabled ---------- */
  91. .button.disabled, .button[disabled] { opacity: 0.6; cursor: default; }
  92. /* --------------------------------------------------
  93. Alerts
  94. -------------------------------------------------- */
  95. div.alert-box { display: block; padding: 6px 7px; font-weight: bold; font-size: 13px; background: #eee; border: 1px solid rgba(0,0,0,0.1); margin-bottom: 12px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; text-shadow: 0 1px rgba(255,255,255,0.9); position: relative; }
  96. .alert-box.success { background-color: #7fae00; color: #fff; text-shadow: 0 -1px rgba(0,0,0,0.3); }
  97. .alert-box.warning { background-color: #c08c00; color: #fff; text-shadow: 0 -1px rgba(0,0,0,0.3); }
  98. .alert-box.error { background-color: #c00000; color: #fff; text-shadow: 0 -1px rgba(0,0,0,0.3); }
  99. .alert-box a.close { color: #000; position: absolute; right: 4px; top: 0; font-size: 18px; opacity: 0.2; padding: 4px; }
  100. .alert-box a.close:hover,.alert-box a.close:focus { opacity: 0.4; }
  101. /* --------------------------------------------------
  102. Tabs
  103. -------------------------------------------------- */
  104. dl.tabs { display: block; margin: 0 0 20px 0; padding: 0; height: 30px; border-bottom: solid 1px #ddd; }
  105. dl.tabs dt { display: block; width: auto; height: 30px; padding: 0 9px 0 20px; line-height: 30px; float: left; color: #999; font-size: 11px; text-transform: uppercase; cursor: default; }
  106. dl.tabs dt:first-child { padding: 0 9px 0 0; }
  107. dl.tabs dd { display: block; width: auto; height: 30px; padding: 0; float: left; }
  108. dl.tabs dd a { display: block; width: auto; height: 29px; padding: 0 9px; line-height: 30px; border: solid 1px #ddd; margin: 0 -1px 0 0; color: #555; background: #eee; }
  109. dl.tabs dd a.active { background: #fff; border-width: 1px 1px 0 1px; height: 30px; }
  110. .nice.tabs { border-bottom: solid 1px #eee; margin: 0 0 30px 0; height:43px; }
  111. .nice.tabs dd a { padding: 7px 18px 9px; font-size: 15px; font-size: 1.5rem; color: #555555; background: none; border: none; }
  112. .nice.tabs dd a.active { font-weight: bold; color: #333; background: #fff; border-left: 1px solid #eee; border-right: 1px solid #eee; border-top: 3px solid #00a6fc; margin: 0 10px; position: relative; top: -5px; }
  113. .nice.tabs dd:first-child a.active { margin-left: 0; }
  114. dl.tabs.vertical { height: auto; }
  115. dl.tabs.vertical dt, dl.tabs.vertical dd, dl.nice.tabs.vertical dt, dl.nice.tabs.vertical dd { float: none; height: auto; }
  116. dl.tabs.vertical dd a { display: block; width: auto; height: auto; padding: 15px 20px; line-height: 1; border: solid 0 #ccc; border-width: 1px 1px 0; margin: 0; color: #555; background: #eee; font-size: 15px; font-size: 1.5rem; }
  117. dl.tabs.vertical dd a.active { height: auto; margin: 0; border-width: 1px 0 0; background: #fff; }
  118. .nice.tabs.vertical { border-bottom: solid 1px #eee; height: auto; }
  119. .nice.tabs.vertical dd a { padding: 15px 20px; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; border-top: 1px solid #eee; background: #fff; }
  120. .nice.tabs.vertical dd a.active { border: none; background: #00a6fc; color: #fff; margin: 0; position: static; top: 0; height: auto; }
  121. .nice.tabs.vertical dd:first-child a.active { margin: 0; }
  122. ul.tabs-content { margin: 0; display: block; }
  123. ul.tabs-content>li { display:none; }
  124. ul.tabs-content>li.active { display: block; }
  125. dl.contained, dl.nice.contained { margin-bottom: 0; }
  126. dl.contained.tabs dd a { padding: 0 14px; }
  127. dl.nice.contained.tabs dd a { padding: 7px 18px 9px; }
  128. ul.contained.tabs-content { padding: 0; }
  129. ul.contained.tabs-content>li { padding: 20px; border: solid 0 #ddd; border-width: 0 1px 1px 1px; }
  130. ul.nice.contained.tabs-content>li { border-color: #eee; }
  131. /* --------------------------------------------------
  132. Pagination
  133. -------------------------------------------------- */
  134. ul.pagination { display: block; height: 24px; margin-left: -5px; }
  135. ul.pagination li { float: left; display: block; height: 24px; color: #999; font-size: 15px; margin-left: 5px; }
  136. ul.pagination li a { display: block; padding: 6px 7px 4px; color: #555; }
  137. ul.pagination li.current a, ul.pagination li:hover a, ul.pagination li a:focus { border-bottom: solid 2px #00a6fc; color: #141414; }
  138. ul.pagination li.unavailable a { cursor: default; color: #999; }
  139. ul.pagination li.unavailable:hover a, ul.pagination li.unavailable a:focus { border-bottom: none; }
  140. /* --------------------------------------------------
  141. Lists
  142. -------------------------------------------------- */
  143. ul.nice, ol.nice { list-style: none; margin: 0; }
  144. ul.nice li, ol.nice li { padding-left: 13px; position: relative }
  145. ul.nice li span.bullet, ol.nice li span.number { position: absolute; left: 0; top: 0; color: #ccc; }
  146. /* --------------------------------------------------
  147. Panels
  148. -------------------------------------------------- */
  149. div.panel {
  150. padding: 20px 20px 2px 20px;
  151. background: #efefef;
  152. background: -moz-linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
  153. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFFFFF), color-stop(100%,#F4F4F4));
  154. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#F4F4F4',GradientType=0 );
  155. box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  156. -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  157. -moz-box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  158. margin: 0 0 20px 0;
  159. }
  160. /* --------------------------------------------------
  161. Nav Bar with Dropdowns
  162. -------------------------------------------------- */
  163. .nav-bar { height: 45px; background: #fff; margin-top: 20px; border: 1px solid #ddd; }
  164. .nav-bar>li { float: left; display: block; position: relative; padding: 0; margin: 0; border-right: 1px solid #ddd; line-height: 45px; }
  165. .nav-bar>li>a { position: relative; font-size: 14px; padding: 0 20px; display: block; text-decoration: none; font-size: 15px; font-size: 1.5rem; }
  166. .nav-bar>li>input { margin: 0 16px; }
  167. .nav-bar>li ul { margin-bottom: 0; }
  168. .nav-bar>li li { line-height: 1.3; }
  169. .nav-bar>li.has-flyout>a { padding-right: 36px; }
  170. .nav-bar>li.has-flyout>a:after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #2a85e8; display: block; position: absolute; right: 18px; bottom: 20px; }
  171. .nav-bar>li:hover>a { color: #141414; z-index: 2; }
  172. .nav-bar>li:hover>a:after { border-top-color: #141414; }
  173. .flyout { background: #fff; margin: 0; padding: 20px; border: 1px solid #ddd; position: absolute; top: 45px; left: -1px; width: 400px; z-index: 10; }
  174. .flyout.small { width: 200px; }
  175. .flyout.large { width: 600px; }
  176. .flyout.right { left: auto; right: 0; }
  177. .flyout p:last-child { margin-bottom: 0; }
  178. .nav-bar>li .flyout { display: none; }
  179. .nav-bar>li:hover .flyout { display: block; }
  180. /* --------------------------------------------------
  181. Video
  182. Mad props to http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
  183. -------------------------------------------------- */
  184. .flex-video {
  185. position: relative;
  186. padding-top: 25px;
  187. padding-bottom: 67.5%;
  188. height: 0;
  189. margin-bottom: 16px;
  190. overflow: hidden;
  191. }
  192. .flex-video.widescreen { padding-bottom: 57.25%; }
  193. .flex-video.vimeo { padding-top: 0; }
  194. .flex-video iframe,
  195. .flex-video object,
  196. .flex-video embed {
  197. position: absolute;
  198. top: 0;
  199. left: 0;
  200. width: 100%;
  201. height: 100%;
  202. }
  203. /* --------------------------------------------------
  204. Microformats
  205. -------------------------------------------------- */
  206. /* hCard */
  207. ul.vcard { display: inline-block; margin: 0 0 12px 0; border: 1px solid #ddd; padding: 10px; }
  208. ul.vcard li { margin: 0; display: block; }
  209. ul.vcard li.fn { font-weight: bold; font-size: 15px; font-size: 1.5rem; }
  210. p.vevent span.summary { font-weight: bold; }
  211. p.vevent abbr { cursor: default; text-decoration: none; font-weight: bold; border: none; padding: 0 1px; }