Compare commits

...

2 Commits

Author SHA1 Message Date
Arkadiusz Wieczorek
5e8d16661c Merge branch 'master' of git.internet-czas-dzialac.pl:icd/casper-modified-ghost-theme 2022-04-22 14:15:21 +02:00
Arkadiusz Wieczorek
1472eb5bf6 Fix links in dark mode 2022-04-22 14:12:45 +02:00
7 changed files with 7 additions and 8 deletions

View File

@ -1,2 +1,2 @@
!function(n){"use strict";n.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-container{flex-grow: 1;width:100%;}.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(r.childNodes[1])}return e&&n.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var t=n(this).find(e.join(","));(t=(t=t.not("object object")).not(r)).each(function(){var e=n(this);if(!(0<e.parents(r).length||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var t=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var i="fitvid"+n.fn.fitVids._count;e.attr("name",i),n.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-container"><div class="fluid-width-video-wrapper"></div></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*t+"%"),e.removeAttr("height").removeAttr("width")}})})},n.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){e.addEventListener("DOMContentLoaded",function(){e.querySelectorAll(".kg-gallery-image img").forEach(function(e){var t=e.closest(".kg-gallery-image"),i=e.attributes.width.value/e.attributes.height.value;t.style.flex=i+" 1 0%"})})}((window,document)),function(t,i){var r=i.querySelector("link[rel=next]");if(r){var n=i.querySelector(".post-feed");if(n){var o=300,s=!1,a=!1,d=t.scrollY,l=t.innerHeight,c=i.documentElement.scrollHeight;t.addEventListener("scroll",f,{passive:!0}),t.addEventListener("resize",v),h()}}function u(){if(404===this.status)return t.removeEventListener("scroll",f),void t.removeEventListener("resize",v);this.response.querySelectorAll(".post-card").forEach(function(e){n.appendChild(i.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?r.href=e.href:(t.removeEventListener("scroll",f),t.removeEventListener("resize",v)),c=i.documentElement.scrollHeight,a=s=!1}function e(){if(!a)if(d+l<=c-o)s=!1;else{a=!0;var e=new t.XMLHttpRequest;e.responseType="document",e.addEventListener("load",u),e.open("GET",r.href),e.send(null)}}function h(){s||t.requestAnimationFrame(e),s=!0}function f(){d=t.scrollY,h()}function v(){l=t.innerHeight,c=i.documentElement.scrollHeight,h()}}(window,document),function(s,a){s.Casper||(s.Casper={}),s.Casper.stickyNavTitle=function(e){var t=a.querySelector(e.navSelector),i=a.querySelector(e.titleSelector),r=s.scrollY,n=!1;function o(){i.getBoundingClientRect().top+s.scrollY+(i.offsetHeight+35)<=r?t.classList.add(e.activeClass):t.classList.remove(e.activeClass),n=!1}s.addEventListener("scroll",function(){r=s.scrollY,function(){n||requestAnimationFrame(o);n=!0}()},{passive:!0}),o()}}(window,document); !function(o){"use strict";o.fn.fitVids=function(e){var t,i,n={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-container{flex-grow: 1;width:100%;}.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(i.childNodes[1])),e&&o.extend(n,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var r=".fitvidsignore";n.ignore&&(r=r+", "+n.ignore);var e=o(this).find(e.join(","));(e=(e=e.not("object object")).not(r)).each(function(){var e,t,i=o(this);0<i.parents(r).length||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length||(i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16)),e=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10)),i.attr("name")||(t="fitvid"+o.fn.fitVids._count,i.attr("name",t),o.fn.fitVids._count++),i.wrap('<div class="fluid-width-video-container"><div class="fluid-width-video-wrapper"></div></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},o.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){e.addEventListener("DOMContentLoaded",function(){e.querySelectorAll(".kg-gallery-image img").forEach(function(e){var t=e.closest(".kg-gallery-image"),i=e.attributes.width.value,e=e.attributes.height.value;t.style.flex=i/e+" 1 0%"})})}((window,document)),function(t,i){var r,n,o,s,a,d,l,c=i.querySelector("link[rel=next]");function u(){if(404===this.status)return t.removeEventListener("scroll",f),void t.removeEventListener("resize",v);this.response.querySelectorAll(".post-card").forEach(function(e){r.appendChild(i.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?c.href=e.href:(t.removeEventListener("scroll",f),t.removeEventListener("resize",v)),l=i.documentElement.scrollHeight,s=o=!1}function e(){var e;s||(a+d<=l-n?o=!1:(s=!0,(e=new t.XMLHttpRequest).responseType="document",e.addEventListener("load",u),e.open("GET",c.href),e.send(null)))}function h(){o||t.requestAnimationFrame(e),o=!0}function f(){a=t.scrollY,h()}function v(){d=t.innerHeight,l=i.documentElement.scrollHeight,h()}!c||(r=i.querySelector(".post-feed"))&&(s=o=!(n=300),a=t.scrollY,d=t.innerHeight,l=i.documentElement.scrollHeight,t.addEventListener("scroll",f,{passive:!0}),t.addEventListener("resize",v),h())}(window,document),function(s,a){s.Casper||(s.Casper={}),s.Casper.stickyNavTitle=function(e){var t=a.querySelector(e.navSelector),i=a.querySelector(e.titleSelector),r=s.scrollY,n=!1;function o(){i.getBoundingClientRect().top+s.scrollY+(i.offsetHeight+35)<=r?t.classList.add(e.activeClass):t.classList.remove(e.activeClass),n=!1}s.addEventListener("scroll",function(){r=s.scrollY,function(){n||requestAnimationFrame(o);n=!0}()},{passive:!0}),o()}}(window,document);
//# sourceMappingURL=casper.js.map //# sourceMappingURL=casper.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
.isso-postbox>.form-wrapper>.auth-section .post-action>input:hover{background-color:#ddd}.isso-postbox>.form-wrapper>.auth-section .input-wrapper input{padding:.5rem;max-width:100%;border-radius:3px;background-color:#fff;line-height:1.4em;border:1px solid rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.1);margin-right:.5rem;color:#222}.isso-postbox .textarea{color:#222}.isso-postbox .preview{color:#000}.isso-comment>div.text-wrapper>.isso-comment-header .author{font-weight:700;color:#222}.isso-postbox>.form-wrapper>.auth-section .post-action>input{padding:.5rem 1rem!important;border-radius:2px;border:1px solid #ccc;background-color:#ddd;cursor:pointer;outline:0;line-height:1.4em;box-shadow:0 1px 2px rgba(0,0,0,.1);color:#222}#isso-thread>h4{color:var(--midgrey2)!important;font-weight:700}#isso-thread img{border-radius:50%}#isso-root .spacer,.isso-comment-footer *,.isso-comment-header *,.isso-comment .isso-comment-header .note,.isso-comment .isso-comment-header .spacer,.isso-comment .isso-comment-header a.parent,.isso-comment .isso-comment-header a.permalink,.isso-comment>div.text-wrapper>.isso-comment-header .spacer{color:var(--midgrey2)!important}@media (prefers-color-scheme:dark){:target{color:#000!important}a:target:hover{color:#15171a!important}#isso-root .spacer,#isso-thread>h4,.isso-comment-footer *,.isso-comment-header *,.isso-comment .isso-comment-header .note,.isso-comment .isso-comment-header .spacer,.isso-comment .isso-comment-header a.parent,.isso-comment .isso-comment-header a.permalink,.isso-comment>div.text-wrapper>.isso-comment-header .spacer{color:var(--whitegrey)!important}#isso-root a{color:var(--whitegrey)}#isso-root a:hover,.isso-comment>div.text-wrapper>.isso-comment-footer a:hover,.isso-feedlink:hover{color:#fff;text-decoration:underline}} .isso-postbox>.form-wrapper>.auth-section .post-action>input:hover{background-color:#ddd}.isso-postbox>.form-wrapper>.auth-section .input-wrapper input{padding:.5rem;max-width:100%;border-radius:3px;background-color:#fff;line-height:1.4em;border:1px solid rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.1);margin-right:.5rem;color:#222}.isso-postbox .textarea{color:#222}.isso-postbox .preview{color:#000}.isso-comment>div.text-wrapper>.isso-comment-header .author{font-weight:700;color:#222}.isso-postbox>.form-wrapper>.auth-section .post-action>input{padding:.5rem 1rem!important;border-radius:2px;border:1px solid #ccc;background-color:#ddd;cursor:pointer;outline:0;line-height:1.4em;box-shadow:0 1px 2px rgba(0,0,0,.1);color:#222}#isso-thread>h4{color:var(--midgrey2)!important;font-weight:700}#isso-thread img{border-radius:50%}#isso-root .spacer,.isso-comment-footer *,.isso-comment-header *,.isso-comment .isso-comment-header .note,.isso-comment .isso-comment-header .spacer,.isso-comment .isso-comment-header a.parent,.isso-comment .isso-comment-header a.permalink,.isso-comment>div.text-wrapper>.isso-comment-header .spacer{color:var(--midgrey2)!important}@media (prefers-color-scheme:dark){:target{color:#000!important}a:target:hover{color:#15171a!important}#isso-root .spacer,#isso-thread>h4,.isso-comment-footer *,.isso-comment-header *,.isso-comment .isso-comment-header .note,.isso-comment .isso-comment-header .spacer,.isso-comment .isso-comment-header a.parent,.isso-comment .isso-comment-header a.permalink,.isso-comment>div.text-wrapper>.isso-comment-header .spacer{color:var(--whitegrey)!important}#isso-root a:hover,.isso-comment>div.text-wrapper>.isso-comment-footer a:hover,.isso-feedlink:hover{text-decoration:underline}}
/*# sourceMappingURL=isso.css.map */ /*# sourceMappingURL=isso.css.map */

View File

@ -1 +1 @@
{"version":3,"sources":["isso.css"],"names":[],"mappings":"AAAA,mEACI,qBACJ,CAEA,+DACI,aAAe,CACf,cAAe,CACf,iBAAkB,CAClB,qBAAsB,CACtB,iBAAkB,CAClB,+BAAoC,CACpC,mCAAwC,CACxC,kBAAoB,CACpB,UACJ,CAEA,wBACI,UACJ,CAEA,uBACI,UACJ,CAEA,4DACI,eAAiB,CACjB,UACJ,CAEA,6DACI,4BAA+B,CAC/B,iBAAkB,CAClB,qBAAsB,CACtB,qBAAsB,CACtB,cAAe,CACf,SAAU,CACV,iBAAkB,CAClB,mCAAwC,CACxC,UACJ,CAEA,gBACI,+BAAiC,CACjC,eACJ,CAEA,iBACI,iBACJ,CAEA,4SAQI,+BACJ,CAEA,mCACI,QACI,oBACJ,CAEA,eACI,uBACJ,CAEA,4TASI,gCACJ,CAEA,aACI,sBACJ,CAEA,oGAGI,UAAW,CACX,yBACJ,CACJ","file":"isso.css","sourcesContent":[".isso-postbox > .form-wrapper > .auth-section .post-action > input:hover {\n background-color: #ddd;\n}\n\n.isso-postbox > .form-wrapper > .auth-section .input-wrapper input {\n padding: 0.5rem;\n max-width: 100%;\n border-radius: 3px;\n background-color: #fff;\n line-height: 1.4em;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n margin-right: 0.5rem;\n color: #222;\n}\n\n.isso-postbox .textarea {\n color: #222;\n}\n\n.isso-postbox .preview {\n color: #000;\n}\n\n.isso-comment > div.text-wrapper > .isso-comment-header .author {\n font-weight: bold;\n color: #222;\n}\n\n.isso-postbox > .form-wrapper > .auth-section .post-action > input {\n padding: 0.5rem 1rem !important;\n border-radius: 2px;\n border: 1px solid #ccc;\n background-color: #ddd;\n cursor: pointer;\n outline: 0;\n line-height: 1.4em;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n color: #222;\n}\n\n#isso-thread > h4 {\n color: var(--midgrey2) !important;\n font-weight: bold;\n}\n\n#isso-thread img {\n border-radius: 50%;\n}\n\n#isso-root .spacer,\n.isso-comment-header *,\n.isso-comment-footer *,\n.isso-comment .isso-comment-header .spacer,\n.isso-comment .isso-comment-header a.permalink,\n.isso-comment .isso-comment-header .note,\n.isso-comment .isso-comment-header a.parent,\n.isso-comment > div.text-wrapper > .isso-comment-header .spacer {\n color: var(--midgrey2) !important;\n}\n\n@media (prefers-color-scheme: dark) {\n *:target {\n color: #000 !important;\n }\n\n a:target:hover {\n color: #15171a !important;\n }\n\n #isso-root .spacer,\n .isso-comment .isso-comment-header .spacer,\n .isso-comment .isso-comment-header a.permalink,\n .isso-comment .isso-comment-header .note,\n .isso-comment .isso-comment-header a.parent,\n .isso-comment > div.text-wrapper > .isso-comment-header .spacer,\n .isso-comment-header *,\n .isso-comment-footer *,\n #isso-thread > h4 {\n color: var(--whitegrey) !important;\n }\n\n #isso-root a {\n color: var(--whitegrey);\n }\n\n .isso-feedlink:hover,\n .isso-comment > div.text-wrapper > .isso-comment-footer a:hover,\n #isso-root a:hover {\n color: #fff;\n text-decoration: underline;\n }\n}\n"]} {"version":3,"sources":["isso.css"],"names":[],"mappings":"AAAA,mEACI,qBACJ,CAEA,+DACI,aAAe,CACf,cAAe,CACf,iBAAkB,CAClB,qBAAsB,CACtB,iBAAkB,CAClB,+BAAoC,CACpC,mCAAwC,CACxC,kBAAoB,CACpB,UACJ,CAEA,wBACI,UACJ,CAEA,uBACI,UACJ,CAEA,4DACI,eAAiB,CACjB,UACJ,CAEA,6DACI,4BAA+B,CAC/B,iBAAkB,CAClB,qBAAsB,CACtB,qBAAsB,CACtB,cAAe,CACf,SAAU,CACV,iBAAkB,CAClB,mCAAwC,CACxC,UACJ,CAEA,gBACI,+BAAiC,CACjC,eACJ,CAEA,iBACI,iBACJ,CAEA,4SAQI,+BACJ,CAEA,mCACI,QACI,oBACJ,CAEA,eACI,uBACJ,CAEA,4TASI,gCACJ,CAMA,oGAGI,yBACJ,CACJ","file":"isso.css","sourcesContent":[".isso-postbox > .form-wrapper > .auth-section .post-action > input:hover {\n background-color: #ddd;\n}\n\n.isso-postbox > .form-wrapper > .auth-section .input-wrapper input {\n padding: 0.5rem;\n max-width: 100%;\n border-radius: 3px;\n background-color: #fff;\n line-height: 1.4em;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n margin-right: 0.5rem;\n color: #222;\n}\n\n.isso-postbox .textarea {\n color: #222;\n}\n\n.isso-postbox .preview {\n color: #000;\n}\n\n.isso-comment > div.text-wrapper > .isso-comment-header .author {\n font-weight: bold;\n color: #222;\n}\n\n.isso-postbox > .form-wrapper > .auth-section .post-action > input {\n padding: 0.5rem 1rem !important;\n border-radius: 2px;\n border: 1px solid #ccc;\n background-color: #ddd;\n cursor: pointer;\n outline: 0;\n line-height: 1.4em;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n color: #222;\n}\n\n#isso-thread > h4 {\n color: var(--midgrey2) !important;\n font-weight: bold;\n}\n\n#isso-thread img {\n border-radius: 50%;\n}\n\n#isso-root .spacer,\n.isso-comment-header *,\n.isso-comment-footer *,\n.isso-comment .isso-comment-header .spacer,\n.isso-comment .isso-comment-header a.permalink,\n.isso-comment .isso-comment-header .note,\n.isso-comment .isso-comment-header a.parent,\n.isso-comment > div.text-wrapper > .isso-comment-header .spacer {\n color: var(--midgrey2) !important;\n}\n\n@media (prefers-color-scheme: dark) {\n *:target {\n color: #000 !important;\n }\n\n a:target:hover {\n color: #15171a !important;\n }\n\n #isso-root .spacer,\n .isso-comment .isso-comment-header .spacer,\n .isso-comment .isso-comment-header a.permalink,\n .isso-comment .isso-comment-header .note,\n .isso-comment .isso-comment-header a.parent,\n .isso-comment > div.text-wrapper > .isso-comment-header .spacer,\n .isso-comment-header *,\n .isso-comment-footer *,\n #isso-thread > h4 {\n color: var(--whitegrey) !important;\n }\n\n #isso-root a {\n /* color: var(--whitegrey); */\n }\n\n .isso-feedlink:hover,\n .isso-comment > div.text-wrapper > .isso-comment-footer a:hover,\n #isso-root a:hover {\n text-decoration: underline;\n }\n}\n"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -81,13 +81,12 @@
} }
#isso-root a { #isso-root a {
color: var(--whitegrey); /* color: var(--whitegrey); */
} }
.isso-feedlink:hover, .isso-feedlink:hover,
.isso-comment > div.text-wrapper > .isso-comment-footer a:hover, .isso-comment > div.text-wrapper > .isso-comment-footer a:hover,
#isso-root a:hover { #isso-root a:hover {
color: #fff;
text-decoration: underline; text-decoration: underline;
} }
} }