Example #1
0
File: base.py Project: w495/acv
    def s_about(self):
        res = ""
        
        res += """.s-about{
                background-color: white;
                overflow: hidden;
            }
        """%(d(Metrics))

        res += """.b-a{
            padding: 20px 23px 20px %(header_loffset)s;
        }
        """%(d(Metrics))

        res += """.b-ah{
                text-align: left;
                font-size: 30px;
                color: #0191d3;
            }
        """
        
        res += """.b-aa{
                text-align: center; 
                margin-top:10px;
            }
        """
        
        res += """.b-ac{
        font-size: 15px;
            line-height: 20px;
        }
        """

        res += """.b-ac-p{
            margin-top: 20px;
        }
        """
        
        res += """.b-bc-p{
           margin-left: 15px;
        }
        """

        res +=""".b-ac-ul{
            margin: 20px 0px 0px 15px;
            list-style: outside url(%s);
        }
        """%(
            generate.util.tobase64("css-images/b-ac-ul.png")
        )


        res += """.e-ac-ul{
            margin: 20px 0px 0px 15px;
        }
        """

        return res;
Example #2
0
File: base.py Project: w495/acv
    def s_about(self):
        res = ""

        res += """.s-about{
                background-color: white;
                overflow: hidden;
            }
        """ % (d(Metrics))

        res += """.b-a{
            padding: 20px 23px 20px %(header_loffset)s;
        }
        """ % (d(Metrics))

        res += """.b-ah{
                text-align: left;
                font-size: 30px;
                color: #0191d3;
            }
        """

        res += """.b-aa{
                text-align: center; 
                margin-top:10px;
            }
        """

        res += """.b-ac{
        font-size: 15px;
            line-height: 20px;
        }
        """

        res += """.b-ac-p{
            margin-top: 20px;
        }
        """

        res += """.b-bc-p{
           margin-left: 15px;
        }
        """

        res += """.b-ac-ul{
            margin: 20px 0px 0px 15px;
            list-style: outside url(%s);
        }
        """ % (generate.util.tobase64("css-images/b-ac-ul.png"))

        res += """.e-ac-ul{
            margin: 20px 0px 0px 15px;
        }
        """

        return res
Example #3
0
File: base.py Project: w495/acv
 def _e_news_head():
     # Удалил width: 800px;
     return """.e-news-head, .e-docs-head{
         display: block;
         display: block; 
         font-size: 30px;
         font-variant: normal;
         font-width: normal;
         font-weight: normal;
         color: white;
         float:left;
         margin: 10px 0px 0px %(header_loffset)s;
     }
     """ % (d(Metrics))
Example #4
0
File: base.py Project: w495/acv
 def _e_news_head():
     # Удалил width: 800px;
     return """.e-news-head, .e-docs-head{
         display: block;
         display: block; 
         font-size: 30px;
         font-variant: normal;
         font-width: normal;
         font-weight: normal;
         color: white;
         float:left;
         margin: 10px 0px 0px %(header_loffset)s;
     }
     """%(d(Metrics))
Example #5
0
File: base.py Project: w495/acv
 def s_main(self):
     return """
         .s-main{
         }
         .s-main{
             background-color: white;
         }
         .s-header, .s-main, .s-footer{
             display: block;
             position: relative;
             width: %(gwidth)s;
             margin-left:auto;
             margin-right:auto;
         }
         .b-header-group{
             display: block;
         }
     """ % (d(Metrics))
Example #6
0
File: base.py Project: w495/acv
 def s_main(self):
     return  """
         .s-main{
         }
         .s-main{
             background-color: white;
         }
         .s-header, .s-main, .s-footer{
             display: block;
             position: relative;
             width: %(gwidth)s;
             margin-left:auto;
             margin-right:auto;
         }
         .b-header-group{
             display: block;
         }
     """%(d(Metrics))
