Jump to content

Template:Terminology/styles.css: Difference between revisions

From Mathepedia, the mathematical encyclopedia
No edit summary
No edit summary
 
Line 14: Line 14:
overflow-x: auto;
overflow-x: auto;
border: 1px solid #c8ccd1;
border: 1px solid #c8ccd1;
border-radius: 3px;
background: #fff;
background: #fff;
}
}
Line 117: Line 116:
padding: 0.5rem 0.65rem;
padding: 0.5rem 0.65rem;
border: 0;
border: 0;
border-radius: 0;
background: transparent;
background: transparent;
color: #36c;
color: #36c;
Line 168: Line 166:
overflow: hidden;
overflow: hidden;
border: 1px solid #c8ccd1;
border: 1px solid #c8ccd1;
border-radius: 3px;
}
}


Line 223: Line 220:
}
}


.terminology-submit-form,
.terminology-form-term {
.terminology-submit-form form,
display: none;
.terminology-submit-form p {
margin: 0;
}
}


.terminology-submit-form form {
.terminology-form-controls {
display: flex;
display: flex;
align-items: center;
align-items: center;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 0.5rem;
}
}


.terminology-submit-form input[type="text"] {
.terminology-language-select,
.terminology-other-language,
.terminology-translation-input {
box-sizing: border-box;
box-sizing: border-box;
width: 24rem;
max-width: 100%;
max-width: 100%;
height: 32px;
height: 32px;
padding: 0.35rem 0.55rem;
padding: 0.35rem 0.55rem;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
border-radius: 2px;
background: #fff;
background: #fff;
color: #202122;
color: #202122;
Line 248: Line 244:
}
}


.terminology-submit-form input[type="text"]:focus {
.terminology-language-select {
width: 13rem;
}
 
.terminology-other-language {
width: 13rem;
}
 
.terminology-translation-input {
flex: 1 1 18rem;
min-width: 14rem;
}
 
.terminology-language-select:focus,
.terminology-other-language:focus,
.terminology-translation-input:focus {
border-color: #36c;
border-color: #36c;
outline: 1px solid #36c;
outline: 1px solid #36c;
}
}


.terminology-submit-form input[type="submit"],
.terminology-form-controls [hidden] {
.terminology-submit-form button[type="submit"] {
display: none !important;
}
 
.terminology-translation-submit {
box-sizing: border-box;
box-sizing: border-box;
height: 32px;
height: 32px;
margin-left: 0.5rem;
padding: 0.35rem 0.8rem;
padding: 0.35rem 0.8rem;
border: 1px solid #36c;
border: 1px solid #36c;
border-radius: 2px;
background: #36c;
background: #36c;
color: #fff;
color: #fff;
Line 268: Line 280:
}
}


.terminology-submit-form input[type="submit"]:hover,
.terminology-translation-submit:hover {
.terminology-submit-form button[type="submit"]:hover {
background: #2a4b8d;
background: #2a4b8d;
}
.terminology-translation-submit:disabled {
opacity: 0.65;
cursor: default;
}
.terminology-form-status {
min-height: 1.3em;
margin-top: 0.4rem;
}
.terminology-form-status--success {
color: #14866d;
}
.terminology-form-status--error {
color: #b32424;
}
}


Line 327: Line 356:
content: "";
content: "";
position: absolute;
position: absolute;
border-radius: 1px;
background: currentcolor;
background: currentcolor;
}
}
Line 355: Line 383:


