Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 190 lines (167 sloc) 5.943 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
<!DOCTYPE html>
<html>
<head>

    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <title>Basic CSS3 Demos - in RTL</title>

    <style type="text/css">

        html, body {
            margin: 0;
            padding: 0;
            font-family: sans-serif;
            font-size: 16px;
            background: #EEE;
            direction: rtl;
        }

        .section {
            border: 1px solid #CCC;
            padding: 1em 2em 2em;
            margin: 3em;
            background: #FFF;
        }

        .section h2 {
            border: 1px solid #CCC;
            position: relative;
            /*left: -3em;*/
            top: -2em;
            background: #FFF;
            font-size: 1em;
            padding: .25em 1em;
            margin: 0;
        }

        .section code {
            display: block;
            white-space: pre;
            margin-left: 250px;
            min-height: 100px;
            color: #999;
            overflow: auto;
        }
        .section code strong {
            color: #000;
        }

        .test {
            width: 200px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            border: 2px solid;
            background: #FFF;
            float: left;
            position: relative;
            behavior: url(../build/PIE.htc);
        }

        #test1 {
            border-color: #c00;
            -webkit-border-radius: 1em;
            -moz-border-radius: 1em;
            border-radius: 1em;
        }

        #test2 {
            border-color: #090;
            -webkit-border-radius: 1em;
            -moz-border-radius: 1em;
            border-radius: 1em;
            -webkit-box-shadow: #999 0 .25em .5em;
            -moz-box-shadow: #999 0 .25em .5em;
            box-shadow: #999 0 .25em .5em;
        }

        #test3 {
            border-color: #00c;
            -webkit-border-radius: 1em;
            -moz-border-radius: 1em;
            border-radius: 1em;
            -webkit-box-shadow: #999 0 .25em .5em;
            -moz-box-shadow: #999 0 .25em .5em;
            box-shadow: #999 0 .25em .5em;
            background: #9CF;
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9CF), color-stop(100%, #03C));
            background: -moz-linear-gradient(#9CF, #03C);
            background: linear-gradient(#9CF, #03C);
            -pie-background: linear-gradient(#9CF, #03C);
        }

        #test4 {
            border-color: #F99;
            -webkit-border-radius: 1em;
            -moz-border-radius: 1em;
            border-radius: 1em;
            -webkit-box-shadow: #999 0 .25em .5em;
            -moz-box-shadow: #999 0 .25em .5em;
            box-shadow: #999 0 .25em .5em;
            background: #FFF url(icon-ie.png) no-repeat 50% 0;
            background: url(icon-ie.png) no-repeat 50% 0, url(icon-firefox.png) no-repeat 0 0, url(icon-chrome.png) no-repeat 100% 0, url(icon-safari.png) no-repeat 0 100%, url(icon-opera.png) no-repeat 100% 100% #FFF;
            -pie-background: url(icon-ie.png) no-repeat 50% 0, url(icon-firefox.png) no-repeat 0 0, url(icon-chrome.png) no-repeat 100% 0, url(icon-safari.png) no-repeat 0 100%, url(icon-opera.png) no-repeat 100% 100% #FFF;
        }

        #test5 {
            -webkit-border-image: url(border2.png) 15 stretch;
            -moz-border-image: url(border2.png) 15 stretch;
            border-image: url(border2.png) 15 fill stretch;
            border: 15px solid transparent;
            width: 180px;
        }

    </style>

</head>
<body>

<h1>RTL</h1>


    <div class="section">
        <h2>border-radius</h2>
        <div class="test" id="test1">Cherry</div>
<code><strong>border-radius: 1em; /* Standard */
-moz-border-radius: 1em; /* Gecko */
-webkit-border-radius: 1em; /* WebKit */</strong></code>
    </div>

    <div class="section">
        <h2>box-shadow</h2>
        <div class="test" id="test2">Apple</div>
<code>border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
<strong>box-shadow: #999 0 .25em .5em;
-webkit-box-shadow: #999 0 .25em .5em;
-moz-box-shadow: #999 0 .25em .5em;</strong></code>
    </div>

    <div class="section">
        <h2>linear-gradient</h2>
        <div class="test" id="test3">Blueberry</div>
<code>border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
-webkit-box-shadow: #999 0 .25em .5em;
-moz-box-shadow: #999 0 .25em .5em;
<strong>background: #9CF; /* Fallback */
background: -webkit-gradient(linear, 0 0, 0 100%, from(#9CF), to(#03C));
background: -moz-linear-gradient(#9CF, #03C);
background: linear-gradient(#9CF, #03C);</strong></code>
    </div>

    <div class="section">
        <h2>multiple background images</h2>
        <div class="test" id="test4">Rhubarb</div>
<code>border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
-webkit-box-shadow: #999 0 .25em .5em;
-moz-box-shadow: #999 0 .25em .5em;
<strong>background: url(icon-ie.png) no-repeat 50% 0 #FFF; /* Fallback */
background: url(icon-ie.png) no-repeat 50% 0,
            url(icon-firefox.png) no-repeat 0 0,
            url(icon-chrome.png) no-repeat 100% 0,
            url(icon-safari.png) no-repeat 0 100%,
            url(icon-opera.png) no-repeat 100% 100% #FFF;</strong></code>
    </div>

    <div class="section">
        <h2>border-image</h2>
        <div class="test" id="test5">Pumpkin</div>
<code>border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
-webkit-box-shadow: #999 0 .25em .5em;
-moz-box-shadow: #999 0 .25em .5em;
<strong>border-image: url(border2.png) 15 fill stretch;
-moz-border-image: url(border2.png) 15 stretch;
-webkit-border-image: url(border2.png) 15 stretch;
border: 15px solid transparent;</strong></code>
    </div>


</body>
</html>
Something went wrong with that request. Please try again.