Projet

Général

Profil

0001-style-add-support-for-no-bottom-margin-cell-class-28.patch

Frédéric Péters, 07 décembre 2018 10:42

Télécharger (1,51 ko)

Voir les différences:

Subject: [PATCH] style: add support for no-bottom-margin cell class (#28410)

 gadjo/static/css/_portal.scss | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
gadjo/static/css/_portal.scss
1
$cell-border-radius: 3px;
2

  
1 3
div.cell.shown-because-admin {
2 4
	opacity: 0.5;
3 5
	background-image: repeating-linear-gradient(-45deg, #eee 0px, #eee 14px, transparent 15px, transparent 30px);
......
15 17
		background: white;
16 18
		padding: 1rem;
17 19
		margin-bottom: 1rem;
18
		border-radius: 3px;
20
		border-radius: $cell-border-radius;
19 21
		&.transparent {
20 22
			background: transparent;
21 23
		}
......
26 28
				color: white;
27 29
			}
28 30
		}
31
		&.no-bottom-margin {
32
			margin-bottom: 0;
33
			border-radius: $cell-border-radius $cell-border-radius 0 0;
34
			border-bottom: 0;
35
			p:last-child {
36
				margin-bottom: 0;
37
				padding-bottom: 1ex;
38
			}
39
			+ div {
40
				margin-top: 0;
41
				border-radius: 0 0 $cell-border-radius $cell-border-radius;
42
				border-top: 0;
43
				&.no-bottom-margin {
44
					border-radius: 0;
45
				}
46
				p:first-child {
47
					margin-top: 0;
48
					padding-top: 1ex;
49
				}
50
			}
51
		}
29 52
	}
30 53
}
31 54

  
32
-