Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css fixes #65

Merged
merged 2 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 17 additions & 19 deletions assets/css/atcb.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add-to-Calendar Button
* ++++++++++++++++++++++
*
* Version: 1.8.7
* Version: 1.8.8
* Creator: Jens Kuerschner (https://jenskuerschner.de)
* Project: https://github.com/jekuer/add-to-calendar-button
* License: MIT with “Commons Clause” License Condition v1.0
Expand All @@ -25,7 +25,6 @@
background: rgb(245, 245, 245);
border: 1px solid rgb(210, 210, 210);
border-radius: 6px;
-webkit-box-shadow: 1px 2px 10px 0px rgba(0,0,0,.4);
box-shadow: 1px 2px 10px 0px rgba(0,0,0,.4);
color: rgb(51, 51, 51);
cursor: pointer;
Expand All @@ -34,17 +33,14 @@
font-size: 16px;
font-weight: 600;
line-height: 24px;
margin: 0 4px 2px 4px;
margin: 0 2px;
max-width: 300px;
min-width: 150px;
padding: 10px 16px;
position: relative;
text-align: center;
touch-action: manipulation;
transform: translateZ(0px);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
touch-action: manipulation;
transform: translate3d(0,0,-12px);
user-select: none;
-webkit-tap-highlight-color: transparent;
width: auto;
Expand All @@ -54,6 +50,9 @@
.atcb_button:hover {
background: rgb(255, 255, 255);
}
.atcb_button:focus-visible {
outline: 2px solid dodgerblue;
}
@media only screen and (max-width: 575px) {
.atcb_button {
font-size: 14px;
Expand All @@ -62,12 +61,11 @@

.atcb_button.atcb_active {
background: rgb(255, 255, 255);
-webkit-box-shadow: 1px 8px 12px 0px rgba(0,0,0,.5);
box-shadow: 1px 8px 12px 0px rgba(0,0,0,.5);
margin: 0;
padding: 10px 20px 12px 20px;
transform: perspective(100px) rotateX(12deg) translateZ(1px);
transition: margin .1s ease-out, padding .1s ease-out, transform .1s ease-out;
padding: 10px 18px;
transform: perspective(100px) rotateX(12deg) translate3d(0,0,2px);
transition: margin .15s ease-out, padding .15s ease-out, transform .1s ease-out;
z-index: 160;
}

Expand All @@ -91,10 +89,7 @@
max-width: 100%;
padding: 0 4px;
position: absolute;
transform: translateZ(0px);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
transform: translate3d(0,0,0);
user-select: none;
width: 100%;
min-width: 10em;
Expand Down Expand Up @@ -131,7 +126,6 @@
align-items: center;
background: rgb(245, 245, 245);
border: 1px solid rgb(210, 210, 210);
-webkit-box-shadow: 1px 2px 8px 0px rgba(0,0,0,.3);
box-shadow: 1px 2px 8px 0px rgba(0,0,0,.3);
box-sizing: border-box;
cursor: pointer;
Expand All @@ -149,10 +143,14 @@
.atcb_list_item:focus,
.atcb_list_item:hover {
background: rgb(255, 255, 255);
-webkit-box-shadow: 1px 2px 10px 0px rgba(0,0,0,.4);
box-shadow: 1px 2px 10px 0px rgba(0,0,0,.4);
color: rgb(0, 0, 0);
}
.atcb_list_item:focus-visible {
color: dodgerblue;
font-weight: 600;
outline: none;
}
@media only screen and (max-width: 575px) {
.atcb_list_item {
font-size: 14px;
Expand Down Expand Up @@ -188,7 +186,7 @@
position: fixed;
right: 0;
top: 0;
transform: translateZ(-10px);
transform: translate3d(0,0,-10px);
width: 100%;
z-index: 120;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/atcb.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/atcb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add-to-Calendar Button
* ++++++++++++++++++++++
*/
const atcbVersion = '1.8.7';
const atcbVersion = '1.8.8';
/* Creator: Jens Kuerschner (https://jenskuerschner.de)
* Project: https://github.com/jekuer/add-to-calendar-button
* License: MIT with “Commons Clause” License Condition v1.0
Expand Down
2 changes: 1 addition & 1 deletion assets/js/atcb.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@
</style>

<!-- load the general button css -->
<link rel="stylesheet" href="./assets/css/atcb.min.css?v=1.8.7">
<link rel="stylesheet" href="./assets/css/atcb.min.css?v=1.8.8">

</head>
<body>
<div class="container">

<h1>Add-to-Calendar Button <span id="tinyVersion">v1.8.7</span></h1>
<h1>Add-to-Calendar Button <span id="tinyVersion">v1.8.8</span></h1>
<h2>A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.</h2>
<p class="github">
<a target="_blank" href="https://github.com/jekuer/add-to-calendar-button" class="clean">
Expand Down Expand Up @@ -658,7 +658,7 @@ <h3>Example 9: Bring-Your-Own Anything</h3>


<!-- load the button js -->
<script type="application/javascript" src="./assets/js/atcb.min.js?v=1.8.7" defer></script>
<script type="application/javascript" src="./assets/js/atcb.min.js?v=1.8.8" defer></script>

</body>
</html>
2 changes: 1 addition & 1 deletion npm_dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm_dist/mjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "add-to-calendar-button",
"version": "1.8.7",
"version": "1.8.8",
"description": "A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.",
"main": "npm_dist/cjs/index.js",
"module": "npm_dist/mjs/index.js",
Expand Down