浏览代码

Fixed problem with resizing thumb avatars

master
Ilya Daynatovich 9 年前
父节点
当前提交
f09a9be523
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 8
    0
      css/_mixins.scss
  2. 2
    1
      css/_videolayout_default.scss

+ 8
- 0
css/_mixins.scss 查看文件

@@ -66,6 +66,14 @@
66 66
   @include transform(translate(-50%, -50%))
67 67
 }
68 68
 
69
+/**
70
+* Defines the maximum width and height
71
+**/
72
+@mixin maxSize($value) {
73
+    max-width: $value;
74
+    max-height: $value;
75
+}
76
+
69 77
 @mixin transform($func) {
70 78
   -moz-transform: $func;
71 79
   -ms-transform: $func;

+ 2
- 1
css/_videolayout_default.scss 查看文件

@@ -399,7 +399,8 @@
399 399
 }
400 400
 
401 401
 .userAvatar {
402
-    @include circle(60px);
402
+    @include maxSize(60px);
403
+    @include circle(50%);
403 404
     @include absoluteAligning();
404 405
 }
405 406
 

正在加载...
取消
保存