You are here

advanced_forum.naked.structure.css in Advanced Forum 6.2

/*
This document contains structural markup such as widths, margins, padding, and
floats.
*/

/*** PAGER ******************************************************************/

/* This is the pager on the topics in the list */
.topic-pager {
  font-size: 90%;
  font-style: italic;
}

/* Other pagers in the forum */
#forum-comments .pager {
  text-align: right;
}

#forum-comments .pager li {
  padding: 3px;
  margin: 0;
}

.forum-pager .pager,
.forum-comment-wrapper .pager {
  text-align: right;
  float: right;
  clear: none;
  width: 30%;
}

#forum-pager-top .pager{
  padding: 14px 0 0 0;
}

#forum-pager-bottom .pager{
  padding: 0 0 10px 0;
}

/* The rest of the pager styles are invisible on naked but will show up
   for substyles that set a background and/or border. */
.forum-pager .pager a,
.forum-comment-wrapper .pager a {
  padding: 1px 3px;
  margin: 0pt;
}

.forum-pager .pager li,
.forum-comment-wrapper .pager li {
  padding:0pt;
  margin: 0pt;
}

.forum-pager.pager li.pager-current,
.forum-comment-wrapper .pager li.pager-current {
  padding: 2px 3px 2px 3px;
}

/*** FORUM LINK LISTS *******************************************************/

/* Applies to all forum links */
ul.forum-links li {
  display: inline;
}

/*** FORUM NODE CREATION ****************************************************/

.forum-node-create-links {
  width: 30%;
  float: left;
}

.forum-node-create-links-top {
  clear: both;
  padding-top: 20px; /* Lines up horizontally with pager. */
}

.forum-node-create-links .forum-add-node {
  float: left;
  margin-right: 10px;
}

/*** FORUM & TOPIC LIST TABLES **********************************************/

.forum-table {
  margin: 0px;
}

.forum-table-wrap,
.forum-table-topics {
  margin-bottom: 15px;
  clear: both;
}

.forum-table-superheader {
  padding: 10px;
}

.forum-table-superheader .forum-table-name {
  margin: 5px 0 3px 5px;
  width: 90%;
  display: inline;
  font-size: 1.2em;
}

.forum-table-superheader .forum-table-description {
  margin: 0 0 3px 5px;
  width: 90%;
}

/* Header, both tables */
.forum-table th {
  text-align: left;
}

/* Forum listing */
th.forum-name {
  text-align: left;
}

td.forum-details .forum-description {
  margin: 0;
}

td.forum-details .forum-subforums,
td.forum-details .forum-subcontainers {
  margin-left: 10px;
}

td.forum-number-topics,
td.forum-number-posts {
  text-align: center;
}

th.forum-icon {
 width: 70px;
}

th.forum-topics,
th.forum-posts {
  width: 10%;
  text-align: center;
}

th.forum-last-post {
  width: 20%;
}

/**** Topic listing ****/

.view-advanced-forum-topic-list .view-empty {
  clear: both;
  margin: 20px 0 20px 0;
  padding: 10px;
}

/* Set column widths */
.forum-table-topics td.views-field-topic-icon {
  width: 26px;
}

.forum-table-topics td.views-field-comment-count,
.forum-table-topics td.views-field-totalcount {
  width: 10%;
}

.forum-table-topics td.views-field-last-updated,
.forum-table-topics td.views-field-last-comment-timestamp {
  width: 30%;
}

/* Set alignments & spacing */
.forum-table-topics .views-field-title {
  text-align: left;
}

.forum-table-topics td.views-field-comment-count,
.forum-table-topics td.views-field-totalcount {
  text-align: center;
  white-space: nowrap;
}

.forum-table-topics td.views-field-last-updated {
  line-height: 140%;
  white-space: normal !important;
}

/* Topic icon */
.forum-table-topics span.topic-icon {
  display: block;
}

/*** FORUM SORT *************************************************************/
#advanced-forum-forum-topic-list-sort-form,
#advanced-forum-forum-topic-list-sort-form input,
#advanced-forum-forum-topic-list-sort-form .form-item {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: center;
}

#forum-sort {
  clear: both;
  float: left;
}

