Advertisement
Guest User

Q&A Plugins CSS

a guest
May 19th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 KB | None | 0 0
  1. /* = General
  2. -------------------------------------------------------------- */
  3.  
  4. #qa-page-wrapper {
  5. float: left;
  6. width: 580px;
  7. overflow: hidden;
  8. padding-bottom: 20px;
  9. padding-left: 20px;
  10. }
  11.  
  12. #qa-error-notice {
  13. background-color: #ffebe8;
  14. border: 1px solid #c00;
  15. font-weight: bold;
  16. margin-bottom: 20px;
  17. padding: 5px;
  18. }
  19.  
  20. #qa-auth {
  21. margin-bottom: 20px;
  22. }
  23.  
  24. /* = Main Navigation
  25. -------------------------------------------------------------- */
  26.  
  27. #qa-menu {
  28. clear: both;
  29. overflow: hidden;
  30. margin-bottom: 10px;
  31. }
  32.  
  33. #qa-menu ul {
  34. margin: 0;
  35. }
  36.  
  37. #qa-menu li {
  38. background-color: #777;
  39. display: block;
  40. float: left;
  41. margin-right: 7px;
  42. }
  43.  
  44. #qa-menu #qa-current-url {
  45. background-color: #21759B;
  46. }
  47.  
  48. #qa-menu a {
  49. color: #FFF;
  50. display: block;
  51. font-weight: bold;
  52. padding: 4px 10px;
  53. text-decoration: none;
  54. }
  55.  
  56. #qa-menu form {
  57. padding-top: 3px;
  58. }
  59.  
  60. #qa-menu input {
  61. height: 18px;
  62. line-height: 18px;
  63. padding: 2px;
  64. display: block;
  65. float: left;
  66. }
  67.  
  68. #qa-menu button {
  69. margin-left: 2px;
  70. }
  71.  
  72. .qa-pagination {
  73. clear: both;
  74. margin: 20px 0;
  75. overflow: hidden;
  76. }
  77.  
  78. .qa-pagination a,
  79. .qa-pagination span {
  80. border: 1px solid #CCC;
  81. color: #808185;
  82. display: block;
  83. float: left;
  84. font-family: Trebuchet MS,Liberation Sans,DejaVu Sans,sans-serif;
  85. font-size: 130%;
  86. margin-right: 3px;
  87. padding: 4px 4px 3px;
  88. text-decoration: none;
  89. }
  90.  
  91. .qa-pagination .prev,
  92. .qa-pagination .next,
  93. .qa-pagination .dots {
  94. border: 1px solid #FFF;
  95. }
  96.  
  97. .qa-pagination .current {
  98. background-color: #808185;
  99. border: 1px solid #808185;
  100. color: #FFF;
  101. font-weight: bold;
  102. }
  103.  
  104. /* = Common Question Elements
  105. -------------------------------------------------------------- */
  106.  
  107. .question-tags a {
  108. background-color: #F5F5F5;
  109. color: #666;
  110. font-size: 90%;
  111. line-height: 2.4;
  112. margin: 2px 2px 2px 0;
  113. padding: 3px 4px;
  114. text-decoration: none;
  115. white-space: nowrap;
  116. }
  117.  
  118. /* = Archive Question
  119. -------------------------------------------------------------- */
  120.  
  121. .question {
  122. border-bottom: 1px dotted #999999;
  123. overflow: hidden;
  124. padding: 10px 0;
  125. }
  126.  
  127. .question a:link, .question a:hover {
  128. color: #07C;
  129. text-decoration: none;
  130. }
  131.  
  132. .question a:visited {
  133. color: #4A6B82;
  134. }
  135.  
  136. .question a:hover {
  137. text-decoration: underline;
  138. }
  139.  
  140. .question-stats {
  141. float: left;
  142. }
  143.  
  144. #questions-nav {
  145. margin: 1em 0;
  146. }
  147.  
  148. #questions-nav-prev {
  149. float: left;
  150. }
  151.  
  152. #questions-nav-next {
  153. float: right;
  154. }
  155.  
  156. /* Archive Question Stats */
  157.  
  158. .question-score,
  159. .question-status {
  160. float: left;
  161. height: 38px;
  162. margin-right: 5px;
  163. padding: 5px;
  164. }
  165.  
  166. .question-stats {
  167. text-align: center;
  168. }
  169.  
  170. .mini-count {
  171. font-size: 190%;
  172. padding-bottom: 7px;
  173. }
  174.  
  175. .question-score {
  176. color: #666;
  177. width: 2.4em;
  178. }
  179.  
  180. .question-status {
  181. color: #FFF;
  182. width: 3.9em;
  183. }
  184.  
  185. .question-status.answered-accepted,
  186. .question-status.answered {
  187. color: #21759B;
  188. }
  189.  
  190. .question-status.answered-accepted .mini-count {
  191. background-color: #E0EAF1;
  192. }
  193.  
  194. .question-status.unanswered {
  195. color: #000;
  196. }
  197.  
  198. /* Archive Question Summary */
  199.  
  200. .question-summary {
  201. padding: 0 5px 0 0;
  202. float: right;
  203. width: 80%;
  204. }
  205.  
  206. .question h3 {
  207. font-family: Trebuchet MS,Liberation Sans,DejaVu Sans,sans-serif;
  208. font-size: 130%;
  209. font-weight: bold;
  210. margin-bottom: 5px;
  211. }
  212.  
  213. .question-summary .question-tags {
  214. float: left;
  215. }
  216.  
  217. .question-started {
  218. float: right;
  219. }
  220.  
  221. /* = Single Question
  222. -------------------------------------------------------------- */
  223.  
  224. #single-question h1,
  225. #answer-list h2 {
  226. border-bottom: 1px solid #000000;
  227. color: #000;
  228. line-height: 1.75;
  229. }
  230.  
  231. #single-question-container {
  232. overflow: hidden;
  233. padding: 20px 0;
  234. }
  235.  
  236. .qa-user-box {
  237. float: left;
  238. background-color: #E0EAF1;
  239. padding: 5px;
  240. border: 1px solid #222;
  241. width: 480px;
  242. }
  243.  
  244. .qa-user-box .avatar {
  245. float: left;
  246. margin-right: 5px;
  247. }
  248.  
  249. .qa-user-details {
  250. float: left;
  251. line-height: 17px;
  252. }
  253.  
  254. .qa-user-rep {
  255. font-weight: bold;
  256. }
  257.  
  258. .answer {
  259. border-bottom: 1px solid #aaa;
  260. clear: both;
  261. overflow: hidden;
  262. padding: 20px 0;
  263. }
  264.  
  265. /* Voting box */
  266. #question-body,
  267. .answer-body {
  268. float: right;
  269. width: 85%;
  270. }
  271.  
  272. .qa-voting-box {
  273. float: left;
  274. width: 60px;
  275. }
  276.  
  277. .qa-voting-box input,
  278. .qa-voting-box a,
  279. .qa-voting-box span {
  280. display: block;
  281. }
  282.  
  283. .vote-up-on,
  284. .vote-up-off,
  285. .vote-down-on,
  286. .vote-down-off,
  287. .vote-accepted-on,
  288. .vote-accepted-off {
  289. border: 0;
  290. background-color: #fff !important;
  291. background-image: url("../img/vote.png") !important;
  292. background-repeat: no-repeat !important;
  293. overflow: hidden;
  294. text-indent: -9999em;
  295. margin: 0 auto;
  296. cursor: pointer;
  297. }
  298.  
  299. .vote-accepted-off,
  300. .vote-accepted-on {
  301. background-image: url("../img/accept.png") !important;
  302. display: block;
  303. height: 40px !important;
  304. width: 39px !important;
  305. }
  306.  
  307. .vote-accepted-on {
  308. background-position: 0 0 !important;
  309. }
  310.  
  311. .vote-accepted-off {
  312. background-position: 0 -35px !important;
  313. }
  314.  
  315. .vote-up-on,
  316. .vote-up-off,
  317. .vote-down-on,
  318. .vote-down-off {
  319. height: 25px !important;
  320. width: 41px !important;
  321. }
  322.  
  323. .vote-up-on {
  324. background-position: 0 0 !important;
  325. }
  326.  
  327. .vote-up-off {
  328. background-position: 0 -36px !important;
  329. }
  330.  
  331. .vote-down-off {
  332. background-position: 0 -70px !important;
  333. }
  334.  
  335. .vote-down-on {
  336. background-position: 0 -101px !important;
  337. }
  338.  
  339. .qa-voting-box span {
  340. color: #808185;
  341. font-weight: bold;
  342. font-family: "Arial", "Liberation Sans", "DejaVu Sans",sans-serif;
  343. font-size: 240%;
  344. line-height: 36px;
  345. text-align: center;
  346. }
  347.  
  348. /* = User profile
  349. -------------------------------------------------------------- */
  350.  
  351. #qa-user-box {
  352. float: left;
  353. margin-right: 20px;
  354. width: 128px;
  355. }
  356.  
  357. #qa-user-box .qa-user-rep {
  358. color: #808185;
  359. font-size: 350%;
  360. font-weight: bold;
  361. text-align: center;
  362. line-height: 1;
  363. }
  364.  
  365. #qa-user-details {
  366. margin-top: 20px;
  367. }
  368.  
  369. #qa-user-details th {
  370. font-weight: normal;
  371. padding-right: 1em;
  372. text-align: left;
  373. }
  374.  
  375. #qa-user-details td {
  376. padding: 4px 0;
  377. }
  378.  
  379. .ui-tabs-hide {
  380. display: none !important;
  381. }
  382.  
  383. #qa-user-tabs-wrapper {
  384. clear: both;
  385. padding-top: 20px;
  386. }
  387.  
  388. #qa-user-tabs {
  389. border-bottom: 1px solid #666;
  390. clear: both;
  391. font-weight: bold;
  392. list-style: none;
  393. margin: 0;
  394. height: 34px;
  395. }
  396.  
  397. #qa-user-tabs li {
  398. display: inline;
  399. }
  400.  
  401. #qa-user-tabs a {
  402. background: inherit;
  403. border: 1px solid #FFF;
  404. color: #777;
  405. display: block;
  406. float: left;
  407. font-size: 120%;
  408. line-height: 28px;
  409. margin: 3px 8px 0 0;
  410. padding: 0 11px;
  411. text-decoration: none;
  412. }
  413.  
  414. #qa-user-tabs a:hover,
  415. #qa-user-tabs a.youarehere {
  416. background: none repeat scroll 0 0 #FFF;
  417. border-color: #777 #777 #FFF;
  418. border-style: solid;
  419. border-width: 1px;
  420. height: 30px;
  421. }
  422.  
  423. #qa-user-tabs a.youarehere {
  424. color: black;
  425. }
  426.  
  427.  
  428. #qa-user-answers ul {
  429. list-style-type: none;
  430. margin: 0;
  431. }
  432.  
  433. #qa-user-answers {
  434. margin-top: 20px;
  435. }
  436.  
  437. #qa-user-answers li {
  438. overflow: hidden;
  439. padding: 3px;
  440. }
  441.  
  442. #qa-user-answers .answer-link {
  443. padding-left: 10px;
  444. }
  445.  
  446. .answer-score {
  447. color: #555555;
  448. float: left;
  449. font-size: 110%;
  450. font-weight: bold;
  451. height: 15px;
  452. padding: 4px 4px 5px;
  453. text-align: center;
  454. text-decoration: none;
  455. width: 20px;
  456. }
  457.  
  458. /* = QA Form
  459. -------------------------------------------------------------- */
  460.  
  461. #edit-answer {
  462. padding-top: 20px;
  463. }
  464.  
  465. #question-form textarea,
  466. #answer-form textarea {
  467. width: 600px;
  468. height: 200px;
  469. }
  470.  
  471. #question-form textarea,
  472. #answer-form textarea,
  473. .cleditorMain {
  474. width: 575px!important;
  475. margin: 20px 0;
  476. }
  477.  
  478.  
  479. /* = Question Form
  480. -------------------------------------------------------------- */
  481.  
  482. #question-taxonomies {
  483. margin-bottom: 20px;
  484. }
  485.  
  486. #question-form table {
  487. width: 580px;
  488. }
  489.  
  490. #question-form table input {
  491. width: 100%;
  492. }
  493.  
  494. #question-title-label,
  495. #question-category-td,
  496. #question-tags-label {
  497. width: 1%;
  498. }
  499.  
  500. #question-title-label,
  501. #question-tags-label {
  502. padding-right: .5em;
  503. }
  504.  
  505. #question-tags-label {
  506. padding-left: 1em;
  507. }
  508.  
  509. #question-title,
  510. #question-tags {
  511. border: 1px solid #999;
  512. background-color: #fff;
  513. }
  514.  
  515. /* = Answer Form
  516. -------------------------------------------------------------- */
  517.  
  518. #answer-form h2 {
  519. color: black;
  520. line-height: 1.75;
  521. }
  522.  
  523. /* = Suggest
  524. -------------------------------------------------------------- */
  525.  
  526. .qa-suggest-results {
  527. padding: 0;
  528. margin: 0;
  529. list-style: none;
  530. position: absolute;
  531. display: none;
  532. z-index: 10000;
  533. border-width: 1px;
  534. border-style: solid;
  535. }
  536. .qa-suggest-results li {padding: 2px 5px; white-space: nowrap; text-align: left}
  537. .qa-suggest-match {text-decoration: underline}
  538. .qa-suggest-over {cursor: pointer}
  539.  
  540. /* Suggest colors */
  541. .qa-suggest-results {background-color: #fff; border-color: #808080}
  542. .qa-suggest-results li {color: #101010}
  543. .qa-suggest-match {color: #000}
  544. .qa-suggest-over {background-color: #f0f0b8}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement