Menü aufrufen
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Vorlage:Button/style.css: Unterschied zwischen den Versionen

Aus ProleWiki
(Die Seite wurde neu angelegt: „→‎Button.css: .tpl-button { display: inline-block; position:relative; padding: 4px 10px; width:100%; height:40px; border-radius: 8px; font-weight: bold; cursor: pointer; line-height:1; text-decoration:none; text-align:center; } .tpl-button p{ margin: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .tpl-button-center > a, .tpl-button-left > a, .tpl-button-r…“)
 
Keine Bearbeitungszusammenfassung
 
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Button.css */
/* Button.css */
.tpl-button {
.tpl-button {
     display: inline-block;
     display: inline-block;
     position:relative;
     position:relative;
     padding: 4px 10px;
     padding: 4px 10px;
     width:100%;
     width:100%;
     height:40px;
     height:40px;
     border-radius: 8px;
     border-radius: 8px;
     font-weight: bold;
     font-weight: bold;
     cursor: pointer;
     cursor: pointer;
line-height:1;
line-height:1;
text-decoration:none;
text-decoration:none;
text-align:center;
text-align:center;
}
}


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


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


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


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


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


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


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


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


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


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


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


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


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


}
}

Aktuelle Version vom 13. November 2024, 09:31 Uhr

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

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

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

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

/* 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;
}

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

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

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

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

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

.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%!important;
	}
	.tpl-button-left,.tpl-button-center,.tpl-button-right{
		display: flex;
		justify-content: center;
	}

}