@media (max-width: 600px) {
@media (max-width: 600px) {
.terminology-submit-form input[type="submit"],
.terminology-form-controls {
.terminology-submit-form button[type="submit"] {
align-items: stretch;
margin-top: 0.45rem;
flex-direction: column;
margin-left: 0;
}
 
.terminology-language-select,
.terminology-other-language,
.terminology-translation-input,
.terminology-translation-submit {
width: 100%;
min-width: 0;
}
}



Latest revision as of 02:18, 17 July 2026

/* Template:Terminology/styles.css */
.terminology {
	margin: 0.45em 0 0.8em;
	color: #202122;
	font-size: 0.875rem;
}

.terminology-intro {
	margin: 0 0 0.7em;
	line-height: 1.4;
}

.terminology-table {
	overflow-x: auto;
	border: 1px solid #c8ccd1;
	background: #fff;
}

.terminology-table-inner {
	min-width: 760px;
}

.terminology-header {
	display: grid;
	grid-template-columns: 19% 17% 19% 13% 17% 15%;
	min-height: 42px;
	font-weight: 700;
}

.terminology-header-cell {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.terminology-header-cell--more {
	justify-content: center;
	border-left: 1px solid #c8ccd1;
}

/* Each item is a real table so MediaWiki places its native toggle in the last cell. */
.terminology-row {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: 1px solid #c8ccd1;
	border-spacing: 0;
	border-collapse: collapse;
	table-layout: fixed;
	background: transparent;
}

.terminology-cell--english { width: 19%; }
.terminology-cell--french { width: 17%; }
.terminology-cell--german { width: 19%; }
.terminology-cell--japanese { width: 13%; }
.terminology-cell--chinese { width: 17%; }
.terminology-cell--more { width: 15%; }

.terminology-main-row {
	height: 42px;
}

.terminology-cell {
	box-sizing: border-box;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	vertical-align: middle;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.terminology-row[data-highlight="yes"] .terminology-main-row > .terminology-cell,
.terminology-row[data-highlight="yes"] .terminology-more-cell {
	background: #eaf3ff;
}

.terminology-cell--english {
	font-weight: 700;
}

.terminology-cell--more {
	padding: 0;
	border-left: 1px solid #c8ccd1;
}

.terminology-cell--more > .terminology-language-count {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 0.5rem 0.65rem;
	color: #36c;
	line-height: 1.3;
	white-space: nowrap;
}

.terminology-row.mw-collapsible .terminology-language-count {
	display: none;
}

.terminology-cell--more > .mw-collapsible-toggle {
	display: flex;
	float: none;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 0.5rem 0.65rem;
	border: 0;
	background: transparent;
	color: #36c;
	font: inherit;
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
}

.terminology-cell--more > .mw-collapsible-toggle:hover {
	background: #f8f9fa;
}

.terminology-cell--more > .mw-collapsible-toggle:focus {
	outline: 2px solid #36c;
	outline-offset: -2px;
}

.terminology-cell--more .mw-collapsible-text {
	color: inherit;
	text-decoration: none;
}

.terminology-cell--more > .mw-collapsible-toggle-default::before {
	content: none;
}

.terminology-cell--more > .mw-collapsible-toggle-default::after {
	content: "";
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 0.5rem;
	height: 0.5rem;
	margin-left: 0.55rem;
	border-right: 2px solid currentcolor;
	border-bottom: 2px solid currentcolor;
	transform: rotate(45deg) translate(-1px, -1px);
}

.terminology-cell--more > .mw-collapsible-toggle-expanded::after {
	transform: rotate(225deg) translate(-1px, -1px);
}

.terminology-more-cell {
	padding: 0.5rem 0.75rem 0.65rem;
	border-top: 0;
}

.terminology-extra-table {
	overflow: hidden;
	border: 1px solid #c8ccd1;
}

.terminology-extra-table > p {
	margin: 0;
}

.terminology-extra-row {
	display: grid;
	grid-template-columns: 18% 32% 18% 32%;
	min-height: 36px;
}

.terminology-extra-row + .terminology-extra-row {
	border-top: 1px solid #c8ccd1;
}

.terminology-extra-cell {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	padding: 0.38rem 0.7rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.terminology-extra-language {
	font-weight: 700;
}

.terminology-extra-language--second {
	border-left: 1px solid #c8ccd1;
}

.terminology-empty-state {
	box-sizing: border-box;
	padding: 0.8rem 1rem 0.9rem;
}

.terminology-empty-message {
	font-weight: 700;
}

.terminology-submit-title {
	margin-top: 0.7rem;
	font-weight: 700;
}

.terminology-submit-help {
	margin: 0.15rem 0 0.55rem;
	color: #54595d;
	font-size: 0.93em;
}

.terminology-form-term {
	display: none;
}

.terminology-form-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.terminology-language-select,
.terminology-other-language,
.terminology-translation-input {
	box-sizing: border-box;
	max-width: 100%;
	height: 32px;
	padding: 0.35rem 0.55rem;
	border: 1px solid #a2a9b1;
	background: #fff;
	color: #202122;
	font: inherit;
}

.terminology-language-select {
	width: 13rem;
}

.terminology-other-language {
	width: 13rem;
}

.terminology-translation-input {
	flex: 1 1 18rem;
	min-width: 14rem;
}

.terminology-language-select:focus,
.terminology-other-language:focus,
.terminology-translation-input:focus {
	border-color: #36c;
	outline: 1px solid #36c;
}

.terminology-form-controls [hidden] {
	display: none !important;
}

.terminology-translation-submit {
	box-sizing: border-box;
	height: 32px;
	padding: 0.35rem 0.8rem;
	border: 1px solid #36c;
	background: #36c;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.terminology-translation-submit:hover {
	background: #2a4b8d;
}

.terminology-translation-submit:disabled {
	opacity: 0.65;
	cursor: default;
}

.terminology-form-status {
	min-height: 1.3em;
	margin-top: 0.4rem;
}

.terminology-form-status--success {
	color: #14866d;
}

.terminology-form-status--error {
	color: #b32424;
}

.terminology-footer {
	display: flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0.3rem 0.75rem;
	border-top: 1px solid #c8ccd1;
	color: #36c;
	line-height: 1.3;
}

.terminology-footer-action {
	display: flex;
	align-items: center;
}

.terminology-footer-action p {
	display: flex;
	align-items: center;
	margin: 0;
}

.terminology-footer-action a {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 32px;
	padding: 0 0.2rem;
	color: #36c;
	text-decoration: none;
}

.terminology-footer-action a:hover {
	text-decoration: underline;
}

.terminology-footer .external {
	padding-right: 0;
	background-image: none;
}

.terminology-add-icon {
	position: relative;
	display: inline-block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-right: 0.5rem;
}

.terminology-add-icon::before,
.terminology-add-icon::after {
	content: "";
	position: absolute;
	background: currentcolor;
}

.terminology-add-icon::before {
	top: 7px;
	left: 1px;
	width: 14px;
	height: 2px;
}

.terminology-add-icon::after {
	top: 1px;
	left: 7px;
	width: 2px;
	height: 14px;
}

.terminology-footer-divider {
	display: block;
	flex: 0 0 1px;
	width: 1px;
	height: 24px;
	margin: 0 0.9rem;
	background: #a2a9b1;
}

@media (max-width: 600px) {
	.terminology-form-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.terminology-language-select,
	.terminology-other-language,
	.terminology-translation-input,
	.terminology-translation-submit {
		width: 100%;
		min-width: 0;
	}

	.terminology-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.55rem;
	}

	.terminology-footer-divider {
		display: none;
	}
}