def add_styles(self):
    if self.use_default_style:
        palette = self.top.get_palette()
        border = palette.color('border')
        color = palette.color('color')
        background = palette.color('background')
        data = {'border': border, 'color': color, 'background': background, 'header_id': self.header_id}
        from pyasm.web import HtmlElement
        style = HtmlElement.style()
        self.top.add(style)
        style.add(('\n            #%(header_id)s .spt_tab_header {\n                border-style: solid;\n                position: relative;\n                border-color: %(border)s;\n                border-width: 1px 1px 0px 1px;\n                padding: 7px 5px;\n                color: %(color)s;\n                background: %(background)s;\n                height: 30px;\n                box-sizing: border-box;\n            }\n\n            #%(header_id)s .spt_tab_selected {\n                opacity: 1.0;\n                #border-bottom: none;\n            }\n\n            #%(header_id)s .spt_tab_unselected {\n                opacity: 0.4 ;\n                #border-bottom: solid 1px %(border)s;\n            }\n\n            #%(header_id)s .spt_tab_hover {\n            }\n\n\n            ' % data))
def add_styles(self):
    if self.use_default_style:
        palette = self.top.get_palette()
        border = palette.color('border')
        color = palette.color('color')
        background = palette.color('background')
        data = {'border': border, 'color': color, 'background': background, 'header_id': self.header_id}
        from pyasm.web import HtmlElement
        style = HtmlElement.style()
        self.top.add(style)
        style.add(('\n            #%(header_id)s .spt_tab_header {\n                border-style: solid;\n                position: relative;\n                border-color: %(border)s;\n                border-width: 1px 1px 0px 1px;\n                padding: 7px 5px;\n                color: %(color)s;\n                background: %(background)s;\n                height: 30px;\n                box-sizing: border-box;\n            }\n\n            #%(header_id)s .spt_tab_selected {\n                opacity: 1.0;\n                #border-bottom: none;\n            }\n\n            #%(header_id)s .spt_tab_unselected {\n                opacity: 0.4 ;\n                #border-bottom: solid 1px %(border)s;\n            }\n\n            #%(header_id)s .spt_tab_hover {\n            }\n\n\n            ' % data))