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
CriticalResist (talk | contribs)
No edit summary
CriticalResist (talk | contribs)
No edit summary
 
(40 intermediate revisions by the same user not shown)
Line 2: Line 2:
.tpl-button {
.tpl-button {
     display: inline-block;
     display: inline-block;
     padding: 10px 20px;
    position:relative;
     text-align: center;
     padding: 4px 10px!important;
     text-decoration: none;
     width:100%;
     border-radius: 5px;
     height:40px!important;
     border-radius: 8px;
     font-weight: bold;
     font-weight: bold;
     cursor: pointer;
     cursor: pointer;
line-height:1!important;
text-decoration:none!important;
text-align:center!important;
}
}


.tpl-button > a{
.tpl-button p{
text-decoration:none;
  margin: 0!important;
  position: absolute!important;
  top: 50%!important;
  left: 50%!important;
  transform: translate(-50%, -50%)!important;
}
 
.tpl-button-center > a, .tpl-button-left > a, .tpl-button-right > a{
height:40px!important;
width:100%!important;
}
 
.tpl-button-center > a,.tpl-button-left > a,.tpl-button-right > a{
height:100%!important;
}
 
/* Choose where to align the button (left, right, center) */
.tpl-button-left{
display: flex!important;
justify-content: flex-start!important;
}
 
.tpl-button-center{
display: flex!important;
justify-content: center!important;
}
 
.tpl-button-right{
display: flex!important;
justify-content: flex-end!important;
}
}


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


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


.tpl-button-blue {
.tpl-button-blue {
     background-color: #0000ff;
     background-color: #143fbf!important;
     color: #ffffff;
     color:#fff!important;
}
}


.tpl-button-green {
.tpl-button-green {
     background-color: #00ff00;
     background-color: #52CF44!important;
     color: #000000;
     color:#333!important;
}
}


.tpl-button-yellow {
.tpl-button-yellow {
     background-color: #ffff00;
     background-color: #FFDA1F!important;
     color: #000000;
     color:#333!important;
}
 
.tpl-button:hover{ /*colors other than red, which we use for Citizen, are automatically recalculated on a filter value*/
filter:brightness(110%) saturate(100%)!important;
}
 
@media screen and (max-width:768px){
.tpl-button{
width:75%!important;
}
.tpl-button-left,.tpl-button-center,.tpl-button-right{
display: flex!important;
justify-content: center!important;
}
 
}
}

Latest revision as of 10:39, 20 April 2025

/* Button.css */
.tpl-button {
    display: inline-block;
    position:relative;
    padding: 4px 10px!important;
    width:100%;
    height:40px!important;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
	line-height:1!important;
	text-decoration:none!important;
	text-align:center!important;
}

.tpl-button p{
  margin: 0!important;
  position: absolute!important;
  top: 50%!important;
  left: 50%!important;
  transform: translate(-50%, -50%)!important;
}

.tpl-button-center > a, .tpl-button-left > a, .tpl-button-right > a{
	height:40px!important;
	width:100%!important;
}

.tpl-button-center > a,.tpl-button-left > a,.tpl-button-right > a{
	height:100%!important;
}

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

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

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

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

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

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

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

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

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

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

}