RUSSEL86

Style sheet cheetsheet

Mar 9th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 13.14 KB | None | 0 0
  1. /*placeholder text color*/
  2. --------------------------
  3. input::-webkit-input-placeholder{color:#00B7F1;}
  4. input:-moz-placeholder{color:#00B7F1;}
  5. input::-moz-placeholder{color:#00B7F1;}
  6. input:-ms-input-placeholder{color:#00B7F1;}
  7. input::-ms-input-placeholder{color:#00B7F1;}
  8. input:placeholder-shown{color: #00B7F1;}
  9. --- or --------
  10. ::-webkit-input-placeholder {
  11.    color: red;}
  12. :-moz-placeholder { /* Firefox 18- */
  13.    color: red;}
  14. ::-moz-placeholder {  /* Firefox 19+ */
  15.    color: red;  }
  16. :-ms-input-placeholder {  
  17.    color: red;}
  18. :placeholder-shown{color: red;}
  19.  
  20. /*Hover animation example left to right*/
  21. --------------------------
  22. .archive_sidebar ul li a{box-shadow: inset -15px 0px 0px 0px #ED135B;}
  23. .archive_sidebar ul li  a:hover{box-shadow: inset -360px 0px 0px 0px #ED135B;}
  24.  
  25. /*Hover animation example 180 degree */
  26. .costs_sing_imge_hover{
  27.     transition: all 0.9s ease 0s;
  28.     -moz-transition: all 0.9s ease 0s;
  29.     -webkit-transition: all 0.9s ease 0s;
  30.     -o-transition: all 0.9s ease 0s;
  31.     position: absolute;
  32.     top: 0;
  33.     left: 0;
  34.     background: #fff;
  35.     width: 100%;
  36.     height: 100%;
  37.     border: 1px solid #a48a7a;
  38.     cursor:pointer;
  39.     border-radius: 40px;
  40.     visibility:hidden;
  41.     -webkit-transform: rotate3d(0, 1, 0, -180deg);
  42.     -moz-transform: rotate3d(0, 1, 0, -180deg);
  43.     -ms-transform: rotate3d(0, 1, 0, -180deg);
  44.     -o-transform: rotate3d(0, 1, 0, -180deg);
  45.     transform: rotate3d(0, 1, 0, -180deg);
  46.     opacity: 0;
  47. }
  48. .costs_sing_imge:hover .costs_sing_imge_hover{visibility:inherit;
  49. -webkit-transform: rotate3d(0, 1, 0, 0deg);
  50. -moz-transform: rotate3d(0, 1, 0, 0deg);
  51. -ms-transform: rotate3d(0, 1, 0, 0deg);
  52.  -o-transform: rotate3d(0, 1, 0, 0deg);
  53.  transform: rotate3d(0, 1, 0, 0deg);opacity: 1;}
  54.  === html ===
  55. <div class="costs_sing_imge fix">
  56.     <a href=""><img src="<?php get_option_tree( 'upload_cost_three', '', true ); ?>" alt="" /></a>
  57.     <div class="costs_sing_imge_hover fix">
  58.         <?php get_option_tree( 'upload_cost_content_three', '', true ); ?>
  59.     </div>
  60. </div>
  61.  
  62. source = http://www.citycar.co.il/cost/
  63.    
  64. /* multicolor border*/
  65. ------------------------------
  66. .footer_top_border {
  67.     background: linear-gradient(to right, #931a1a 1%,#931a1a 14%,#d4cfb7 14%,#d4cfb7 40%,#7c7b74 40%,#7c7b74 55%,#2b2b28 55%,#2b2b28 65%,#d4cfb7 65%,#d4cfb7 72%,#e0591e 72%,#e0591e 85%,#2b2b28 85%,#2b2b28 100%);
  68.     height: 10px;
  69. }
  70.  
  71. /* auto viewport-height height div */
  72. ------------------------------------------------------------------------
  73. div {height: 100vh;}
  74. or
  75. #fullHeightDiv {
  76.     position: absolute;
  77.     top: 0;
  78.     bottom: 0;
  79. }
  80. or jquery
  81. $('#ID').css("height", $(document).height());
  82.  
  83. or use css for auto heighr like masonary
  84. ---------------------------------------
  85. //parent div
  86. .download_wrapper_single {
  87.     -moz-column-count:4;
  88.     -moz-column-gap: 10px;
  89.     -webkit-column-count:4;
  90.     -webkit-column-gap: 10px;
  91.     column-count: 4;
  92.     column-gap: 10px;
  93. }
  94. //child
  95. .downlaod {
  96.     display: inline-block;
  97.     margin-bottom: 10px;
  98. }
  99.  
  100.  
  101. /* Fixing CSS/Drop-Down Menus That Hide Behind Flash Objects */
  102. ------------------------------------------------------------------------
  103. The Solution: Set the z-index of the div holding the flash to 1 and the z-index of the div holding the nav to 2.
  104. In the flash element:
  105. example: <embed wmode="transparent" class="banner" src="<?php echo get_template_directory_uri(); ?>/banner.swf"/>
  106.  
  107. /*Column Auto Height CSS*/
  108. --------------------------
  109. -moz-column-count: 3;
  110. -moz-column-gap: 0.33%;
  111. -moz-column-width: 33%;
  112. -webkit-column-count: 3;
  113. -webkit-column-gap: 0.33%;
  114. -webkit-column-width: 33%;
  115. column-count: 3;
  116. column-gap: 0.33%;
  117. column-width: 33%;
  118.  
  119. /*--  show other div on hover another and stay till mouseleave? --*/
  120. --------------------------------
  121. .button:hover + .box, .box:hover {
  122.     display:block;
  123. }
  124.  
  125.  
  126. /* before after style*/
  127.  
  128. h3:after {
  129. content: "";
  130. width: 75px;
  131. background: url(img/border_arrow.png)no-repeat scroll 0 0;
  132. position: absolute;
  133. left: 50%;
  134. top: 23px;
  135. height: 20px;
  136. margin-left: -37px;}
  137.  
  138. /* insert two border into div 1 same color other different color style*/
  139.  .xyz{box-shadow: 0px 3px 0px 0px #EDEDED, inset 0px -2px 0px 0px #fff;}
  140.  
  141.  /* insert down arrow shape style*/
  142. a:after{
  143.     content:"";
  144.     border-top: 5px solid #333333;
  145.     position: absolute;
  146.     top: 0;
  147.     left: 50%;
  148.     border-left: 5px solid transparent;
  149.     border-right: 5px solid transparent;
  150.     margin-left: -5px;
  151. }
  152.  
  153.  
  154. ==========================================
  155.         /* Wordpress Common Style */
  156.         ============================
  157.        
  158. /* code for Menu with dropdown */
  159. #nav { }
  160. ul#nav { }
  161. ul#nav li{float: left;margin-right: 5px;position: relative;}
  162. ul#nav li:hover > a{background: #7d93b0;color: #fff;}
  163. ul#nav li a{text-transform: uppercase;display: block;padding: 25px 19px;color: #5c6261;}
  164. ul#nav li a:hover{background: #7d93b0;color: #fff;}
  165. ul#nav li.current_page_item a{background: #7d93b0;color: #fff;}
  166. ul#nav li ul.sub-menu{position: absolute;left: 0;top: 100%;display: block;z-index: 90;background: #7D93B0;width: 170px;opacity: 0;visibility: hidden;}
  167. ul#nav li ul.sub-menu li{float: none;display: block;margin: 0;border-bottom: 1px solid #F3F3F3;}
  168. ul#nav li ul.sub-menu li:last-child{border-bottom: 0px solid #F3F3F3;}
  169. ul#nav li ul.sub-menu li a{display: block;color: #fff;font-size: 14px;padding: 10px;text-align: center;}
  170. ul#nav li ul.sub-menu li a:hover{color: #7D93B0;background:#F3F3F3}
  171. ul#nav li:hover ul.sub-menu{opacity:1;visibility: inherit;transition: all 0.5s;-moz-transition: all 0.5s;-webkit-transition: all 0.5s;-o-transition: all 0.5s;}
  172.  
  173.        
  174. /* Style for Index PHP  & Page.php */
  175. .blog_content{margin: 20px 0; overflow: hidden;width: 100%;}
  176. .page_blog_post{}
  177. .single_blog_post{}
  178. .single_blog_post h2{padding: 10px 0;color: #000;font-size: 22px;margin-bottom: 0;text-align: center;}
  179.  
  180. /* Style for Index PHP  & Blog */
  181. .single_blog_post_two{}
  182. .home_blog_content{padding: 10px;
  183. border: 1px solid rgba(255, 0, 0, 0.33);
  184. margin-bottom: 20px;padding-bottom: 0px;}
  185. .home_blog_content a{color: #000;}
  186. .home_blog_content a h2{}
  187. .time_date_comment{}
  188. .time_date_comment p{}
  189. .time_date_comment p a{color: #ff0000;font-weight: 700;}
  190. a.readmore{color:#ff0000;font-weight: 700;}
  191. .feature_image{float: left;width: 25%;}
  192. .feature_image img{margin-right: 5%;margin-bottom: 10px;display: block;width: 95%;height: auto;}
  193. .nav-previous{float: left;}
  194. .nav-previous a{color: #000;}
  195. .nav-next{float: right;}
  196. .nav-next a{color: #000;}
  197.  
  198. /* 404 style code */
  199. .error_message { overflow: hidden; padding: 30px }
  200. .four_zero_four { font-size: 50px; text-align: center }
  201. .four_zero_four span { display: block; font-size: 200px; line-height: 190px }
  202.  
  203. @media only screen and (max-width: 767px) {
  204. .four_zero_four {font-size: 40px;text-align: center;}
  205. .four_zero_four span {display: block;font-size: 100px;line-height: 80px;}
  206. }
  207. @media only screen and (min-width: 480px) and (max-width: 767px) {
  208. .four_zero_four {font-size: 40px;text-align: center;}
  209. .four_zero_four span {display: block;font-size: 100px;line-height: 80px;}
  210. }
  211.  
  212. /* style for archieve */
  213. .latest_frm_cat_title { border-bottom: 2px solid #ff0000; font-size: 20px; line-height: 25px; margin-left: 10px }
  214. .archive_title {font-size: 31px;margin-bottom: 45px;margin-left: 0px;padding: 15px 0;text-align: center}
  215. .archive_not_found {-moz-box-shadow: 1px 3px 9px;-webkit-box-shadow: 1px 3px 9px;box-shadow: 1px 3px 9px;font-size: 100px;padding: 10px 0 20px;text-align: center}
  216. .archive_not_found h3 {font-family: italic}
  217. .archive_page{padding: 0px 25px}
  218. .archive_page h2{margin-bottom: 10px;}
  219. .archive_content{border: 1px solid rgba(255, 0, 0, 0.33);margin-bottom: 20px;padding: 10px;min-height: 164px;padding-bottom: 5px;}
  220. .archive_content h2{}
  221. .archive_content p{}
  222. .archive_content a{color: #ff0000;font-weight: bold;text-transform: uppercase;float: right;border-bottom: 1px solid #ff0000;margin-top: 5px;}
  223. .archive_img{float: left;width: 20%;margin-right: 1%;}
  224. .archive_img img{width: 100%;height: auto;display: block;margin-bottom: 10px;}
  225.  
  226. /* style for search php */
  227. h2.latest_frm_cat_title span {color: red}
  228. .single_search {border: 1px solid #ddd;margin-bottom: 20px;padding: 15px }
  229. .single_footer ul li a.popular_link_img{float: left;margin-right: 3%;width: 27%;}
  230. .single_footer ul li a.popular_link_img img{width:100%;height:80px;}
  231. .single_footer ul li a.popular_link{float:right;width: 70%;}
  232. .archive_not_found {-moz-box-shadow: 1px 3px 9px;-webkit-box-shadow: 1px 3px 9px;box-shadow: 1px 3px 9px;font-size: 100px;padding: 10px 0 20px;text-align: center}
  233. .archive_title {font-size: 31px;margin-bottom: 45px;margin-left: 0px;padding: 15px 0;text-align: center}
  234.  
  235. /* ===================== comments ===================== */
  236.  
  237. .comments {margin: 10px 0;}
  238. .comments h3 {margin:50px 0 30px 0;font-size:24px;}
  239. ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; }
  240. ol.commentlist li { }
  241. ol.commentlist li.alt { }
  242. ol.commentlist li.bypostauthor {}
  243. ol.commentlist li.byuser {}
  244. ol.commentlist li.comment-author-admin {}
  245. ol.commentlist li.comment { border-bottom: 1px solid #ddd; padding:1em; margin-bottom: 10px; }
  246. ol.commentlist li div.comment-author {}
  247. ol.commentlist li div.vcard { font-size:20px;}
  248. ol.commentlist li div.vcard cite.fn { font-style:normal; }
  249. ol.commentlist li div.vcard cite.fn a.url {}
  250. ol.commentlist li div.vcard img.avatar {float:left; margin:0 1em 1em 0; }
  251. ol.commentlist li div.vcard img.avatar-32 {}
  252. ol.commentlist li div.vcard img.photo {}
  253. ol.commentlist li div.vcard span.says {}
  254. ol.commentlist li div.commentmetadata {}
  255. ol.commentlist li div.comment-meta { font-size:9px; margin-bottom: 10px;}
  256. ol.commentlist li div.comment-meta a { color: #aaa; }
  257. ol.commentlist li p { margin: 0; }
  258. ol.commentlist li ul { list-style:square; margin:0 0 1em 2em; }
  259. ol.commentlist li div.reply { font-size:11px; }
  260. ol.commentlist li div.reply a { font-weight:bold; }
  261. ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; }
  262. ol.commentlist li ul.children li {}
  263. ol.commentlist li ul.children li.alt {}
  264. ol.commentlist li ul.children li.bypostauthor {}
  265. ol.commentlist li ul.children li.byuser {}
  266. ol.commentlist li ul.children li.comment {}
  267. ol.commentlist li ul.children li.comment-author-admin {}
  268. ol.commentlist li ul.children li.depth-2 { margin:0 0 .25em .25em; }
  269. ol.commentlist li ul.children li.depth-3 { margin:0 0 .25em .25em; }
  270. ol.commentlist li ul.children li.depth-4 { margin:0 0 .25em .25em; }
  271. ol.commentlist li ul.children li.depth-5 {}
  272. ol.commentlist li ul.children li.odd {}
  273. ol.commentlist li.even { background:#fff; }
  274. ol.commentlist li.odd { background:#f6f6f6; }
  275. ol.commentlist li.parent { }
  276. ol.commentlist li.pingback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
  277. ol.commentlist li.thread-alt { }
  278. ol.commentlist li.thread-even { }
  279. ol.commentlist li.thread-odd {}
  280.  
  281. /* ===================== comment form ===================== */
  282.  
  283. #respond {position: relative;}
  284. #respond input[type="text"],#respond textarea {border:1px solid #ddd;padding:10px}
  285. #respond input[type="text"] {padding:7px;width:300px}
  286. #respond .comment-form-author,
  287. #respond .comment-form-email,
  288. #respond .comment-form-url,
  289. #respond .comment-form-comment { position: relative; }
  290. #respond .comment-form-author label,
  291. #respond .comment-form-email label,
  292. #respond .comment-form-url label,
  293. #respond .comment-form-comment label { background: #eee; color: #555; display: inline-block; left: 4px; min-width: 60px; padding: 4px 10px; position: relative; top: 40px; z-index: 1; }
  294. #respond input[type="text"]:focus,
  295. #respond textarea:focus { text-indent: 0; z-index: 1; }
  296. #respond textarea { resize: vertical; width: 95%; }
  297. #respond .comment-form-author .required,
  298. #respond .comment-form-email .required { color: #bd3500; font-size: 22px; font-weight: bold; left: 75%; position: absolute; top: 45px; z-index: 1; }
  299. #respond .comment-notes,
  300. #respond .logged-in-as { font-size: 13px; }
  301. #respond p { margin: 10px 0; }
  302. #respond .form-submit { float: right; margin: -20px 0 10px; }
  303. #respond input#submit { background: #454545; border: none; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); color: #eee; cursor: pointer; padding: 5px 42px 5px 22px; }
  304. #respond input#submit:active { background: #86222D; color: #fff; }
  305. #respond #cancel-comment-reply-link { color: #666; margin-left: 10px; text-decoration: none; }
  306. #respond .logged-in-as a:hover,
  307. #respond #cancel-comment-reply-link:hover { text-decoration: underline; }
  308. .commentlist #respond { margin: 1.625em 0 0; width: auto; }
  309. #reply-title { color: #373737; font-size: 20px; }
  310. #cancel-comment-reply-link { color: #888; display: block; position: absolute; right: 1.625em; text-decoration: none; text-transform: uppercase; top: 1.1em; }
  311. #cancel-comment-reply-link:focus,
  312. #cancel-comment-reply-link:active,
  313. #cancel-comment-reply-link:hover { color: #ff4b33; }
  314. #respond label {display: block; float: right; font-size: 16px; line-height: 2.2em; width: 280px;}
  315. #respond input[type=text] {}
  316. #respond p { font-size: 12px; }
  317. p.comment-form-comment { margin: 0; }
  318. .form-allowed-tags { display: none; }
  319. .trackback { margin: 0 0 10px; padding: 1em; border: 1px dashed #ccc; }
Advertisement
Add Comment
Please, Sign In to add comment