Example #7
0
File: base.py Project: w495/acv
    def s_roller(self):
        res = ""
        res += """.s-roller{
                height: 344px;
                width: %(gwidth)s;
                overflow:hidden;
            }
        """ % (d(Metrics))

        res += """.b-roller{
                padding-top: 15px;
                height: 240px;
            }
        """
        res += """.s-roller-frames{
                display: block;
                max-height: 140px;
            }
        """

        if (Use.css3_grad):
            res += ".s-roller{%s}" % (generate.util.rgc(
                "60%", "60%", '#1758a8', '#05254b', '#05254b'))
        if (Use.bgi_grad):
            res += ".s-roller{%s}" % (
                "background: #05254b url(%s);" %
                (generate.util.tobase64("css-images/s-roller.jpg")))

        res += """.b-rf-text{
            float: left;
            min-width:200px;
            max-width:500px;
            margin-left: 67px;
        }
        """

        res += """.b-rf-head{
            color: #259a3f;
            font-size: 55px;
            font-weight: normal;
        }
        """

        res += """.b-rf-caption{
            color: white;
            font-size: 35px;
            line-height: 65px;
            font-weight: normal;
        }
        """

        res += """.b-rf-content{
            margin: 0px 0px 0px 0px;
            color: white;
        }
        """

        res += """.b-rf-act{
            
        }
        """

        res += """.b-rfa-bat{
            text-align:center;
            color: white;
            margin-top: 10px;
            padding-top: 7px;
            font-size: 18px;
            height:  26px;
            width: 202px;

            background-color: #098fc1;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            -khtml-border-radius: 5px;
            border-radius: 5px;
        }
        """

        if (Use.bgi_grad):
            res += ".b-rfa-bat{%s}" % (
                "background: url(%s) no-repeat;" %
                (generate.util.tobase64("css-images/b-rfa-bat.png")))

        res += """.b-roller-nav{
            text-align: center;
            clear: both;
        }
        """

        res += """.b-rn-ul{
            margin: auto;
            width: 90px;
        }
        """

        res += """.e-rn-ul{
            float: left;
        }
        """

        # display: inline-block;

        res += """.e-rn-but{
            top: 3px;
            margin: 0px 5px 10px 0px;
            width: 20px;
            height: 20px;
            display: block;
            -moz-border-radius: 20px;
            -webkit-border-radius: 20px;
            -khtml-border-radius: 20px;
            border-radius: 20px;
            background-color: white;
            outline: none;
        }
        """

        if (Use.bgi_grad):
            res += """.e-rn-but{
                    %s
                    width: 22px;
                    height: 22px;
                }""" % ("background: url(%s) no-repeat;" %
                        (generate.util.tobase64("css-images/e-rn-but.png")))
            res += ".e-rn-but:hover, .e-rn-but:active, .e-rn-but.cur{%s}" % (
                "background: url(%s) no-repeat;" %
                (generate.util.tobase64("css-images/e-rn-but.cur.png")))
        if (Use.css3_grad):
            res += """.e-rn-but{
                border: inset 1px #cccccc;
            }
            """
            res += """.e-rn-but:hover{
                background-color: #cccccc;
            }
            """
            res += """.e-rn-but:active{
                background-color: #c0c0c0;
            }
            """

            res += """.e-rn-but.cur{
                background-color: #cccccc;
            }
            """

        res += """.b-rf-ul{
            margin: 0px 0px 0px 15px;
            list-style: outside url(%s);
        }
        """ % (generate.util.tobase64("css-images/b-rf-ul.png"))

        res += """.e-rf-ul{
            margin: 0px 0px 10px 0px;
            font-size: 14px;
            color: #ffffff;
            line-height: 16px;
        }
        """

        res += """.b-rf-picture{
            float: right;
            position: relative;
            right:  100px;
            top:    -3px;
            width:  400px;
            height: 300px;
        }
        """

        res += """.e-rf-ul:link, .e-rf-ul:hover, .e-rf-ul:visited{
            color: #ffffff;
        }"""

        return res
