Template:MomoTalk/style.css: Difference between revisions

m
Shadow and color fixes for MomoTalk bond story option in dark mode
m (fix response option)
m (Shadow and color fixes for MomoTalk bond story option in dark mode)
 
(20 intermediate revisions by 2 users not shown)
Line 5:
.momotalk-container {
width: 100%;
border-radius:5px10px;
overflow:hidden;
box-shadow: 1px 1px0 2px 4px lightgrey;
margin-bottom: 5px15px;
max-width: 90%720px;
}
.momotalk-top {
Line 18 ⟶ 20:
color:#fff;
font-size:32px;
padding-left: 10px;
vertical-align: middle;
font-weight: bold;
Line 27 ⟶ 29:
.momotalk-close {
float: right;
font-size: 35px32px;
color: white;
font-weight: bold;
margin-right: 8px12px;
paddingmargin-lefttop: 10px;
line-height: 1;
}
.momotalk-close:hover {
Line 37 ⟶ 41:
table.momotalk-table {
width:100%;
border-spacing:5px;
margin-top:-2px;
margin-bottom: 5px3px;
}
.momotalk-profile-picture {
/* profile picture */
display: block;
width: 50px58px;
height: 50px58px;
border-radius: 50%;
overflow: hidden;
margin-top: 10px8px;
padding: 0;
margin-left: 3px;
}
table.momotalk-table td:nth-child(2) {
width: 100%;
box-sizing: border-box;
padding-left: 5px;
}
.momotalk-student-line-container {
float: left;
}
padding-left: 10px;
.momotalk-sensei-line-container {
float: right;
}
.momotalk-student-line-container, .momotalk-sensei-line-container {
max-width: 90%;
}
.momotalk-student-name {
font-size: 20px;
font-weight: bold;
line-height: 1.3;
padding-top: 3px;
}
.momotalk-student-line {
Line 64 ⟶ 80:
}
.momotalk-sensei-line {
float: right;
background: #4a8ac6;
margin-right: 3px;
}
.momotalk-dialogstudent-textline, .momotalk-sensei-line {
border-radius: 7px;
padding: 6px 8px 6px 8px;
color: white;
font-size: 15px;
font-weight: 500;
width: fit-content;
max-width: 90%;
margin-bottom: 5px;
}
 
.momotalk-responsereply-container, .momotalk-relationship-story-container {
float: right;
width: 100%;
max-width: 800px;
box-sizing: border-box;
background: #E2EDF1;
border: 1px solid #cdd3dc;
border-radius: 10px;
padding: 10px 10px 3px 10px;
margin-right: 3px;
margin-bottom: 5px;
}
.momotalk-responsereply-headercontainer {
border-leftbackground: 2px #3493f9 solidE2EDF1;
}
.momotalk-relationship-story-container {
background: #E2EDF1ffedf1;
}
 
.momotalk-reply-header, .momotalk-relationship-story-header {
border-left: 2px solid;
padding-left: 5px;
}
.momotalk-responsereply-optionheader {
backgroundborder-color: #fff3493f9;
}
.momotalk-relationship-story-header {
border-color: rgb(252,150,171);
}
 
.momotalk-reply-option, .momotalk-relationship-story-option {
border: none;
color: #2a323e;
margin-bottom: 5px;
margin-top: 5px;
Line 108 ⟶ 130:
display: inline-block;
border-radius: 10px;
box-shadow: 0 2px 5px greylightgrey;
transition: background-color ease-in-out .3s;
}
.momotalk-responsereply-option:hover {
background-color: lightgrey#fff;
color: #2a323e;
}
.momotalk-relationship-story-option {
background-color: #fc96ab;
color: #fff;
}
 
.momotalk-reply-option:hover, .momotalk-relationship-story-option:hover {
cursor: pointer;
transition: background-color ease-in-out .3s;
}
.momotalk-reply-option:hover {
background-color: lightgrey;
color: #2a323e;
}
.momotalk-relationship-story-option:hover {
background-color: #e08799;
}
 
.momotalk-hidden-student-text {
display: none;
}
div.momotalk-selected-option {
background-color: #4a8ac6;
color: #fff;
}
div.momotalk-selected-option:hover {
background-color: #4a8ac6;
color: #fff;
}
 
.momotalk-image img {
width: 100%;
height: auto;
max-width: 400px;
}
 
/*
Dark mode adjustments. Resets the invert and hue-rotate filters for certain UI
elements in the MomoTalk panel. This will almost definitely need adjustment
if/when a custom dark mode will be implemented for the wiki.
*/
html.client-darkmode:not(.mw-invert) .momotalk-container .momotalk-relationship-story-option {
box-shadow: 0 2px 5px #2c2c2c;
color: #000;
}
6

edits