def create_css(self, rules):
        """
        Generate the final CSS string
        """
        style = rules[0].legacy_compiler_options.get(
            'style', self.compiler.output_style)
        debug_info = self.compiler.generate_source_map

        if style == 'legacy':
            sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg = True, ' ', '  ', False, '', '\n', '\n', '\n', debug_info
        elif style == 'compressed':
            sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg = False, '', '', False, '', '', '', '', False
        elif style == 'compact':
            sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg = True, ' ', '', False, '\n', ' ', '\n', ' ', debug_info
        elif style == 'expanded':
            sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg = True, ' ', '  ', False, '\n', '\n', '\n', '\n', debug_info
        else:  # if style == 'nested':
            sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg = True, ' ', '  ', True, '\n', '\n', '\n', ' ', debug_info

        return self._create_css(rules, sc, sp, tb, nst, srnl, nl, rnl, lnl, dbg)
def create_css ( self , rules ) : style = rules [ 0 ] . legacy_compiler_options . get ( 'style' , self . compiler . output_style ) debug_info = self . compiler . generate_source_map if style == 'legacy' : sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg = True , ' ' , '  ' , False , '' , '\n' , '\n' , '\n' , debug_info elif style == 'compressed' : sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg = False , '' , '' , False , '' , '' , '' , '' , False elif style == 'compact' : sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg = True , ' ' , '' , False , '\n' , ' ' , '\n' , ' ' , debug_info elif style == 'expanded' : sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg = True , ' ' , '  ' , False , '\n' , '\n' , '\n' , '\n' , debug_info else : sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg = True , ' ' , '  ' , True , '\n' , '\n' , '\n' , ' ' , debug_info return self . _create_css ( rules , sc , sp , tb , nst , srnl , nl , rnl , lnl , dbg )
Generate the final CSS string