This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
143 additions
and
2,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,128 @@ | ||
@charset "UTF-8"; | ||
/*! | ||
* Cookie Bar component (https://github.com/kovarp/jquery.cookieBar) | ||
* Version 1.1.1 | ||
* Version 1.1.2 | ||
* | ||
* Copyright 2018 Pavel Kovář - Frontend developer [www.pavelkovar.cz] | ||
* Licensed under MIT (https://github.com/kovarp/jquery.cookieBar/blob/master/LICENSE) | ||
*/.cookie-bar__inner{background-color:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:.875rem;padding:.375rem .5rem;text-align:center}@media (min-width: 48rem){.cookie-bar__inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}}.cookie-bar__buttons{display:block;margin-top:.375rem}@media (min-width: 48rem){.cookie-bar__buttons{display:inline;margin-top:0}}.cookie-bar__btn{background-color:#0275d8;color:#fff;border:none;margin:0 .875rem;padding:.125rem .875rem;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer}.cookie-bar__btn:hover{background-color:#0267bf}.cookie-bar__btn:active{background-color:#0262b5}.cookie-bar a{color:#fff;text-decoration:underline}.cookie-bar a:hover{text-decoration:none}.cookie-bar--bottom-left,.cookie-bar--bottom-right,.cookie-bar--bottom{z-index:100;position:fixed}.cookie-bar--bottom{right:0;bottom:0;left:0}.cookie-bar--bottom-left{left:.9375rem}.cookie-bar--bottom-right{right:.9375rem}.cookie-bar--bottom-right,.cookie-bar--bottom-left{bottom:.9375rem}@media (min-width: 48rem){.cookie-bar--bottom-right,.cookie-bar--bottom-left{width:22.5rem}}@media (min-width: 48rem){.cookie-bar--bottom-right .cookie-bar__inner,.cookie-bar--bottom-left .cookie-bar__inner,.cookie-bar--bottom-right .cookie-bar__buttons,.cookie-bar--bottom-left .cookie-bar__buttons{display:block}}@media (min-width: 48rem){.cookie-bar--bottom-right .cookie-bar__buttons,.cookie-bar--bottom-left .cookie-bar__buttons{margin-top:.375rem}}.cookie-bar--bottom-right .cookie-bar__inner,.cookie-bar--bottom-left .cookie-bar__inner{line-height:1.3} | ||
*/ | ||
/* Settings */ | ||
/* Cookie Bar styles */ | ||
.cookie-bar__inner { | ||
background-color: #000; | ||
color: #fff; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | ||
font-size: .875rem; | ||
padding: .375rem .5rem; | ||
text-align: center; | ||
} | ||
|
||
@media (min-width: 48rem) { | ||
.cookie-bar__inner { | ||
display: -webkit-box; | ||
display: -ms-flexbox; | ||
display: flex; | ||
-webkit-box-pack: center; | ||
-ms-flex-pack: center; | ||
justify-content: center; | ||
-webkit-box-align: center; | ||
-ms-flex-align: center; | ||
align-items: center; | ||
} | ||
} | ||
|
||
.cookie-bar__buttons { | ||
display: block; | ||
margin-top: .375rem; | ||
} | ||
|
||
@media (min-width: 48rem) { | ||
.cookie-bar__buttons { | ||
display: inline; | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
.cookie-bar__btn { | ||
background-color: #0275d8; | ||
color: #fff; | ||
border: none; | ||
margin: 0 .875rem; | ||
padding: .125rem .875rem; | ||
-webkit-transition: background-color .3s; | ||
-o-transition: background-color .3s; | ||
transition: background-color .3s; | ||
cursor: pointer; | ||
} | ||
|
||
.cookie-bar__btn:hover { | ||
background-color: #0267bf; | ||
} | ||
|
||
.cookie-bar__btn:active { | ||
background-color: #0262b5; | ||
} | ||
|
||
.cookie-bar a { | ||
color: #fff; | ||
text-decoration: underline; | ||
} | ||
|
||
.cookie-bar a:hover { | ||
text-decoration: none; | ||
} | ||
|
||
/* Cookie Bar layouts */ | ||
.cookie-bar--bottom-left, | ||
.cookie-bar--bottom-right, | ||
.cookie-bar--bottom { | ||
z-index: 100; | ||
position: fixed; | ||
} | ||
|
||
.cookie-bar--bottom { | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
} | ||
|
||
.cookie-bar--bottom-left { | ||
left: 0.9375rem; | ||
} | ||
|
||
.cookie-bar--bottom-right { | ||
right: 0.9375rem; | ||
} | ||
|
||
.cookie-bar--bottom-right, | ||
.cookie-bar--bottom-left { | ||
bottom: 0.9375rem; | ||
} | ||
|
||
@media (min-width: 48rem) { | ||
.cookie-bar--bottom-right, | ||
.cookie-bar--bottom-left { | ||
width: 22.5rem; | ||
} | ||
} | ||
|
||
@media (min-width: 48rem) { | ||
.cookie-bar--bottom-right .cookie-bar__inner, | ||
.cookie-bar--bottom-left .cookie-bar__inner, | ||
.cookie-bar--bottom-right .cookie-bar__buttons, | ||
.cookie-bar--bottom-left .cookie-bar__buttons { | ||
display: block; | ||
} | ||
} | ||
|
||
@media (min-width: 48rem) { | ||
.cookie-bar--bottom-right .cookie-bar__buttons, | ||
.cookie-bar--bottom-left .cookie-bar__buttons { | ||
margin-top: .375rem; | ||
} | ||
} | ||
|
||
.cookie-bar--bottom-right .cookie-bar__inner, | ||
.cookie-bar--bottom-left .cookie-bar__inner { | ||
line-height: 1.3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.