Projet

Général

Profil

0001-add-styles-for-horizontal-button-links-58153.patch

Frédéric Péters, 28 janvier 2022 13:51

Télécharger (1,59 ko)

Voir les différences:

Subject: [PATCH] add styles for horizontal button links (#58153)

 gadjo/static/css/_forms.scss  |  1 +
 gadjo/static/css/_portal.scss | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
gadjo/static/css/_forms.scss
92 92
	border-radius: 3px;
93 93
	font-weight: bold;
94 94
	background: white;
95
	text-align: center;
95 96
	border: 1px solid $button-color;
96 97
	color: $button-color;
97 98
	&[aria-pressed=true], &:hover {
gadjo/static/css/_portal.scss
83 83
		border-bottom-color: transparent;
84 84
	}
85 85
}
86

  
87
.link-list-cell.pk-horizontal-button-links,
88
.link-list-cell.pk-wide-horizontal-button-links {
89
	ul {
90
		display: flex;
91
		@media screen and (max-width: $mobile-limit) {
92
			flex-direction: column;
93
		}
94
	}
95
	li {
96
		&:not(:last-child) {
97
			margin-right: 1em;
98
		}
99
		border: none;
100
		&:hover {
101
			background: transparent;
102
		}
103
		@media screen and (max-width: $mobile-limit) {
104
			&:not(:last-child) {
105
				margin-right: 0;
106
			}
107
			margin-bottom: 0.5em;
108
		}
109
	}
110
	&.pk-wide-horizontal-button-links {
111
		li {
112
			flex: 1;
113
		}
114
	}
115
	a {
116
		@extend %button;
117
	}
118
}
86
-