From 38339ea75e75fa60d766139c7b7a079c7c122640 Mon Sep 17 00:00:00 2001 From: manetta Date: Tue, 2 Apr 2019 14:06:42 +0200 Subject: [PATCH] adding the cnn.css --- 08/cnn/cnn.css | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 08/cnn/cnn.css diff --git a/08/cnn/cnn.css b/08/cnn/cnn.css new file mode 100644 index 0000000..6949a99 --- /dev/null +++ b/08/cnn/cnn.css @@ -0,0 +1,63 @@ +/* Push the body down with margin-top*/ +body { + margin-top: 40px; + /*background-color: pink;*/ +} + +/* CNN styling */ +#cnn{ + position: fixed; + width: calc(100% - 10px); + min-width: 420px; + height: 30px; + top:0; + left:0; + right: 0; + vertical-align: top; + padding: 5px; + font-size: 14px; + background-color: #f2f5f6; + background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f5f6), to(#c8d7dc)); +} +#cnn .button_container { + display: inline-block; + width: calc(50% - 20px); +} +button { + width:auto; + margin-right: 10px; +} +button:hover{ + cursor: pointer; +} +#sitemap button{ + position: absolute; + top:0; + right:0; + margin:5px; + padding:0; + color:blue; +} + +@media screen and (orientation: portrait){ + body { + margin-top: 80px; + /*background-color: yellow;*/ + } + #cnn { + width: calc(100% - 10px); + height: 65px; + font-size: 12px; + } + #cnn .button_container { + width: calc(100% - 100px); + } + button { + width: 100%; + margin-bottom: 5px; + } + #sitemap button { + width: 90px; + height: calc(100% - 12px); + } +}