diff --git a/static/css/style.css b/static/css/style.css index 0830f7f..061212e 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -87,4 +87,79 @@ td { body { overflow-x: hidden; -} \ No newline at end of file +} + +/*Лента - ДЕМО*/ + +.box { + z-index: 0; +} + +.ribbon { + position: fixed; + right: -5px; + top: -5px; + z-index: 1; + overflow: hidden; + width: 93px; + height: 93px; + text-align: right; + pointer-events: none +} + +.ribbon span { + font-size: 0.8rem; + color: #fff; + text-transform: uppercase; + text-align: center; + font-weight: bold; + line-height: 32px; + transform: rotate(45deg); + width: 125px; + display: block; + background: #79a70a; + background: linear-gradient(#9bc90d 0%, #79a70a 100%); + box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1); + position: absolute; + top: 17px; +/ / change this, if no border right: - 29 px; +/ / change this, if no border +} + +.ribbon span::before { + content: ''; + position: absolute; + left: 0px; + top: 100%; + z-index: -1; + border-left: 3px solid #79A70A; + border-right: 3px solid transparent; + border-bottom: 3px solid transparent; + border-top: 3px solid #79A70A; +} + +.ribbon span::after { + content: ''; + position: absolute; + right: 0%; + top: 100%; + z-index: -1; + border-right: 3px solid #79A70A; + border-left: 3px solid transparent; + border-bottom: 3px solid transparent; + border-top: 3px solid #79A70A; +} + +.red span { + background: linear-gradient(#f70505 0%, #8f0808 100%); +} + +.red span::before { + border-left-color: #8f0808; + border-top-color: #8f0808; +} + +.red span::after { + border-right-color: #8f0808; + border-top-color: #8f0808; +} diff --git a/templates/default.html b/templates/default.html index 1707d9c..aa3f6a3 100644 --- a/templates/default.html +++ b/templates/default.html @@ -50,9 +50,9 @@ - +
ДЕМО
-
+