moodle/theme/bootstrapbase/less/moodle/user.less

271 lines
5 KiB
Text

/* user.less */
.userprofile .fullprofilelink {
text-align: center;
margin: 10px;
}
.userprofile .description {
margin-bottom: 20px;
}
.userprofile .profile_tree {
.content-columns(2);
}
.userprofile .profile_tree section {
display: inline-block;
width: 100%;
}
.userprofile dl.list {
.dl-horizontal;
}
.user-box {
margin: 8px;
width: 115px;
height: 160px;
text-align: center;
float: left;
clear: none;
}
#page-user-profile .node_category, .path-user .node_category {
li {
list-style-type: square;
&.contentnode {
list-style-type: none;
}
}
}
#page-user-profile.dir-ltr .node_category .contentnode, .path-user.dir-ltr .node_category .contentnode {
margin-left: -25px;
}
#page-user-profile.dir-rtl .node_category .contentnode , .path-user.dir-rtl .node_category .contentnode {
margin-right: -25px;
}
.dir-rtl {
.userprofile .description {
margin-right:0;
}
.user-box {
float:right;
}
.userprofile dl.list dt {
float:right;
text-align: left;
padding-left: 10px;
}
.userprofile dl.list dd {
margin-left:0;
}
}
@media (max-width: 480px) {
.userprofile .profile_tree {
/** Display the profile on one column on phones. */
.content-columns(1);
}
}
.userlist .action-icon img {
vertical-align: middle;
}
.userlist #showall {
margin: 10px 0;
}
.userlist .buttons {
text-align: center;
}
.userlist .buttons label {
padding: 0 3px;
}
.userlist table#participants {
text-align: center;
}
.userlist table#participants td,
.userlist table#participants th {
vertical-align: middle;
text-align: left;
padding: 4px;
}
.userlist {
table.controls {
width: 100%;
tr {
vertical-align: top;
}
.right {
text-align: right;
}
.groupselector {
margin-bottom: 0;
margin-top: 0;
label {
display: block;
}
}
}
}
.userinfobox {
width: 100%;
border: 1px solid;
border-collapse: separate;
padding: 10px;
}
.userinfobox .left,
.userinfobox .side {
width: 100px;
vertical-align: top;
}
.userinfobox .userpicture {
width: 100px;
height: 100px;
}
.userinfobox .content {
vertical-align: top;
}
.userinfobox .links {
width: 100px;
padding: 5px;
vertical-align: bottom;
}
.userinfobox .links a {
display: block;
}
.userinfobox .list td {
padding: 3px;
}
.userinfobox .username {
padding-bottom: 20px;
font-weight: bold;
}
.userinfobox td.label {
text-align: right;
white-space: nowrap;
vertical-align: top;
font-weight: bold;
}
.groupinfobox {
.well
}
.groupinfobox .left {
padding: 10px;
width: 100px;
vertical-align: top;
}
.course-participation #showall {
text-align: center;
margin: 10px 0;
}
#user-policy .noticebox {
text-align: center;
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
width: 80%;
height: 250px;
}
#user-policy #policyframe {
width: 100%;
height: 100%;
}
.iplookup #map {
margin: auto;
}
.userselector select {
width: 100%;
}
.userselector div {
margin-top: 0.2em;
}
.userselector div label {
margin-right: 0.3em;
}
/* Next style does not work in all browsers but looks nicer when it does */
.userselector .userselector-infobelow {
font-size: 0.8em;
}
#userselector_options {
padding: 0.3em 0;
}
#userselector_options .collapsibleregioncaption {
font-weight: bold;
}
#userselector_options p {
margin: 0.2em 0;
text-align: left;
}
.dir-rtl #userselector_options p {
text-align: right;
}
/** user full profile */
#page-user-profile .messagebox {
text-align: center;
margin-left: auto;
margin-right: auto;
}
/** user course profile */
#page-course-view-weeks .messagebox {
text-align: center;
margin-left: auto;
margin-right: auto;
}
/** Overide for RTL layout **/
.dir-rtl .userlist table#participants td,
.dir-rtl .userlist table#participants th {
text-align: right;
}
.dir-rtl .userlist table#participants {
margin: 0 auto;
}
#page-my-index.dir-rtl .block h3 {
text-align: right;
}
.profileeditor {
> .singleselect {
margin: 0 0.5em 0 0;
}
> .singlebutton {
display: inline-block;
margin: 0 0 0 0.5em;
div, input {
margin: 0;
}
}
}
.dir-rtl .profileeditor {
> .singleselect {
margin: 0 0 0 0.5em;
}
> .singlebutton {
margin: 0 0.5em 0 0;
}
}
#groupeditform {
.groups,
.members {
width: 49%;
float: left;
text-align: left;
}
}
.dir-rtl #groupeditform {
.groups,
.members {
float: right;
text-align: right;
}
}
/** Preferences page */
.preferences-group {
ul {
list-style: none;
margin-left: 0;
margin-right: 0;
}
}
.dir-rtl {
.preferences-group {
float: right;
}
}