Example #8
0
File: base.py Project: w495/acv
        def _b_thehead_caption():
            res = ""
            res += """.b-thehead-caption {
                    display: block;
                    font-size: 13px;
                    line-height: 16px;
                    text-align: right;
                    height: %spx;
                }
            """ % (b_thehead_caption_h)

            res += """.b-thehead-caption {
                    background-color: black;
                    color: white;
                }
            """
            res += """.b-thehead-logo{
                    position: relative;
                    top:10px;
                    left: %(header_loffset)s;
                }
            """ % (d(Metrics))

            res += """.b-thehead-caption {
                    padding-right: 10px;
                }
            """
            res += """.s-signin{
                    display: block;
                    text-align: right;
                    /*background-color: red;*/
                    float: right;
                    text-align:right;
                    position: relative;
                    top: -60px;
                    width: 420px;
                    height: 30px;
                    vertical-align: middle;
                    margin-right: 10px;
                }
            """
            res += """.s-sfm-input{
                    font-size: 12px;
                    border: 1px inset #ccc;
                    outline: none;
                    background-color: transparent;
                    padding-left: 10px;
                    margin-left: 10px;
                    -moz-border-radius: 20px;
                    -webkit-border-radius: 20px;
                    -khtml-border-radius: 20px;
                    border-radius: 20px;
                }
            """

            #res += """.email-email:required:invalid, .email-email:focus:invalid {
            #    color: red;
            #}"""

            #res += """.email-email:required:valid, .email-email:focus:valid {
            #    color: green;
            #}"""

            if (Use.css3_corners):
                res += """.s-sfm-input{
                        width:165px;
                        height:24px;
                        background-color: white;
                    }
                """
            if (Use.bgi_corners):
                res += ".s-sfm-input{%s%s}" % (
                    "background: url(%s) no-repeat;" %
                    (generate.util.tobase64("css-images/s-sfm-input.png"), ),
                    "border:none;width:160px;height:28px;")

            res += """.s-sfm-oval{
                    display: inline-block;
                    text-align: center;
                    width:165px;
                    height: 18px;
                    outline: none;
                    padding: 5px 0 5px 0;
                    margin-left: 10px;
                    -moz-border-radius: 20px;
                    -webkit-border-radius: 20px;
                    -khtml-border-radius: 20px;
                    border-radius: 20px;
                    color:white;
                    overflow: hidden;
                    text-decoration: none;
                }
            """

            res += """.e-sfm-oval{
                color:white;
                text-decoration: none;
            }"""

            res += """.s-sfm-oval.m-login{%s
                border: solid 1px #086e94;
                }""" % (generate.util.lgt('#0895ca', '#086e94', '#086e94'))

            res += """.s-sfm-oval.m-logout{%s
                border: solid 1px #196936;
                }""" % (generate.util.lgt('#269840', '#196936', '#196936'))

            res += """.s-sfm{
                    text-align: right;
                }
            """

            res += """.s-sfm-lc{
                    text-align: right;
                    padding-top: 5px;
                    margin-right: 13px;
                    font-size: 12px;
                    line-height: 16px;
                }
            """
            res += """.s-sfm-lsignup{
                    padding-top: 5px;
                    font-size: 12px;
                }
            """
            res += """.s-sfm-l{
                    padding-top: 5px;
                    color: black;
                    text-decoration: underlined;
                }
            """
            res += """.s-sfm-l:hover{
                    color: black;
                    text-decoration: none;
                }
            """
            res += """.s-sfm-but{
                    padding: 0px 0px 0px 2px;
                    margin: 0px 0px 0px 0px;
                    tex-align: left;
                    width: 14px;
                    font-size: 12px;
                    font-family: Georgia, 'Times New Roman', Times, serif;
                    background-color: transparent;
                    border: none;
                }
            """
            return res
