Beispiel #1
0
 def convert_border(self):
     c = {}
     for x in edges:
         border_to_css(x, self, c)
         val = getattr(self, "padding_%s" % x)
         if val is not inherit:
             c["padding-%s" % x] = "%.3gpt" % val
     return c
Beispiel #2
0
 def convert_border(self):
     c = {}
     for x in edges:
         border_to_css(x, self, c)
         val = getattr(self, 'padding_%s' % x)
         if val is not inherit:
             c['padding-%s' % x] = '%.3gpt' % val
     return c
Beispiel #3
0
 def convert_border(self):
     c = {}
     for x in edges:
         border_to_css(x, self, c)
         val = getattr(self, 'padding_%s' % x)
         if val is not inherit:
             c['padding-%s' % x] = '%.3gpt' % val
     if self.is_bidi:
         for a in ('padding-%s', 'border-%s-style', 'border-%s-color', 'border-%s-width'):
             l, r = c.get(a % 'left'), c.get(a % 'right')
             if l is not None:
                 c[a % 'right'] = l
             if r is not None:
                 c[a % 'left'] = r
     return c
Beispiel #4
0
 def convert_border(self):
     c = {}
     for x in edges:
         border_to_css(x, self, c)
         val = getattr(self, 'padding_%s' % x)
         if val is not inherit:
             c['padding-%s' % x] = '%.3gpt' % val
     if self.is_bidi:
         for a in ('padding-%s', 'border-%s-style', 'border-%s-color',
                   'border-%s-width'):
             l, r = c.get(a % 'left'), c.get(a % 'right')
             if l is not None:
                 c[a % 'right'] = l
             if r is not None:
                 c[a % 'left'] = r
     return c