Template:MomoTalk/style.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
PetraMagna (talk | contribs) m fix response option |
PetraMagna (talk | contribs) m fix css naming |
||
Line 79: | Line 79: | ||
} |
} |
||
.momotalk- |
.momotalk-reply-container, .momotalk-relationship-story-container { |
||
float: right; |
float: right; |
||
width: 100%; |
width: 100%; |
||
max-width: 800px; |
max-width: 800px; |
||
box-sizing: border-box; |
box-sizing: border-box; |
||
⚫ | |||
border: 1px solid #cdd3dc; |
border: 1px solid #cdd3dc; |
||
border-radius: 10px; |
border-radius: 10px; |
||
Line 91: | Line 90: | ||
margin-bottom: 5px; |
margin-bottom: 5px; |
||
} |
} |
||
⚫ | |||
.momotalk-reply-container { |
|||
⚫ | |||
⚫ | |||
} |
|||
.momotalk-reply-header, .momotalk-relationship-story-header { |
|||
⚫ | |||
padding-left: 5px; |
padding-left: 5px; |
||
} |
} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
.momotalk-reply-option, .momotalk-relationship-story-option { |
|||
border: none; |
border: none; |
||
⚫ | |||
margin-bottom: 5px; |
margin-bottom: 5px; |
||
margin-top: 5px; |
margin-top: 5px; |
||
Line 108: | Line 115: | ||
display: inline-block; |
display: inline-block; |
||
border-radius: 10px; |
border-radius: 10px; |
||
box-shadow: 0 2px 5px |
box-shadow: 0 2px 5px lightgrey; |
||
} |
|||
⚫ | |||
⚫ | |||
color: #2a323e; |
|||
} |
} |
||
.momotalk-response-option:hover { |
|||
.momotalk-reply-option:hover, .momotalk-relationship-story-option:hover { |
|||
background-color: lightgrey; |
background-color: lightgrey; |
||
cursor: pointer; |
cursor: pointer; |
Revision as of 03:33, 4 December 2023
/*
Reference examples: https://zh.moegirl.org.cn/Template:%E8%94%9A%E8%93%9D%E6%A1%A3%E6%A1%88Momotalk and https://github.com/U1805/momotalk
Due to license incompatibilities, the template in moegirl.org.cn cannot be directly imported.
*/
.momotalk-container {
width: 100%;
border-radius:5px;
overflow:hidden;
box-shadow: 1px 1px 2px lightgrey;
}
.momotalk-top {
width:100%;
height:50px;
background-color:#fc96ab;
}
.momotalk-logo-text {
display:inline-block;
color:#fff;
font-size:32px;
padding-left:10px;
vertical-align: middle;
font-weight: bold;
}
.momotalk-logo-text:hover {
cursor:default;
}
.momotalk-close {
float: right;
font-size: 35px;
color: white;
font-weight: bold;
margin-right: 8px;
}
.momotalk-close:hover {
cursor: pointer;
}
table.momotalk-table {
width:100%;
}
.momotalk-profile-picture {
/* profile picture */
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
margin-top: 10px;
padding: 0;
}
table.momotalk-table td:nth-child(2) {
width:100%;
}
.momotalk-student-line-container {
float: left;
padding-left: 10px;
}
.momotalk-student-name {
font-size: 20px;
font-weight: bold;
}
.momotalk-student-line {
background: #4b5a6f;
color:white;
}
.momotalk-sensei-line {
float: right;
background: #4a8ac6;
margin-right: 3px;
}
.momotalk-dialog-text {
border-radius: 7px;
padding: 6px;
color: white;
font-size: 15px;
font-weight: 500;
width: fit-content;
max-width: 90%;
margin-bottom: 5px;
}
.momotalk-reply-container, .momotalk-relationship-story-container {
float: right;
width: 100%;
max-width: 800px;
box-sizing: border-box;
border: 1px solid #cdd3dc;
border-radius: 10px;
padding: 10px 10px 3px 10px;
margin-right: 3px;
margin-bottom: 5px;
}
.momotalk-reply-container {
background: #E2EDF1;
}
.momotalk-reply-header, .momotalk-relationship-story-header {
border-left: 2px solid;
padding-left: 5px;
}
.momotalk-reply-header {
border-color: #3493f9;
}
.momotalk-reply-option, .momotalk-relationship-story-option {
border: none;
margin-bottom: 5px;
margin-top: 5px;
padding: 5px;
box-sizing: border-box;
width: 100%;
text-align: center;
text-decoration: none;
display: inline-block;
border-radius: 10px;
box-shadow: 0 2px 5px lightgrey;
}
.momotalk-reply-option {
background-color: #fff;
color: #2a323e;
}
.momotalk-reply-option:hover, .momotalk-relationship-story-option:hover {
background-color: lightgrey;
cursor: pointer;
transition: background-color ease-in-out .3s;
}