Example #9
0
File: base.py Project: w495/acv
    def s_pers(self):
        s_pers = """
        .s-pers{
            position: relative;
            top: -4zpx;
            background-color: #cccccc;
        }

        .m-pers-f{
            background-color: white;
        }

        .s-pers-pay-f{
            text-align: center;
        }
        
        .s-pers-pay-but{
            margin: 20px 20px 20px 20px;
            width:  300px;
            height: 200px;
        }
        
        .b-fpb{
            display:none;
        }

        .b-spb, .b-fpb{
            top: 45%;
            left: 45%;
            position: absolute;
            text-align: center;
        }
        
        #upload_progress_bar{
            width:              100%;
            height:             100%;
            z-index:            65533;
            background-color:   black;
            -moz-opacity:       0.7;
            -khtml-opacity:     0.7;
            opacity:            0.7;
            position:           absolute;
            text-align:         center;
            vertical-align:     middle;
            display:            none;
        }
        .b-spb,.b-upb{
            display:                block;
            color:                  black;
            background-color:       white;
            width:                  200px;
            height:                 20px;
            padding:                10px;
            -webkit-border-radius:  10px;   /*Ch*/
            -moz-border-radius:     10px;   /*FF*/
            border-radius:          10px;   /*IE*/
        }
        """

        #res += """.b-a{
        #padding: 20px 23px 20px %(header_loffset)s;
        #}
        #"""%(d(Metrics))

        ria_bg = """
        .ria-bg{
            top: -2px;
            width: %(gwidth)s;
            height: %(rheight)s;
            position: relative;
            background-color: #cccccc;
        }
        """ % (d(Metrics))

        ria_fg = """
        .ria-fg{
            width: %(gwidth)s;
            height: %(rheight)s;
            top: 0px;
            left: 0px;
            position: absolute;
        }
        """ % (d(Metrics))

        __ria = """
        #ria{
            position: absolute;
            width: %(gwidth)s;
            height: %(rheight)s;
        }
        """ % (d(Metrics))

        __ria_ = """
        #ria *{
            font-size: 12px;
            font-family: Tahoma ,sans-serif;
        }
        """

        res = s_pers + ria_bg + ria_fg + __ria + __ria_
        return res
Example #10
0
File: base.py Project: w495/acv
    def s_roller(self):
        res = ""
        res += """.s-roller{
                height: 344px;
                width: %(gwidth)s;
                overflow:hidden;
            }
        """%(d(Metrics))
        
        res += """.b-roller{
                padding-top: 15px;
                height: 240px;
            }
        """
        res += """.s-roller-frames{
                display: block;
                max-height: 140px;
            }
        """
        
        if(Use.css3_grad):
            res += ".s-roller{%s}"%(
                generate.util.rgc("60%", "60%",'#1758a8', '#05254b', '#05254b')
            )
        if(Use.bgi_grad):
            res += ".s-roller{%s}"%(
                "background: #05254b url(%s);"%(
                    generate.util.tobase64("css-images/s-roller.jpg")
                )
            )

        res +=""".b-rf-text{
            float: left;
            min-width:200px;
            max-width:500px;
            margin-left: 67px;
        }
        """

        res +=""".b-rf-head{
            color: #259a3f;
            font-size: 55px;
            font-weight: normal;
        }
        """

        res +=""".b-rf-caption{
            color: white;
            font-size: 35px;
            line-height: 65px;
            font-weight: normal;
        }
        """
        
        res +=""".b-rf-content{
            margin: 0px 0px 0px 0px;
            color: white;
        }
        """

        res +=""".b-rf-act{
            
        }
        """
        
        res +=""".b-rfa-bat{
            text-align:center;
            color: white;
            margin-top: 10px;
            padding-top: 7px;
            font-size: 18px;
            height:  26px;
            width: 202px;

            background-color: #098fc1;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            -khtml-border-radius: 5px;
            border-radius: 5px;
        }
        """

        if(Use.bgi_grad):
            res += ".b-rfa-bat{%s}"%(
                "background: url(%s) no-repeat;"%(
                    generate.util.tobase64("css-images/b-rfa-bat.png")
                )
            )

        res += """.b-roller-nav{
            text-align: center;
            clear: both;
        }
        """
        
        res += """.b-rn-ul{
            margin: auto;
            width: 90px;
        }
        """
        
        res += """.e-rn-ul{
            float: left;
        }
        """

        # display: inline-block;
        
        res += """.e-rn-but{
            top: 3px;
            margin: 0px 5px 10px 0px;
            width: 20px;
            height: 20px;
            display: block;
            -moz-border-radius: 20px;
            -webkit-border-radius: 20px;
            -khtml-border-radius: 20px;
            border-radius: 20px;
            background-color: white;
            outline: none;
        }
        """

        if(Use.bgi_grad):
            res += """.e-rn-but{
                    %s
                    width: 22px;
                    height: 22px;
                }"""%(
                "background: url(%s) no-repeat;"%(
                    generate.util.tobase64("css-images/e-rn-but.png")
                )
            )
            res += ".e-rn-but:hover, .e-rn-but:active, .e-rn-but.cur{%s}"%(
                "background: url(%s) no-repeat;"%(
                    generate.util.tobase64("css-images/e-rn-but.cur.png")
                )
            )
        if(Use.css3_grad):
            res += """.e-rn-but{
                border: inset 1px #cccccc;
            }
            """
            res += """.e-rn-but:hover{
                background-color: #cccccc;
            }
            """
            res += """.e-rn-but:active{
                background-color: #c0c0c0;
            }
            """

            res += """.e-rn-but.cur{
                background-color: #cccccc;
            }
            """

        res +=""".b-rf-ul{
            margin: 0px 0px 0px 15px;
            list-style: outside url(%s);
        }
        """%(
            generate.util.tobase64("css-images/b-rf-ul.png")
        )

        res +=""".e-rf-ul{
            margin: 0px 0px 10px 0px;
            font-size: 14px;
            color: #ffffff;
            line-height: 16px;
        }
        """

        res +=""".b-rf-picture{
            float: right;
            position: relative;
            right:  100px;
            top:    -3px;
            width:  400px;
            height: 300px;
        }
        """


        res += """.e-rf-ul:link, .e-rf-ul:hover, .e-rf-ul:visited{
            color: #ffffff;
        }"""
        
        return res