/*** FORUM TOOLS ***********************************************************/

.forum-tools{
  float: right;
  margin-top: 10px;
}

/*** FORUM STATISTICS *******************************************************/

#forum-statistics-header,
.forum-statistics-sub-header {
  padding: 0.3em 0.5em;
}

.forum-statistics-sub-body {
  padding: 0.3em 0.5em 0 2em;
}


/*** ICONS LEGEND ***********************************************************/

.forum-list-icon-legend {
  margin-bottom: 30px;
}

.forum-list-legend-item {
  float: left;
  margin-right: 30px;
}

.forum-topic-legend div {
  clear: both;
  float: left;
  padding: 5px 0 5px 25px;
  margin-right: 7px;
}


/*** FORUM TOPICS **********************************************************/

/* Header at the top of each topic/thread */
.forum-topic-header {
  margin: 10px 0 2px 0;
}

.forum-topic-header .search-topic {
  float: right;
}

.forum-topic-header .topic-post-count {
  clear: right;
  float: right;
  margin: 7px 7px 0 0;
}

.forum-topic-header .topic-reply-link,
.forum-topic-header .topic-new-post-link,
.forum-topic-header .last-post-link {
  float: left;
  margin: 0 7px 7px 0;
}


.forum-topic-header .reply-count {
  float: right;
  margin: 10px 0 2px 0;
}

/* Individual forum post */
.forum-post {
  margin: 0 0 5px 0;
  padding: 0;
}

.forum-post-wrapper {
  clear: both;
  height: 100%;
}

/* Header at the top of each post */
.forum-post-info {
  height:100%;
  clear: both;
  margin-bottom: 3px;
}

.forum-posted-on {
  padding: 0 5px;
  float: left;
  font-size: .8em;
}

.forum-post .new {
  float: none;
}

.forum-post-number {
  float: right;
  margin-right: 5px;
}

.forum-post-title {
  padding: 1px 1px 1px 10px;
}

/* Author information pane */
.forum-post-panel-sub {
  float: left;
  line-height: 100%;
  width: 150px;
}

.forum-post-panel-sub .author-pane {
  margin: 10px;
}

.forum-post-panel-sub .author-pane .author-name {
  font-size: 120%;
}

.forum-post-panel-sub .author-pane .picture {
  float: none;
  padding-left: 0px;
  margin: 2px 0 10px 0;
}

.forum-post-panel-sub .author-pane .picture img {
  padding: 5px;
}

.forum-post-panel-sub .author-pane .author-pane-section {
  margin-bottom: 10px;
}

.forum-post-panel-sub .author-pane .author-pane-line {
  margin-bottom: 7px;
}

/* Post text area */
.forum-post-panel-main {
  margin-left: 150px; /*Set left margin to LeftColumnWidth*/

/* These heights keep the AP items from jumping out of the bottom. Depending
   on how many items you display, there, this number may need to be adjusted
   to avoid having unnecessary white space in your posts. */
  min-height: 230px;
  height: auto !important;
  height: 230px;
}

.forum-post-panel-main .forum-post-content {
  padding-top: 2px;
}

.forum-post-panel-main .post-title,
.forum-post-panel-main .forum-post-content {
  margin-left: 0;
  padding-left: 10px;
}

.forum-post-panel-main p {
  margin-right: 10px;
}

/* Signature */
.author-signature {
  margin: 10px 0 5px 10px;
}

/* Edited */
.post-edited {
  margin: 10px;
}

/* Post footer */
.forum-post-footer {
  margin-top: 0;
  clear: both;
}

.forum-jump-links {
  float: left;
  line-height: 2em;
  margin: 5px;
}

.forum-post-links {
  float: right;
  line-height: 2em;
  text-align: right;
  margin: 10px 0 5px 5px;
}

.forum-post-links ul.links li {
  display: block;
  float: left;
}

.forum-top-post-footer {
  margin: 10px 0 10px 0;
  padding: 5px;
}

/* Defeat garland */
#comments.forum-comment-wrapper {
  margin-top: 0;
}

.forum-comment-wrapper .box {
  clear: both;
}

/*** SEARCH ****************************************************************/

#search-all-forums {
  float: right;
}

