MDL-40343 forum: indent less when mobile, nested
[moodle.git] / mod / forum / styles.css
1 /**
2  * Structure of a forum post
3  * div.forumpost(.read.unread)
4  *     div.header.row
5  *         div.picture.left
6  *         div.topic(.starter)
7  *             div.subject
8  *             div.author
9  *     div.row
10  *         div.side.left
11  *         div.content-mask
12  *             div.content
13  *                 div.attachments
14  *                 div.posting(.shortenedpost|.fullpost)
15  *                     // message
16  *                 div.attachedimages
17  *                     // attachedimages
18  *     div.row
19  *         div.left
20  *         div.options
21  *             div.commands
22  *             div.post-word-count
23  *             div.forum-post-rating
24  *             div.link
25  *             div.footer
26  */
28 .forumpost {display: block;position:relative;margin:0 0 1em 0;padding:0;border:1px solid #000;max-width:100%;}
29 .forumpost .row {width:100%;position:relative;}
30 .forumpost .row .left {float:left;width: 43px;overflow:hidden;}
31 .forumpost .row .left .grouppictures a {text-align:center;display:block;margin:6px 2px 0 2px;}
32 .forumpost .row .left .grouppicture {width:20px;height:20px;}
33 .forumpost .row .topic,
34 .forumpost .row .content-mask,
35 .forumpost .row .options {margin-left:43px;}
36 .forumpost .picture img {margin:4px;}
37 .forumpost .options .commands,
38 .forumpost .content .attachments,
39 .forumpost .options .footer,
40 .forumpost .options .link {text-align:right;}
41 .forumpost .options .forum-post-rating {float:left;}
42 .forumpost .content .posting {overflow:auto;max-width:100%;}
43 .forumpost .content .attachedimages img {max-width:100%;}
44 .forumpost .post-word-count { font-size: .85em; font-style: italic; }
45 .forumpost .shortenedpost .post-word-count { display: inline; padding: 0 .3em; }
47 .dir-rtl .forumpost .row .topic,
48 .dir-rtl .forumpost .row .content-mask,
49 .dir-rtl .forumpost .row .options {margin-right:43px;margin-left:0;}
50 .dir-rtl .forumpost .row .left {float:right;}
51 .dir-rtl.path-mod-forum .indent {
52     margin-right: 3%;
53     margin-left: 0;
54 }
56 .path-mod-forum .forumolddiscuss,
57 #page-mod-forum-search .c0 {text-align:right;}
58 .path-mod-forum .indent {
59     margin-left: 3%;
60 }
61 .path-mod-forum .forumheaderlist {width: 100%;border-width:1px;border-style:solid;border-collapse:separate;margin-top: 10px;}
62 .path-mod-forum .forumheaderlist td {border-width:1px 0px 0px 1px;border-style:solid;}
63 .path-mod-forum .forumheaderlist th.header.replies .iconsmall { margin: 0 .3em;}
64 .path-mod-forum .forumheaderlist .picture {width: 35px;}
65 .path-mod-forum .forumheaderlist .discussion .starter {vertical-align: middle;}
66 .path-mod-forum .forumheaderlist .discussion .lastpost {white-space: nowrap;text-align: right;}
67 .path-mod-forum .forumheaderlist .replies,
68 .path-mod-forum .forumheaderlist .discussion .author {white-space: nowrap;}
70 /** Styles for subscribers.php */
71 #page-mod-forum-subscribers .subscriberdiv,
72 #page-mod-forum-subscribers .subscribertable {width:100%;vertical-align:top;}
73 #page-mod-forum-subscribers .subscribertable tr td {vertical-align:top;}
74 #page-mod-forum-subscribers .subscribertable tr td.actions {width:16%;padding-top:3em;}
75 #page-mod-forum-subscribers .subscribertable tr td.actions .actionbutton {margin:0.3em 0;padding:0.5em 0;width:100%;}
76 #page-mod-forum-subscribers .subscribertable tr td.existing,
77 #page-mod-forum-subscribers .subscribertable tr td.potential {width:42%;}
79 /** Styles for discuss.php **/
80 #page-mod-forum-discuss .discussioncontrols {width:100%;margin:5px;}
81 #page-mod-forum-discuss .discussioncontrols .discussioncontrol {width:33%;float:left;}
82 #page-mod-forum-discuss .discussioncontrol.exporttoportfolio {text-align:left;}
83 #page-mod-forum-discuss .discussioncontrol.displaymode {text-align:center;}
84 #page-mod-forum-discuss .discussioncontrol.movediscussion {float:right;width:auto;text-align:right;padding-right:10px;}
85 #page-mod-forum-discuss .discussioncontrol.movediscussion .movediscussionoption {}
87 /** Styles for view.php **/
88 #page-mod-forum-view .forumaddnew {margin-bottom: 20px;}
89 #page-mod-forum-view .groupmenu {float: left;text-align:left;white-space: nowrap;}
90 #page-mod-forum-index .subscription,
91 #page-mod-forum-view .subscription {float: right;text-align:right;white-space: nowrap;margin: 5px 0;}
93 /** Styles for search.php */
94 #page-mod-forum-search .introcontent {padding: 15px;font-weight:bold;}
96 #page-mod-forum-index .unread a:first-child,
97 #page-mod-forum-view .unread a:first-child {padding-right: 10px;}
98 #page-mod-forum-index .unread img,
99 #page-mod-forum-view .unread img {margin-left: 5px;}
100 #page-mod-forum-view .unread img {margin-left: 5px;}
101 .dir-rtl#page-mod-forum-view .unread img {margin-right: 5px; margin-left: 0; }
103 /** Unknown Styles ??? */
104 #email .unsubscribelink {margin-top:20px;}
106 /* Forumpost unread
107 -------------------------*/
108 #page-mod-forum-view .unread,
109 .forumpost.unread .row.header,
110 .path-course-view .unread,
111 span.unread {
112     background-color: #FFD;
114 .forumpost.unread .row.header {
115     border-bottom: 1px solid #DDD;