Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Button/style.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 36: Line 36:


.tpl-button-red:hover{
.tpl-button-red:hover{
background-color:#c33242; /* --color-red-light-3 */
background-color:#c33242; /* --color-red-light-3 from Citizen.css */
}
}


Line 65: Line 65:
@media screen and (max-width:768px){
@media screen and (max-width:768px){
.tpl-button{
.tpl-button{
width:100%;
width:75%;
}
}
.tpl-button-left,.tpl-button-center,.tpl-button-right{
display: flex;
justify-content: center;
}
}
}

Revision as of 00:10, 8 October 2023

/* Button.css */
.tpl-button {
    display: inline-block;
    padding: 4px 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
	line-height:1;
}

/* Choose where to align the button (left, right, center) */
.tpl-button-left{
	display: flex;
	justify-content: flex-start;
}

.tpl-button-center{
	display: flex;
	justify-content: center;
}

.tpl-button-right{
	display: flex;
	justify-content: flex-end;
}

.tpl-button > p > a{ /* unstyle link */
	text-decoration:none;
}

/*available colors*/
.tpl-button-red {
    background-color:#b50014; /* taken from Citizen.css : --color-red-3*/
}

.tpl-button-red:hover{
	background-color:#c33242; /* --color-red-light-3 from Citizen.css */
}

.tpl-button-red > p > a,.tpl-button-blue > p > a{
	color:#fff;
}

.tpl-button-green > p > a,.tpl-button-yellow > p > a{
	color:#333;
}

.tpl-button-blue {
    background-color: #143fbf;
}

.tpl-button-green {
    background-color: #52CF44;
}

.tpl-button-yellow {
    background-color: #FFDA1F;
}

.tpl-button:hover{ /*colors other than red, which we use for Citizen, are automatically recalculated on a filter value*/
	filter:brightness(110%) saturate(100%);
}

@media screen and (max-width:768px){
	.tpl-button{
		width:75%;
	}
	.tpl-button-left,.tpl-button-center,.tpl-button-right{
		display: flex;
		justify-content: center;
	}

}