Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/components/_cards.scss

Issue 29453600: Issue 4961 - Fix card group field alignment on acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Created June 1, 2017, 1:10 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/components/_cards.scss
===================================================================
--- a/static/scss/components/_cards.scss
+++ b/static/scss/components/_cards.scss
@@ -11,31 +11,46 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>.
// Cards
+// Variables
juliandoucette 2017/06/09 14:51:12 Why did you put these variables here and not in _v
ire 2017/06/12 14:28:53 This was actually an error. I put it here while I
+$card--max-width: 350px;
juliandoucette 2017/06/09 14:51:12 NIT: Please stay consistent with the variable nami
ire 2017/06/12 14:28:54 Acknowledged.
+$card--header-height: 100px;
+$card--content-height: 180px;
+
.card
{
padding: $md;
color: $primary-fg;
border: 1px solid $primary-fg;
background-color: $primary-bg;
}
.card %headings
{
@extend h3;
height: $md + $sm;
margin: $sm 0 $sm 0;
}
+.card article h3
juliandoucette 2017/06/09 14:51:12 Why only h3?
ire 2017/06/12 14:28:53 I was targeting a specific case, the committee pag
+{
+ height: auto;
+
+ @media (min-width: 700px)
juliandoucette 2017/06/09 14:51:12 It seems like you are doing this to align the butt
ire 2017/06/12 14:28:53 Yes.
+ {
+ height: 120px;
+ }
+}
+
.card-icon
{
margin: $sm 0;
}
.center .card-icon
{
margin: $lg - $sm 0 $md 0;
@@ -131,8 +146,18 @@
text-decoration: none;
color: $primary-fg;
}
.card.list a%active
{
color: $accent;
}
+
+@supports (display: grid)
+{
+
+ .card
juliandoucette 2017/06/09 14:51:12 When does this apply? It seems to be overpowered b
ire 2017/06/12 14:28:53 You're right, my error again, sorry. This should b
+ {
+ display: inline-grid;
+ }
+
+}

Powered by Google App Engine
This is Rietveld