forked from open-lms-open-source/moodle-theme_snap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_userprofile.scss
More file actions
190 lines (175 loc) · 4.78 KB
/
_userprofile.scss
File metadata and controls
190 lines (175 loc) · 4.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Moodle user profile page.
*
* @package theme_snap
* @copyright Copyright (c) 2017 Open LMS (https://www.openlms.net)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
#page-user-profile,
.path-course.path-user {
// Full screen width for profile pages.
#region-main {
max-width: 100%;
padding: 1em 4%;
.snap-page-heading-button {
display: flex;
flex-direction: column;
align-items: flex-end;
.singlebutton {
margin-bottom: 20px;
}
}
}
// User image and name.
.page-context-header {
text-align: center;
display: block;
flex-direction: column;
.page-header-image,
.page-header-headings,
.header-button-group {
display: block;
padding: 0;
float: none;
@include clearfix;
}
.page-header-headings {
padding-bottom: 0.5em;
}
.header-button-group {
display: inline-block;
.btn {
border-color: transparent;
border-radius: 0.25rem;
}
}
}
// Hide button text on small screens.
@include media-breakpoint-down(xs) {
.header-button-title {
display: none;
}
}
// Float edit blocks and reset buttons.
.singlebutton {
float: right;
}
.userprofile {
clear: both;
// Profile text.
.description {
max-width: 43.5em;
margin: 0 auto;
}
// Profile option lists.
.profile_tree {
// Reset core col counts.
column-count: 1; // IE doesn't support initial (March 2017).
@include make-row();
// Make colums for sections.
@include media-breakpoint-up(sm) {
.node_category {
@include make-col(3);
border: none;
}
.node_category:nth-of-type(5) {
clear: left;
}
}
// Small screen colums to full width.
@include media-breakpoint-down(sm) {
.node_category {
@include make-col(12);
border: none;
}
}
.node_category {
// Titles.
h3 {
@extend h5;
}
// Edit profile link.
.editprofile {
text-align: left;
}
}
// Datalists.
.node_category li.contentnode dl dd {
margin: 0;
}
}
}
}
// Pull up the course user profile when there is a cover image.
.path-course.path-user.pagelayout-standard {
// If course image, pull the user image up.
#page-header.mast-image {
margin-bottom: -3.75em;
}
}
// SHAME - Course partisipants page user profiles list.
.path-course.path-user {
.userinfobox {
border: none;
border-bottom: 1px solid $gray-lighter;
padding: 0;
margin-bottom: 0.5em;
@include make-row();
}
.left.side {
@include make-col(2);
.userpicture {
max-width: 75%;
height: auto;
}
}
.content {
@include make-col(10);
.username {
padding: 0;
}
.info {
font-size: small;
}
}
.links {
clear: both;
@include make-col(12);
br {
display: none;
}
a {
float: right;
display: inline-block;
margin-right: 0.5em;
}
}
}
#page-user-profile .label-info {
color: white;
}
// Hide the Customize this page button because we already have the edition toggle here.
#page-user-profile .snap-page-heading-button .singlebutton:nth-of-type(2) {
display: none;
}
body#page-course-view-participants {
.page-context-header {
text-align: left;
display: flex;
flex-direction: row;
}
}