Ver código fonte

CSS: fix line heights

JC Brand 8 anos atrás
pai
commit
29ddf0b4db
5 arquivos alterados com 18 adições e 9 exclusões
  1. 3 3
      Makefile
  2. 6 3
      css/converse.css
  3. 2 1
      non_amd.html
  4. 5 2
      sass/_roster.scss
  5. 2 0
      sass/_variables.scss

+ 3 - 3
Makefile

@@ -130,13 +130,13 @@ css/converse-muc-embedded.min.css:: stamp-bundler sass css/converse-muc-embedded
 css/converse.css:: stamp-bundler sass
 	$(SASS) -I ./node_modules/bourbon/app/assets/stylesheets/ sass/converse.scss css/converse.css
 
-css/converse.min.css:: stamp-npm
+css/converse.min.css:: stamp-npm sass
 	$(CLEANCSS) css/converse.css > css/converse.min.css
 
-css/theme.min.css:: stamp-npm
+css/theme.min.css:: stamp-npm css/theme.css
 	$(CLEANCSS) css/theme.css > css/theme.min.css
 
-css/mobile.min.css:: stamp-npm
+css/mobile.min.css:: stamp-npm sass
 	$(CLEANCSS) css/mobile.css > css/mobile.min.css
 
 .PHONY: watch

+ 6 - 3
css/converse.css

@@ -2179,7 +2179,7 @@
       overflow-y: hidden;
       padding: 0.3em 1em;
       text-shadow: 0 1px 0 #FAFAFA;
-      line-height: 14px;
+      line-height: 16px;
       width: 100%; }
       #conversejs #converse-roster .roster-contacts dd .open-chat {
         max-width: 90%; }
@@ -2196,12 +2196,14 @@
         #conversejs #converse-roster .roster-contacts dd.requesting-xmpp-contact .open-chat .req-contact-name {
           width: 100%; }
       #conversejs #converse-roster .roster-contacts dd.requesting-xmpp-contact .req-contact-name {
+        line-height: 16px;
         width: 69%;
         padding: 0; }
       #conversejs #converse-roster .roster-contacts dd.current-xmpp-contact span {
         font-size: 16px;
         float: left;
-        color: #2A9D8F; }
+        color: #2A9D8F;
+        padding-right: 0.5em; }
       #conversejs #converse-roster .roster-contacts dd.odd {
         background-color: #DCEAC5;
         /* Make this difference */ }
@@ -2221,7 +2223,8 @@
         display: none;
         color: #818479; }
   #conversejs #converse-roster span.pending-contact-name {
-    width: 80%; }
+    line-height: 16px;
+    width: 100%; }
 
 #converse-embedded-chat .new-chatroom-nick,
 #conversejs .new-chatroom-nick {

+ 2 - 1
non_amd.html

@@ -86,7 +86,8 @@
             prebind: false,
             show_controlbox_by_default: true,
             debug: true,
-            roster_groups: true
+            roster_groups: true,
+            keepalive: true
         });
     });
 </script>

+ 5 - 2
sass/_roster.scss

@@ -103,7 +103,7 @@
             overflow-y: hidden;
             padding: 0.3em 1em;
             text-shadow: 0 1px 0 $text-shadow-color;
-            line-height: $font-size;
+            line-height: $line-height;
             width: 100%;
             .open-chat {
                 max-width: 90%;
@@ -127,6 +127,7 @@
                     }
                 }
                 .req-contact-name {
+                    line-height: $line-height;
                     width: 69%;
                     padding: 0;
                 }
@@ -135,6 +136,7 @@
                 font-size: 16px;
                 float: left;
                 color: $link-color;
+                padding-right: 0.5em;
             }
             &.odd {
                 background-color: #DCEAC5;
@@ -165,7 +167,8 @@
     }
     span {
         &.pending-contact-name {
-            width: 80%;
+            line-height: $line-height;
+            width: 100%;
         }
     }
 }

+ 2 - 0
sass/_variables.scss

@@ -54,6 +54,8 @@ $font-size: 14px !default;
 $font-size-large: 16px !default;
 $legend-font-size: 16px !default;
 
+$line-height:  16px !default;
+
 $chat-width: 200px !default;
 $chat-height: 450px !default;
 $chat-gutter: 0.5em !default;