cryptpad/www/profile/main.less

144 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-07-12 16:34:16 +00:00
@import '/customize/src/less/variables.less';
@import '/customize/src/less/mixins.less';
@import '/customize/src/less/sidebar-layout.less';
2017-06-27 16:58:20 +00:00
.cp {
#header {
display: flex;
#rightside {
flex: 1;
display: flex;
flex-flow: column;
}
}
#avatar {
width: 300px;
//height: 350px;
margin: 10px;
2017-06-28 14:59:35 +00:00
margin-right: 20px;
2017-06-27 16:58:20 +00:00
text-align: center;
2017-06-28 08:59:29 +00:00
&> span {
2017-06-27 16:58:20 +00:00
display: inline-block;
text-align: center;
height: 300px;
2017-06-28 14:59:35 +00:00
width: 300px;
2017-06-27 16:58:20 +00:00
border: 1px solid black;
2017-07-17 11:43:51 +00:00
border-radius: 4px;
2017-06-27 16:58:20 +00:00
overflow: hidden;
2017-06-28 14:59:35 +00:00
position: relative;
.delete {
right: 0;
position: absolute;
opacity: 0.7;
&:hover {
opacity: 1;
}
}
2017-06-27 16:58:20 +00:00
}
img {
2017-06-28 14:59:35 +00:00
max-width: 100%;
max-height: 100%;
vertical-align: top;
2017-06-27 16:58:20 +00:00
}
media-tag {
height: 100%;
2017-06-28 14:59:35 +00:00
width: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
2017-06-27 16:58:20 +00:00
img {
2017-06-28 14:59:35 +00:00
min-width: 100%;
min-height: 100%;
max-width: none;
max-height: none;
2017-07-06 16:00:03 +00:00
flex: 1;
2017-06-27 16:58:20 +00:00
}
}
button {
height: 40px;
margin: 5px;
}
}
#displayName, #link {
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;
}
.edit {
position: absolute;
margin-left: -25px;
margin-top: 8px;
}
.temp {
font-weight: 400;
font-family: sans-serif;
}
.displayName {
font-weight: bold;
font-size: 30px;
}
2017-07-12 16:34:16 +00:00
.link {
font-size: 25px;
}
2017-06-27 16:58:20 +00:00
.displayName, .link {
line-height: 40px;
}
}
// I tried using flexbox but messed with how the pencil icon was displayed
#inviteButton {
float: right;
}
#viewProfileButton {
margin-bottom: 20px;
float: right;
}
2017-06-27 16:58:20 +00:00
#description {
position: relative;
font-size: 16px;
border: 1px solid #DDD;
2017-06-28 14:59:35 +00:00
margin-bottom: 20px;
2017-06-27 16:58:20 +00:00
.rendered {
padding: 0 15px;
}
.ok, .spin {
position: absolute;
top: 2px;
right: 2px;
display: none;
z-index: 1000;
}
textarea {
width: 100%;
height: 300px;
}
.CodeMirror {
border: 1px solid #DDD;
font-family: monospace;
font-size: 16px;
line-height: initial;
pre {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
}
}
#createProfile {
height: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
2017-06-27 16:58:20 +00:00
}