Skip to content

Commit 7941519

Browse files
committed
more fixes, migrate is now pixel-identical
1 parent 5288391 commit 7941519

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

web_src/css/base.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,14 +1050,6 @@ a.label,
10501050
/* are needed to get all current uses of fomantic cards working */
10511051
/* TODO: remove all these styles and use custom styling instead */
10521052

1053-
.ui.cards {
1054-
display: flex;
1055-
margin: -.875em -.5em;
1056-
margin-right: -0.5em;
1057-
margin-left: -0.5em;
1058-
flex-wrap: wrap;
1059-
}
1060-
10611053
.ui.card:last-child {
10621054
margin-bottom: 0;
10631055
}
@@ -1071,7 +1063,6 @@ a.label,
10711063
flex-direction: column;
10721064
max-width: 100%;
10731065
width: 290px;
1074-
margin: 1em 0;
10751066
min-height: 0;
10761067
padding: 0;
10771068
background: var(--color-card);
@@ -1080,6 +1071,22 @@ a.label,
10801071
word-wrap: break-word;
10811072
}
10821073

1074+
.ui.card {
1075+
margin: 1em 0;
1076+
}
1077+
1078+
.ui.cards {
1079+
display: flex;
1080+
margin: -0.875em -0.5em;
1081+
flex-wrap: wrap;
1082+
}
1083+
1084+
.ui.cards > .card {
1085+
display: flex;
1086+
margin: 0.875em 0.5em;
1087+
float: none;
1088+
}
1089+
10831090
.ui.cards > .card > .content,
10841091
.ui.card > .content {
10851092
border-top: 1px solid var(--color-secondary);
@@ -1114,6 +1121,11 @@ a.label,
11141121
border-radius: 0 0 var(--border-radius) var(--border-radius);
11151122
}
11161123

1124+
.ui.cards > .card > :only-child,
1125+
.ui.card > :only-child {
1126+
border-radius: var(--border-radius) !important;
1127+
}
1128+
11171129
.ui.cards > .card > .extra,
11181130
.ui.card > .extra,
11191131
.ui.cards > .card > .extra a:not(.ui),

0 commit comments

Comments
 (0)