Basculer le menu
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:Bouton/style.css » : différence entre les versions

De ProleWiki
CriticalResist (discussion | contributions)
CriticalResist a modifié le modèle de contenu de la page Modèle:Bouton/style.css de « wikicode » en « CSS nettoyé »
CriticalResist (discussion | contributions)
Aucun résumé des modifications
 
Ligne 32 : Ligne 32 :


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


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


.tpl-button-right{
.tpl-button-droite{
display: flex!important;
display: flex!important;
justify-content: flex-end!important;
justify-content: flex-end!important;
Ligne 48 : Ligne 48 :


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


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


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


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


.tpl-button-yellow {
.tpl-button-jaune {
     background-color: #FFDA1F!important;
     background-color: #FFDA1F!important;
     color:#333!important;
     color:#333!important;
Ligne 80 : Ligne 80 :
width:75%!important;
width:75%!important;
}
}
.tpl-button-left,.tpl-button-center,.tpl-button-right{
.tpl-button-gauche,.tpl-button-centre,.tpl-button-droite{
display: flex!important;
display: flex!important;
justify-content: center!important;
justify-content: center!important;

Dernière version du 15 novembre 2025 à 20:42

/* 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-gauche{
	display: flex!important;
	justify-content: flex-start!important;
}

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

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

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

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

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

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

.tpl-button-jaune {
    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-gauche,.tpl-button-centre,.tpl-button-droite{
		display: flex!important;
		justify-content: center!important;
	}

}