#search-single-forum {
  float: left;
}

#advanced-forum-search-forum,
.forum-topic-header #advanced-forum-search-topic {
  margin: 0;
  padding: 14px 0 0 0;
}

#advanced-forum-search-forum input,
.forum-topic-header #advanced-forum-search-topic input {
  margin: 0;
  padding: 0;
}

.forum-topic-header #advanced-forum-search-topic {
  margin-bottom: 10px;
}

.view-avf-search .views-row,
.view-avf-search-topic .views-row {
  margin-bottom: 2em;
}

.forum-search-result {
  margin-bottom: 10px;
}

/*** GENERAL ****************************************************************/

/* Accessibly hide text. Copied from D7 core and so not needed in D7 AF */
.element-invisible {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}
  

File

styles/naked/advanced_forum.naked.structure.css
View source
  1. /*
  2. This document contains structural markup such as widths, margins, padding, and
  3. floats.
  4. */
  5. /*** PAGER ******************************************************************/
  6. /* This is the pager on the topics in the list */
  7. .topic-pager {
  8. font-size: 90%;
  9. font-style: italic;
  10. }
  11. /* Other pagers in the forum */
  12. #forum-comments .pager {
  13. text-align: right;
  14. }
  15. #forum-comments .pager li {
  16. padding: 3px;
  17. margin: 0;
  18. }
  19. .forum-pager .pager,
  20. .forum-comment-wrapper .pager {
  21. text-align: right;
  22. float: right;
  23. clear: none;
  24. width: 30%;
  25. }
  26. #forum-pager-top .pager{
  27. padding: 14px 0 0 0;
  28. }
  29. #forum-pager-bottom .pager{
  30. padding: 0 0 10px 0;
  31. }
  32. /* The rest of the pager styles are invisible on naked but will show up
  33. for substyles that set a background and/or border. */
  34. .forum-pager .pager a,
  35. .forum-comment-wrapper .pager a {
  36. padding: 1px 3px;
  37. margin: 0pt;
  38. }
  39. .forum-pager .pager li,
  40. .forum-comment-wrapper .pager li {
  41. padding:0pt;
  42. margin: 0pt;
  43. }
  44. .forum-pager.pager li.pager-current,
  45. .forum-comment-wrapper .pager li.pager-current {
  46. padding: 2px 3px 2px 3px;
  47. }
  48. /*** FORUM LINK LISTS *******************************************************/
  49. /* Applies to all forum links */
  50. ul.forum-links li {
  51. display: inline;
  52. }
  53. /*** FORUM NODE CREATION ****************************************************/
  54. .forum-node-create-links {
  55. width: 30%;
  56. float: left;
  57. }
  58. .forum-node-create-links-top {
  59. clear: both;
  60. padding-top: 20px; /* Lines up horizontally with pager. */
  61. }
  62. .forum-node-create-links .forum-add-node {
  63. float: left;
  64. margin-right: 10px;
  65. }
  66. /*** FORUM & TOPIC LIST TABLES **********************************************/
  67. .forum-table {
  68. margin: 0px;
  69. }
  70. .forum-table-wrap,
  71. .forum-table-topics {
  72. margin-bottom: 15px;
  73. clear: both;
  74. }
  75. .forum-table-superheader {
  76. padding: 10px;
  77. }
  78. .forum-table-superheader .forum-table-name {
  79. margin: 5px 0 3px 5px;
  80. width: 90%;
  81. display: inline;
  82. font-size: 1.2em;
  83. }
  84. .forum-table-superheader .forum-table-description {
  85. margin: 0 0 3px 5px;
  86. width: 90%;
  87. }
  88. /* Header, both tables */
  89. .forum-table th {
  90. text-align: left;
  91. }
  92. /* Forum listing */
  93. th.forum-name {
  94. text-align: left;
  95. }
  96. td.forum-details .forum-description {
  97. margin: 0;
  98. }
  99. td.forum-details .forum-subforums,
  100. td.forum-details .forum-subcontainers {
  101. margin-left: 10px;
  102. }
  103. td.forum-number-topics,
  104. td.forum-number-posts {
  105. text-align: center;
  106. }
  107. th.forum-icon {
  108. width: 70px;
  109. }
  110. th.forum-topics,
  111. th.forum-posts {
  112. width: 10%;
  113. text-align: center;
  114. }
  115. th.forum-last-post {
  116. width: 20%;
  117. }
  118. /**** Topic listing ****/
  119. .view-advanced-forum-topic-list .view-empty {
  120. clear: both;
  121. margin: 20px 0 20px 0;
  122. padding: 10px;
  123. }
  124. /* Set column widths */
  125. .forum-table-topics td.views-field-topic-icon {
  126. width: 26px;
  127. }
  128. .forum-table-topics td.views-field-comment-count,
  129. .forum-table-topics td.views-field-totalcount {
  130. width: 10%;
  131. }
  132. .forum-table-topics td.views-field-last-updated,
  133. .forum-table-topics td.views-field-last-comment-timestamp {
  134. width: 30%;
  135. }
  136. /* Set alignments & spacing */
  137. .forum-table-topics .views-field-title {
  138. text-align: left;
  139. }
  140. .forum-table-topics td.views-field-comment-count,
  141. .forum-table-topics td.views-field-totalcount {
  142. text-align: center;
  143. white-space: nowrap;
  144. }
  145. .forum-table-topics td.views-field-last-updated {
  146. line-height: 140%;
  147. white-space: normal !important;
  148. }
  149. /* Topic icon */
  150. .forum-table-topics span.topic-icon {
  151. display: block;
  152. }
  153. /*** FORUM SORT *************************************************************/
  154. #advanced-forum-forum-topic-list-sort-form,
  155. #advanced-forum-forum-topic-list-sort-form input,
  156. #advanced-forum-forum-topic-list-sort-form .form-item {
  157. margin-top: 0 !important;
  158. margin-bottom: 0 !important;
  159. padding-top: 0 !important;
  160. padding-bottom: 0 !important;
  161. vertical-align: center;
  162. }
  163. #forum-sort {
  164. clear: both;
  165. float: left;
  166. }
  167. /*** FORUM TOOLS ***********************************************************/
  168. .forum-tools{
  169. float: right;
  170. margin-top: 10px;
  171. }
  172. /*** FORUM STATISTICS *******************************************************/
  173. #forum-statistics-header,
  174. .forum-statistics-sub-header {
  175. padding: 0.3em 0.5em;
  176. }
  177. .forum-statistics-sub-body {
  178. padding: 0.3em 0.5em 0 2em;
  179. }
  180. /*** ICONS LEGEND ***********************************************************/
  181. .forum-list-icon-legend {
  182. margin-bottom: 30px;
  183. }
  184. .forum-list-legend-item {
  185. float: left;
  186. margin-right: 30px;
  187. }
  188. .forum-topic-legend div {
  189. clear: both;
  190. float: left;
  191. padding: 5px 0 5px 25px;
  192. margin-right: 7px;
  193. }
  194. /*** FORUM TOPICS **********************************************************/
  195. /* Header at the top of each topic/thread */
  196. .forum-topic-header {
  197. margin: 10px 0 2px 0;
  198. }
  199. .forum-topic-header .search-topic {
  200. float: right;
  201. }
  202. .forum-topic-header .topic-post-count {
  203. clear: right;
  204. float: right;
  205. margin: 7px 7px 0 0;
  206. }
  207. .forum-topic-header .topic-reply-link,
  208. .forum-topic-header .topic-new-post-link,
  209. .forum-topic-header .last-post-link {
  210. float: left;
  211. margin: 0 7px 7px 0;
  212. }
  213. .forum-topic-header .reply-count {
  214. float: right;
  215. margin: 10px 0 2px 0;
  216. }
  217. /* Individual forum post */
  218. .forum-post {
  219. margin: 0 0 5px 0;
  220. padding: 0;
  221. }
  222. .forum-post-wrapper {
  223. clear: both;
  224. height: 100%;
  225. }
  226. /* Header at the top of each post */
  227. .forum-post-info {
  228. height:100%;
  229. clear: both;
  230. margin-bottom: 3px;
  231. }
  232. .forum-posted-on {
  233. padding: 0 5px;
  234. float: left;
  235. font-size: .8em;
  236. }
  237. .forum-post .new {
  238. float: none;
  239. }
  240. .forum-post-number {
  241. float: right;
  242. margin-right: 5px;
  243. }
  244. .forum-post-title {
  245. padding: 1px 1px 1px 10px;
  246. }
  247. /* Author information pane */
  248. .forum-post-panel-sub {
  249. float: left;
  250. line-height: 100%;
  251. width: 150px;
  252. }
  253. .forum-post-panel-sub .author-pane {
  254. margin: 10px;
  255. }
  256. .forum-post-panel-sub .author-pane .author-name {
  257. font-size: 120%;
  258. }
  259. .forum-post-panel-sub .author-pane .picture {
  260. float: none;
  261. padding-left: 0px;
  262. margin: 2px 0 10px 0;
  263. }
  264. .forum-post-panel-sub .author-pane .picture img {
  265. padding: 5px;
  266. }
  267. .forum-post-panel-sub .author-pane .author-pane-section {
  268. margin-bottom: 10px;
  269. }
  270. .forum-post-panel-sub .author-pane .author-pane-line {
  271. margin-bottom: 7px;
  272. }
  273. /* Post text area */
  274. .forum-post-panel-main {
  275. margin-left: 150px; /*Set left margin to LeftColumnWidth*/
  276. /* These heights keep the AP items from jumping out of the bottom. Depending
  277. on how many items you display, there, this number may need to be adjusted
  278. to avoid having unnecessary white space in your posts. */
  279. min-height: 230px;
  280. height: auto !important;
  281. height: 230px;
  282. }
  283. .forum-post-panel-main .forum-post-content {
  284. padding-top: 2px;
  285. }
  286. .forum-post-panel-main .post-title,
  287. .forum-post-panel-main .forum-post-content {
  288. margin-left: 0;
  289. padding-left: 10px;
  290. }
  291. .forum-post-panel-main p {
  292. margin-right: 10px;
  293. }
  294. /* Signature */
  295. .author-signature {
  296. margin: 10px 0 5px 10px;
  297. }
  298. /* Edited */
  299. .post-edited {
  300. margin: 10px;
  301. }
  302. /* Post footer */
  303. .forum-post-footer {
  304. margin-top: 0;
  305. clear: both;
  306. }
  307. .forum-jump-links {
  308. float: left;
  309. line-height: 2em;
  310. margin: 5px;
  311. }
  312. .forum-post-links {
  313. float: right;
  314. line-height: 2em;
  315. text-align: right;
  316. margin: 10px 0 5px 5px;
  317. }
  318. .forum-post-links ul.links li {
  319. display: block;
  320. float: left;
  321. }
  322. .forum-top-post-footer {
  323. margin: 10px 0 10px 0;
  324. padding: 5px;
  325. }
  326. /* Defeat garland */
  327. #comments.forum-comment-wrapper {
  328. margin-top: 0;
  329. }
  330. .forum-comment-wrapper .box {
  331. clear: both;
  332. }
  333. /*** SEARCH ****************************************************************/
  334. #search-all-forums {
  335. float: right;
  336. }
  337. #search-single-forum {
  338. float: left;
  339. }
  340. #advanced-forum-search-forum,
  341. .forum-topic-header #advanced-forum-search-topic {
  342. margin: 0;
  343. padding: 14px 0 0 0;
  344. }
  345. #advanced-forum-search-forum input,
  346. .forum-topic-header #advanced-forum-search-topic input {
  347. margin: 0;
  348. padding: 0;
  349. }
  350. .forum-topic-header #advanced-forum-search-topic {
  351. margin-bottom: 10px;
  352. }
  353. .view-avf-search .views-row,
  354. .view-avf-search-topic .views-row {
  355. margin-bottom: 2em;
  356. }
  357. .forum-search-result {
  358. margin-bottom: 10px;
  359. }
  360. /*** GENERAL ****************************************************************/
  361. /* Accessibly hide text. Copied from D7 core and so not needed in D7 AF */
  362. .element-invisible {
  363. position: absolute !important;
  364. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  365. clip: rect(1px, 1px, 1px, 1px);
  366. }