| 11 |
efrain |
1 |
/*
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* format_buttons_renderer
|
|
|
19 |
*
|
|
|
20 |
* @package format_buttons
|
|
|
21 |
* @author Rodrigo Brandão <https://www.linkedin.com/in/brandaorodrigo>
|
|
|
22 |
* @copyright 2020 Rodrigo Brandão <rodrigo.brandao.contato@gmail.com>
|
|
|
23 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
24 |
*/
|
|
|
25 |
.course-content ul.buttons {
|
|
|
26 |
margin: 0;
|
|
|
27 |
list-style: none;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
.course-content ul.buttons li.section .content {
|
|
|
31 |
margin: 0 40px;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
.course-content ul.buttons li.section .left,
|
|
|
35 |
.course-content ul.buttons li.section .right {
|
|
|
36 |
width: 40px;
|
|
|
37 |
padding: 0 6px;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
.course-content ul.buttons li.section .left {
|
|
|
41 |
padding-top: 22px;
|
|
|
42 |
text-align: right;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
.jsenabled .course-content ul.buttons li.section .left,
|
|
|
46 |
.jsenabled .course-content ul.buttons li.section .right {
|
|
|
47 |
width: auto;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
.course-content ul.buttons li.section .left .section-handle img.icon {
|
|
|
51 |
padding: 0;
|
|
|
52 |
vertical-align: baseline;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
.course-content ul.buttons li.section .section_action_menu .textmenu,
|
|
|
56 |
.course-content ul.buttons li.section .section_action_menu .menu-action-text {
|
|
|
57 |
white-space: nowrap;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
.course-content ul.buttons li.section.main:not(#section-0) {
|
|
|
61 |
background: none;
|
|
|
62 |
list-style: none;
|
|
|
63 |
display: none;
|
|
|
64 |
border: 0 !important;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
#buttonsectioncontainer {
|
|
|
68 |
display: none;
|
|
|
69 |
margin: 20px auto;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
#buttonsectioncontainer .buttonsection {
|
|
|
73 |
background: #dee3e8;
|
|
|
74 |
color: #7a8188;
|
|
|
75 |
display: inline-block;
|
|
|
76 |
text-align: center;
|
|
|
77 |
width: 48px;
|
|
|
78 |
line-height: 48px;
|
|
|
79 |
height: 48px;
|
|
|
80 |
overflow: hidden;
|
|
|
81 |
cursor: pointer;
|
|
|
82 |
font-size: 18px;
|
|
|
83 |
padding: 0;
|
|
|
84 |
font-weight: 700;
|
|
|
85 |
margin: 0 5px 10px 5px;
|
|
|
86 |
vertical-align: top;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
#buttonsectioncontainer.circle .buttonsection {
|
|
|
90 |
border-radius: 100%;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
#buttonsectioncontainer .buttonsection:hover {
|
|
|
94 |
background: #bac1c5;
|
|
|
95 |
color: #fff;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
#buttonsectioncontainer .buttonsection.sectionhidden {
|
|
|
99 |
width: 53px;
|
|
|
100 |
height: 53px;
|
|
|
101 |
line-height: 50px;
|
|
|
102 |
border: 2px solid;
|
|
|
103 |
background: none;
|
|
|
104 |
cursor: default;
|
|
|
105 |
color: #b7bdc3;
|
|
|
106 |
border-color: #d3d9df;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
#buttonsectioncontainer .divisorsection {
|
|
|
110 |
display: inline-block;
|
|
|
111 |
padding: 0;
|
|
|
112 |
overflow-y: hidden;
|
|
|
113 |
height: 52px;
|
|
|
114 |
margin: 0 4px 10px 25px;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
#buttonsectioncontainer .divisortext {
|
|
|
118 |
display: table-cell;
|
|
|
119 |
vertical-align: middle;
|
|
|
120 |
padding: 0;
|
|
|
121 |
font-weight: 400;
|
|
|
122 |
font-size: 16px;
|
|
|
123 |
line-height: 18px;
|
|
|
124 |
overflow-y: hidden;
|
|
|
125 |
height: 52px;
|
|
|
126 |
text-align: right;
|
|
|
127 |
color: rgba(0, 0, 0, 0.6);
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
/* colors */
|
|
|
131 |
#buttonsectioncontainer .buttonsection.current {
|
|
|
132 |
background: #115898;
|
|
|
133 |
color: #fff;
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
#buttonsectioncontainer .buttonsection.sectionvisible {
|
|
|
137 |
background: #1177d1;
|
|
|
138 |
color: #fff;
|
|
|
139 |
border-color: #1177d1;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
#buttonsectioncontainer .divisorsection.inlinebuttonsections {
|
|
|
143 |
display: inline;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
#buttonsectioncontainer .divisorsection.inlinebuttonsections::before {
|
|
|
147 |
content: "\A";
|
|
|
148 |
white-space: pre;
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
/* editing */
|
|
|
152 |
.editing .course-content ul.buttons li.section.main:not(#section-0) {
|
|
|
153 |
display: block;
|
|
|
154 |
border-bottom: 1px dotted #dee2e6 !important;
|
|
|
155 |
}
|