From 167ba640185ad6759c9206072ecac5edc28a9e0f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 7 Oct 2015 06:05:02 -0400 Subject: [PATCH] using fancy new mixin --- public/less/admin/manage/users.less | 5 +---- public/less/generics.less | 5 +---- public/less/mixins.less | 8 ++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/public/less/admin/manage/users.less b/public/less/admin/manage/users.less index 6ad08afcfb..91f4e6efad 100644 --- a/public/less/admin/manage/users.less +++ b/public/less/admin/manage/users.less @@ -18,10 +18,7 @@ min-width: 125px; img, .user-icon { - width:80px; - height:80px; - line-height: 80px; - font-size: 4rem; + .user-icon-style(80px, 4rem); } a { diff --git a/public/less/generics.less b/public/less/generics.less index 643f9bc20e..ce824ab04f 100644 --- a/public/less/generics.less +++ b/public/less/generics.less @@ -30,12 +30,9 @@ } img, .user-icon { + .user-icon-style(36px, 1.8rem); float: left; - height: 36px; - width: 36px; margin-right: 1rem; - line-height: 36px; - font-size: 1.8rem; } span { diff --git a/public/less/mixins.less b/public/less/mixins.less index cadde9db5d..c7d49d31c0 100644 --- a/public/less/mixins.less +++ b/public/less/mixins.less @@ -69,4 +69,12 @@ margin-bottom: 10px; } +} + +.user-icon-style(@size: 32px, @font-size: 1.5rem, @border-radius: inherit) { + border-radius: @border-radius; + width: @size; + height: @size; + line-height: @size; + font-size: @font-size; } \ No newline at end of file