cryptpad/www/profile/app-profile.less

182 lines
4.5 KiB
Text
Raw Normal View History

@import (reference) '../../customize/src/less2/include/framework.less';
@import (reference) '../../customize/src/less2/include/sidebar-layout.less';
2017-10-31 09:27:41 +00:00
&.cp-app-profile {
2018-07-14 13:15:23 +00:00
.framework_min_main(
@bg-color: @colortheme_profile-bg,
@warn-color: @colortheme_profile-warn,
@color: @colortheme_profile-color
);
.sidebar-layout_main();
2017-10-31 09:27:41 +00:00
display: flex;
flex-flow: column;
#cp-app-profile-header {
2017-10-31 09:27:41 +00:00
display: flex;
#cp-app-profile-rightside {
2017-10-31 09:27:41 +00:00
flex: 1;
display: flex;
flex-flow: column;
}
}
#cp-app-profile-avatar {
2017-10-31 09:27:41 +00:00
width: 300px;
//height: 350px;
margin: 10px;
margin-right: 20px;
text-align: center;
&> span {
display: inline-block;
text-align: center;
height: 300px;
width: 300px;
border: 1px solid black;
border-radius: 4px;
overflow: hidden;
position: relative;
.cp-app-profile-avatar-delete {
2017-10-31 09:27:41 +00:00
right: 0;
position: absolute;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
}
img {
max-width: 100%;
max-height: 100%;
vertical-align: top;
}
media-tag {
height: 100%;
width: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
img {
min-width: 100%;
min-height: 100%;
max-width: none;
max-height: none;
flex: 1;
}
}
button {
height: 40px;
margin: 5px;
}
}
.cp-app-profile-resizer {
text-align: center;
}
#cp-app-profile-displayname, #cp-app-profile-link {
2017-10-31 09:27:41 +00:00
width: 100%;
height: 40px;
margin: 10px 0;
input {
width: 100%;
font-size: 20px;
box-sizing: border-box;
padding-right: 30px;
}
input:focus ~ .edit {
display: none;
}
.cp-app-profile-input-edit {
2017-10-31 09:27:41 +00:00
position: absolute;
margin-left: -25px;
margin-top: 8px;
}
.cp-app-profile-input-temp {
2017-10-31 09:27:41 +00:00
font-weight: 400;
font-family: sans-serif;
}
2017-10-31 10:30:13 +00:00
.cp-app-profile-displayname {
2017-10-31 09:27:41 +00:00
font-weight: bold;
font-size: 30px;
}
2017-10-31 10:30:13 +00:00
.cp-app-profile-link {
2017-10-31 09:27:41 +00:00
font-size: 25px;
vertical-align: middle;
2017-10-31 09:27:41 +00:00
}
2017-10-31 10:30:13 +00:00
.cp-app-profile-displayname, .cp-app-profile-link {
2017-10-31 09:27:41 +00:00
line-height: 40px;
}
.cp-app-profile-link-code {
display: none;
}
& > button:empty {
margin-left: 25px;
}
}
.cp-app-profile-friend-request {
flex: 0;
width: 400px;
margin-top: 10px;
2017-10-31 09:27:41 +00:00
}
// I tried using flexbox but messed with how the pencil icon was displayed
#cp-app-profile-invite-button {
2017-10-31 09:27:41 +00:00
float: right;
}
#cp-app-profile-viewprofile-button {
2017-10-31 09:27:41 +00:00
margin-bottom: 20px;
float: right;
}
#cp-app-profile-description {
2017-10-31 09:27:41 +00:00
position: relative;
font-size: 16px;
margin-bottom: 20px;
.cp-app-profile-description-code {
display: none;
}
.cp-app-profile-description-rendered {
border: 1px solid #DDD;
2017-10-31 09:27:41 +00:00
padding: 0 15px;
&:empty {
display: none;
}
2017-10-31 09:27:41 +00:00
}
.cp-app-profile-description-ok, .cp-app-profile-description-spin {
2017-10-31 09:27:41 +00:00
position: absolute;
2017-11-27 17:10:37 +00:00
bottom: 2px;
2017-10-31 09:27:41 +00:00
right: 2px;
display: none;
z-index: 1000;
}
textarea {
width: 100%;
height: 300px;
}
.CodeMirror {
font-family: monospace;
font-size: 16px;
line-height: initial;
pre {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
}
.cp-app-profile-description-edit {
& > button {
span {
margin-left: 10px;
}
}
}
2017-10-31 09:27:41 +00:00
}
#cp-app-profile-create {
2017-10-31 09:27:41 +00:00
height: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
}