Example #11
0
File: base.py Project: w495/acv
        def _b_thehead_caption():
            res = ""
            res += """.b-thehead-caption {
                    display: block;
                    font-size: 13px;
                    line-height: 16px;
                    text-align: right;
                    height: %spx;
                }
            """%(b_thehead_caption_h);
            
            res += """.b-thehead-caption {
                    background-color: black;
                    color: white;
                }
            """
            res += """.b-thehead-logo{
                    position: relative;
                    top:10px;
                    left: %(header_loffset)s;
                }
            """%(d(Metrics))
            
            res += """.b-thehead-caption {
                    padding-right: 10px;
                }
            """
            res += """.s-signin{
                    display: block;
                    text-align: right;
                    /*background-color: red;*/
                    float: right;
                    text-align:right;
                    position: relative;
                    top: -60px;
                    width: 420px;
                    height: 30px;
                    vertical-align: middle;
                    margin-right: 10px;
                }
            """
            res += """.s-sfm-input{
                    font-size: 12px;
                    border: 1px inset #ccc;
                    outline: none;
                    background-color: transparent;
                    padding-left: 10px;
                    margin-left: 10px;
                    -moz-border-radius: 20px;
                    -webkit-border-radius: 20px;
                    -khtml-border-radius: 20px;
                    border-radius: 20px;
                }
            """

            #res += """.email-email:required:invalid, .email-email:focus:invalid {
            #    color: red;
            #}"""
    
            #res += """.email-email:required:valid, .email-email:focus:valid {
            #    color: green;
            #}"""

            if(Use.css3_corners):
                res += """.s-sfm-input{
                        width:165px;
                        height:24px;
                        background-color: white;
                    }
                """
            if(Use.bgi_corners):
                res += ".s-sfm-input{%s%s}"%(
                    "background: url(%s) no-repeat;"%(
                        generate.util.tobase64("css-images/s-sfm-input.png"),
                    ),
                    "border:none;width:160px;height:28px;"
                )

            res += """.s-sfm-oval{
                    display: inline-block;
                    text-align: center;
                    width:165px;
                    height: 18px;
                    outline: none;
                    padding: 5px 0 5px 0;
                    margin-left: 10px;
                    -moz-border-radius: 20px;
                    -webkit-border-radius: 20px;
                    -khtml-border-radius: 20px;
                    border-radius: 20px;
                    color:white;
                    overflow: hidden;
                    text-decoration: none;
                }
            """

            res += """.e-sfm-oval{
                color:white;
                text-decoration: none;
            }"""

            res += """.s-sfm-oval.m-login{%s
                border: solid 1px #086e94;
                }"""%(
                generate.util.lgt('#0895ca', '#086e94', '#086e94')
            )

            res += """.s-sfm-oval.m-logout{%s
                border: solid 1px #196936;
                }"""%(
                generate.util.lgt('#269840', '#196936', '#196936')
            )

            
            res += """.s-sfm{
                    text-align: right;
                }
            """

            res += """.s-sfm-lc{
                    text-align: right;
                    padding-top: 5px;
                    margin-right: 13px;
                    font-size: 12px;
                    line-height: 16px;
                }
            """
            res += """.s-sfm-lsignup{
                    padding-top: 5px;
                    font-size: 12px;
                }
            """
            res += """.s-sfm-l{
                    padding-top: 5px;
                    color: black;
                    text-decoration: underlined;
                }
            """
            res += """.s-sfm-l:hover{
                    color: black;
                    text-decoration: none;
                }
            """
            res += """.s-sfm-but{
                    padding: 0px 0px 0px 2px;
                    margin: 0px 0px 0px 0px;
                    tex-align: left;
                    width: 14px;
                    font-size: 12px;
                    font-family: Georgia, 'Times New Roman', Times, serif;
                    background-color: transparent;
                    border: none;
                }
            """
            return res;
