Template:MomoTalk/style.css: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
m (Shadow and color fixes for MomoTalk bond story option in dark mode)
 
(10 intermediate revisions by 2 users not shown)
Line 5: Line 5:
.momotalk-container {
.momotalk-container {
width: 100%;
width: 100%;
border-radius:5px;
border-radius:10px;
overflow:hidden;
overflow:hidden;
box-shadow: 0 2px 4px lightgrey;
box-shadow: 0 2px 4px lightgrey;
margin-bottom: 15px;
margin-bottom: 15px;
max-width: 720px;
}
}
.momotalk-top {
.momotalk-top {
Line 28: Line 29:
.momotalk-close {
.momotalk-close {
float: right;
float: right;
font-size: 35px;
font-size: 32px;
color: white;
color: white;
font-weight: bold;
font-weight: bold;
margin-right: 8px;
margin-right: 12px;
margin-top: 10px;
line-height: 1;
}
}
.momotalk-close:hover {
.momotalk-close:hover {
Line 38: Line 41:
table.momotalk-table {
table.momotalk-table {
width:100%;
width:100%;
border-spacing:5px;
margin-top:-2px;
margin-bottom: 3px;
}
}
.momotalk-profile-picture {
.momotalk-profile-picture {
display: block;
display: block;
width: 50px;
width: 58px;
height: 50px;
height: 58px;
border-radius: 50%;
border-radius: 50%;
overflow: hidden;
overflow: hidden;
margin-top: 10px;
margin-top: 8px;
padding: 0;
padding: 0;
margin-left: 3px;
margin-left: 3px;
}
}
table.momotalk-table td:nth-child(2) {
table.momotalk-table td:nth-child(2) {
width:100%;
width: 100%;
padding-left:5px;
box-sizing: border-box;
padding-left: 5px;
}
}
.momotalk-student-line-container {
.momotalk-student-line-container {
Line 65: Line 72:
font-size: 20px;
font-size: 20px;
font-weight: bold;
font-weight: bold;
line-height: 1.3;
padding-top: 3px;
}
}
.momotalk-student-line {
.momotalk-student-line {
Line 80: Line 89:
font-size: 15px;
font-size: 15px;
font-weight: 500;
font-weight: 500;
margin-bottom: 5px;
}
}


Line 92: Line 100:
padding: 10px 10px 3px 10px;
padding: 10px 10px 3px 10px;
margin-right: 3px;
margin-right: 3px;
margin-bottom: 5px;
}
}
.momotalk-reply-container {
.momotalk-reply-container {
Line 141: Line 148:
.momotalk-reply-option:hover {
.momotalk-reply-option:hover {
background-color: lightgrey;
background-color: lightgrey;
color: #2a323e;
}
}
.momotalk-relationship-story-option:hover {
.momotalk-relationship-story-option:hover {
background-color: #e08799;
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;
}
}


Line 150: Line 170:
height: auto;
height: auto;
max-width: 400px;
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;
}
}

Latest revision as of 22:31, 17 May 2024

/* 
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:10px;
    overflow:hidden;
    box-shadow: 0 2px 4px lightgrey;
    margin-bottom: 15px;
    max-width: 720px;
}
.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: 32px;
    color: white;
    font-weight: bold;
    margin-right: 12px;
    margin-top: 10px;
    line-height: 1;
}
.momotalk-close:hover {
    cursor: pointer;
}
table.momotalk-table {
    width:100%;
    border-spacing:5px;
    margin-top:-2px;
    margin-bottom: 3px;
}
.momotalk-profile-picture {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 8px;
    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;
}
.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 {
    background: #4b5a6f;
    color:white;
}
.momotalk-sensei-line {
    background: #4a8ac6;
    margin-right: 3px;
}
.momotalk-student-line, .momotalk-sensei-line {
    border-radius: 7px;
    padding: 6px 8px 6px 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.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;
}
.momotalk-reply-container {
    background: #E2EDF1;
}
.momotalk-relationship-story-container {
	background: #ffedf1;
}

.momotalk-reply-header, .momotalk-relationship-story-header {
    border-left: 2px solid;
    padding-left: 5px;
}
.momotalk-reply-header {
    border-color: #3493f9;
}
.momotalk-relationship-story-header {
	border-color: rgb(252,150,171);
}

.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;
    transition: background-color ease-in-out .3s;
}
.momotalk-reply-option {
    background-color: #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;
}