diff options
| author | Sayz Lim <talk@sayzlim.net> | 2018-09-10 21:45:35 +0700 |
|---|---|---|
| committer | Sayz Lim <talk@sayzlim.net> | 2018-09-10 21:45:35 +0700 |
| commit | 2297d3340375bca1c2c3bd015e5b8ee96bbfbecc (patch) | |
| tree | 292b92571775385a5b74e0af180390cb2a56a88e /docs/_static/custom.css | |
| parent | a559d62f17c0c3129029870146b74da50a81d433 (diff) | |
| download | python-requests-2297d3340375bca1c2c3bd015e5b8ee96bbfbecc.tar.gz | |
Integrate Native CPC by BuySellAds
Replacing Carbon zone key with the direct key and install CPC ad unit on the site.
Diffstat (limited to 'docs/_static/custom.css')
| -rw-r--r-- | docs/_static/custom.css | 141 |
1 files changed, 138 insertions, 3 deletions
diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 54def686..0012d353 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -6,15 +6,16 @@ body > div.document > div.sphinxsidebar > div > form > table > tbody > tr:nth-ch color: white; } +/* Carbon by BuySellAds */ #carbonads { display: block; overflow: hidden; + margin: 1.5em 0 2em; padding: 1em; - background-color: #eeeeee; - text-align: center; border: solid 1px #cccccc; - margin: 1.5em 0 2em; border-radius: 2px; + background-color: #eeeeee; + text-align: center; line-height: 1.5; } @@ -42,6 +43,140 @@ body > div.document > div.sphinxsidebar > div > form > table > tbody > tr:nth-ch display: block; text-transform: uppercase; letter-spacing: 1px; + font-size: 10px; line-height: 1; +} + + +/* Native CPC by BuySellAds */ + +.native-js { + visibility: hidden; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, + sans-serif; + opacity: 0; + transition: all .25s ease-in-out; + transform: translateY(calc(100% - 35px)); + + flex-flow: column nowrap; +} + +.native-js[data-state=visible] { + position: fixed; + bottom: 0; + visibility: visible; + width: 100%; + box-shadow: 0 -1px 4px 1px hsla(0, 0%, 0%, .15); + opacity: 1; +} + +.native-js[data-state=visible]:hover { + transform: translateY(0); +} + +.native-img { + margin-right: 20px; + max-height: 50px; + border-radius: 3px; +} + +.native-sponsor { + margin: 10px 20px; + text-align: center; + text-transform: uppercase; + letter-spacing: .5px; + font-size: 12px; + transition: all .3s ease-in-out; + transform-origin: left; +} + +.native-js[data-state=visible]:hover .native-sponsor { + margin: 0 20px; + opacity: 0; + transform: scaleY(0); +} + +.native-flex { + display: flex; + padding: 20px 20px 40px; + text-decoration: none; + + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; +} + +.native-flex:hover { + text-decoration: none; +} + +.native-main { + display: flex; + + flex-flow: row nowrap; + align-items: center; +} + +.native-details { + display: flex; + margin-right: 30px; + + flex-flow: column nowrap; +} + +.native-company { + margin-bottom: 4px; + text-transform: uppercase; + letter-spacing: 2px; font-size: 10px; } + +.native-desc { + letter-spacing: 1px; + font-weight: 300; + line-height: 1.4; +} + +.native-cta { + padding: 10px 14px; + border-radius: 3px; + box-shadow: 0 6px 13px 0 hsla(0, 0%, 0%, .15); + text-transform: uppercase; + white-space: nowrap; + letter-spacing: 1px; + font-weight: 400; + font-size: 12px; + transition: all .3s ease-in-out; + transform: translateY(-1px); +} + +.native-cta:hover { + box-shadow: none; + transform: translateY(1px); +} + +@media only screen and (min-width: 320px) and (max-width: 759px) { + .native-flex { + flex-direction: column; + + flex-wrap: wrap; + } + + .native-img { + margin: 0; + } + + .native-details { + margin: 0; + } + + .native-main { + flex-direction: column; + margin-bottom: 20px; + text-align: center; + + flex-wrap: wrap; + align-content: center; + } +} |