Example #12
0
File: base.py Project: w495/acv
    def s_pers(self):
        s_pers = """
        .s-pers{
            position: relative;
            top: -4zpx;
            background-color: #cccccc;
        }

        .m-pers-f{
            background-color: white;
        }

        .s-pers-pay-f{
            text-align: center;
        }
        
        .s-pers-pay-but{
            margin: 20px 20px 20px 20px;
            width:  300px;
            height: 200px;
        }
        
        .b-fpb{
            display:none;
        }

        .b-spb, .b-fpb{
            top: 45%;
            left: 45%;
            position: absolute;
            text-align: center;
        }
        
        #upload_progress_bar{
            width:              100%;
            height:             100%;
            z-index:            65533;
            background-color:   black;
            -moz-opacity:       0.7;
            -khtml-opacity:     0.7;
            opacity:            0.7;
            position:           absolute;
            text-align:         center;
            vertical-align:     middle;
            display:            none;
        }
        .b-spb,.b-upb{
            display:                block;
            color:                  black;
            background-color:       white;
            width:                  200px;
            height:                 20px;
            padding:                10px;
            -webkit-border-radius:  10px;   /*Ch*/
            -moz-border-radius:     10px;   /*FF*/
            border-radius:          10px;   /*IE*/
        }
        """
        
        #res += """.b-a{
            #padding: 20px 23px 20px %(header_loffset)s;
        #}
        #"""%(d(Metrics))
        
        ria_bg = """
        .ria-bg{
            top: -2px;
            width: %(gwidth)s;
            height: %(rheight)s;
            position: relative;
            background-color: #cccccc;
        }
        """%(d(Metrics))
        
        ria_fg = """
        .ria-fg{
            width: %(gwidth)s;
            height: %(rheight)s;
            top: 0px;
            left: 0px;
            position: absolute;
        }
        """%(d(Metrics))
        
        __ria = """
        #ria{
            position: absolute;
            width: %(gwidth)s;
            height: %(rheight)s;
        }
        """%(d(Metrics))
        
        __ria_ = """
        #ria *{
            font-size: 12px;
            font-family: Tahoma ,sans-serif;
        }
        """
        
        res = s_pers + ria_bg + ria_fg + __ria + __ria_
        return res