diff --git a/css/rrssb.css b/css/rrssb.css index b583e67..d0fd69f 100755 --- a/css/rrssb.css +++ b/css/rrssb.css @@ -1,3 +1,3 @@ -.rrssb{font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold}.rrssb .rrssb-buttons{box-sizing:border-box;display:inline-block;margin:0.15em 0;padding:0;width:100%}.rrssb li{box-sizing:border-box;display:inline-block;padding:0.15em}.rrssb a{background-color:#ccc;border-radius:0.2em;box-sizing:border-box;display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:100%;position:relative;text-align:center;text-decoration:none;text-transform:uppercase;-webkit-transition:background-color 0.2s ease-in-out;transition:background-color 0.2s ease-in-out;width:100%}.rrssb a:active{box-shadow:inset 1px 3px 15px 0 rgba(22,0,0,0.25)}.rrssb .rrssb-icon{display:block;box-sizing:border-box;left:0.5em;position:absolute;top:15%;height:70%;width:1.75em}.rrssb .rrssb-text{color:#fff;padding:0 1em 0 2.75em;line-height:2.5em}.rrssb .rrssb-prefix{padding-right:0.6em}.rrssb.no-label a{width:2.5em;height:2.5em}.rrssb.no-label .rrssb-icon{position:relative;left:15%}.rrssb.no-label .rrssb-text{display:none} +.rrssb{font-size:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold}.rrssb .rrssb-buttons{box-sizing:border-box;display:inline-block;margin:.15em 0;padding:0;width:100%}.rrssb li{box-sizing:border-box;display:inline-block;padding:.15em}.rrssb a{background-color:#ccc;border-radius:.2em;box-sizing:border-box;display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:100%;position:relative;text-align:center;text-decoration:none;text-transform:uppercase;transition:background-color 0.2s ease-in-out;width:100%}.rrssb a:active{box-shadow:inset 1px 3px 15px 0 rgba(22,0,0,0.25)}.rrssb .rrssb-icon{display:block;box-sizing:border-box;left:0.5em;position:absolute;top:15%;height:70%;width:1.75em}.rrssb .rrssb-text{color:#fff;padding:0 1em 0 2.75em;line-height:2.5em}.rrssb .rrssb-prefix{padding-right:0.6em}.rrssb.no-label a{width:2.5em;height:2.5em}.rrssb.no-label .rrssb-icon{position:relative;left:15%}.rrssb.no-label .rrssb-text{position:absolute !important;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;word-wrap:normal} /*# sourceMappingURL=rrssb.css.map */ \ No newline at end of file diff --git a/css/rrssb.css.map b/css/rrssb.css.map index 440e78a..4b3a327 100644 --- a/css/rrssb.css.map +++ b/css/rrssb.css.map @@ -1,7 +1,9 @@ -{ -"version": 3, -"mappings": "AAkBA,MAAO,CACL,SAAS,CAZO,IAAI,CAapB,WAAW,CANK,2CAAgB,CAOhC,WAAW,CAAE,IAAI,CAEjB,qBAAe,CACb,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,QAAgB,CACxB,OAAO,CAAE,CAAC,CACV,KAAK,CAAE,IAAI,CAGb,SAAG,CACD,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,YAAY,CACrB,OAAO,CAtBK,MAAM,CAyBpB,QAAE,CACA,gBAAgB,CAAE,IAAI,CACtB,aAAa,CAlCK,KAAK,CAmCvB,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,KAAK,CAEd,uBAAuB,CAAE,SAAS,CAClC,sBAAsB,CAAE,WAAW,CACnC,MAAM,CAAE,IAAI,CACZ,QAAQ,CAAE,QAAQ,CAClB,UAAU,CAAE,MAAM,CAClB,eAAe,CAAE,IAAI,CACrB,cAAc,CAAE,SAAS,CACzB,UAAU,CAAE,iCAAiC,CAC7C,KAAK,CAAE,IAAI,CAEX,eAAS,CACP,UAAU,CAAE,sCAAwC,CAIxD,kBAAY,CACV,OAAO,CAAE,KAAK,CACd,UAAU,CAAE,UAAU,CACtB,IAAI,CAAE,KAAK,CACX,QAAQ,CAAE,QAAQ,CAGlB,GAAG,CAjDS,GAA2B,CAkDvC,MAAM,CAvDS,GAAG,CAyDlB,KAAK,CAAE,MAA+C,CAGxD,kBAAY,CACV,KAAK,CArEW,IAAI,CAwEpB,OAAO,CAAE,cAA6D,CAItE,WAAW,CAtEO,KAAK,CAyEzB,oBAAc,CACZ,aAAa,CAAE,KAAK,CAKpB,iBAAE,CAGA,KAAK,CAlFW,KAAK,CAmFrB,MAAM,CAnFU,KAAK,CAsFvB,2BAAY,CACV,QAAQ,CAAE,QAAQ,CAClB,IAAI,CAjFM,GAA2B,CAoFvC,2BAAY,CACV,OAAO,CAAE,IAAI", -"sources": ["../scss/rrssb.scss"], -"names": [], -"file": "rrssb.css" -} +{ + "version": 3, + "file": "rrssb.css", + "sources": [ + "../scss/rrssb.scss" + ], + "names": [], + "mappings": "AAkBA,AAAA,MAAM,AAAC,CACL,SAAS,CAZO,IAAI,CAapB,WAAW,CANK,gBAAgB,CAAE,SAAS,CAAE,KAAK,CAAE,UAAU,CAO9D,WAAW,CAAE,IAAI,CAyFlB,AA5FD,AAKE,MALI,CAKJ,cAAc,AAAC,CACb,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,YAAY,CACrB,MAAM,CAdM,KAAM,CAcK,CAAC,CACxB,OAAO,CAAE,CAAC,CACV,KAAK,CAAE,IAAI,CACZ,AAXH,AAaE,MAbI,CAaJ,EAAE,AAAC,CACD,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,YAAY,CACrB,OAAO,CAtBK,KAAM,CAuBnB,AAjBH,AAmBE,MAnBI,CAmBJ,CAAC,AAAC,CACA,gBAAgB,CAAE,IAAI,CACtB,aAAa,CAlCK,IAAK,CAmCvB,UAAU,CAAE,UAAU,CACtB,OAAO,CAAE,KAAK,CAEd,uBAAuB,CAAE,SAAS,CAClC,sBAAsB,CAAE,WAAW,CACnC,MAAM,CAAE,IAAI,CACZ,QAAQ,CAAE,QAAQ,CAClB,UAAU,CAAE,MAAM,CAClB,eAAe,CAAE,IAAI,CACrB,cAAc,CAAE,SAAS,CACzB,UAAU,CAAE,iCAAiC,CAC7C,KAAK,CAAE,IAAI,CAKZ,AAtCH,AAmCI,MAnCE,CAmBJ,CAAC,AAgBE,OAAO,AAAC,CACP,UAAU,CAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAmB,CACrD,AArCL,AAwCE,MAxCI,CAwCJ,WAAW,AAAC,CACV,OAAO,CAAE,KAAK,CACd,UAAU,CAAE,UAAU,CACtB,IAAI,CAAE,KAAK,CACX,QAAQ,CAAE,QAAQ,CAGlB,GAAG,CAjDQ,GAA4B,CAkDvC,MAAM,CAvDS,GAAG,CAyDlB,KAAK,CAAE,MAA+C,CACvD,AAnDH,AAqDE,MArDI,CAqDJ,WAAW,AAAC,CACV,KAAK,CArEW,IAAI,CAwEpB,OAAO,CAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAqD,CAItE,WAAW,CAtEO,KAAK,CAuExB,AA9DH,AAgEE,MAhEI,CAgEJ,aAAa,AAAC,CACZ,aAAa,CAAE,KAAK,CACrB,AAlEH,AAsEI,MAtEE,AAoEH,SAAS,CAER,CAAC,AAAC,CAGA,KAAK,CAlFW,KAAK,CAmFrB,MAAM,CAnFU,KAAK,CAoFtB,AA3EL,AA6EI,MA7EE,AAoEH,SAAS,CASR,WAAW,AAAC,CACV,QAAQ,CAAE,QAAQ,CAClB,IAAI,CAjFK,GAA4B,CAkFtC,AAhFL,AAkFI,MAlFE,AAoEH,SAAS,CAcR,WAAW,AAAC,CAEV,QAAQ,CAAE,mBAAmB,CAC7B,QAAQ,CAAE,MAAM,CAChB,IAAI,CAAE,wBAAwB,CAC9B,KAAK,CAAE,GAAG,CACV,MAAM,CAAE,GAAG,CACX,SAAS,CAAE,MAAM,CAClB" +} \ No newline at end of file diff --git a/scss/rrssb.scss b/scss/rrssb.scss index de2cf01..e6bebae 100755 --- a/scss/rrssb.scss +++ b/scss/rrssb.scss @@ -1,4 +1,7 @@ // Ridiculously Responsive Social Sharing Buttons Plus +// +// Compile command: +// node-sass --output-style compressed --source-map true scss/rrssb.scss css/rrssb.css // Button text colour $rrssb-txt: #fff !default; @@ -99,7 +102,13 @@ $rrssb-border: (100% - $rrssb-icon-ratio)/2; } .rrssb-text { - display: none; + // Copied from Drupal .visually-hidden class. + position: absolute !important; + overflow: hidden; + clip: rect(1px, 1px, 1px, 1px); + width: 1px; + height: 1px; + word-wrap: normal; } } }