Skip to content

Instantly share code, notes, and snippets.

@amuhororo
Last active June 12, 2017 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amuhororo/1a89302319d0bf53b386bd8eeffe5d4b to your computer and use it in GitHub Desktop.
Save amuhororo/1a89302319d0bf53b386bd8eeffe5d4b to your computer and use it in GitHub Desktop.
Glink縦書き用CSS(横書き併用)
/*縦書き用*/
.vertical {
padding: 2em .5em 2em .5em;
-webkit-writing-mode: vertical-rl;
-ms-writing-mode: tb-rl;
writing-mode: vertical-rl;
text-shadow: -1px 0 1px rgba(0,0,0,.3);
-webkit-box-shadow: 1px 0 2px rgba(0,0,0,.2);
-moz-box-shadow:1px 0 1px 2px rgba(0,0,0,.2);
box-shadow: 1px 0 2px rgba(0,0,0,.2);
}
/* black */
.black.vertical {
background: -webkit-gradient(linear, left top, right top, from(#666), to(#000));
background: -moz-linear-gradient(left, #666, #000);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#666666', endColorstr='#000000');
}
.black.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#444), to(#000));
background: -moz-linear-gradient(left, #444, #000);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#444444', endColorstr='#000000');
}
.black.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#000), to(#444));
background: -moz-linear-gradient(left, #000, #444);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#000000', endColorstr='#666666');
}
/* gray */
.gray.vertical {
background: -webkit-gradient(linear, left top, right top, from(#888), to(#575757));
background: -moz-linear-gradient(leftp, #888, #575757);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#888888', endColorstr='#575757');
}
.gray.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#757575), to(#4b4b4b));
background: -moz-linear-gradient(left, #757575, #4b4b4b);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#757575', endColorstr='#4b4b4b');
}
.gray.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#575757), to(#888));
background: -moz-linear-gradient(left, #575757, #888);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#575757', endColorstr='#888888');
}
/* white */
.white.vertical {
background: -webkit-gradient(linear, left top, right top, from(#fff), to(#ededed));
background: -moz-linear-gradient(left, #fff, #ededed);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#ededed');
}
.white.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#fff), to(#dcdcdc));
background: -moz-linear-gradient(left, #fff, #dcdcdc);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#dcdcdc');
}
.white.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#ededed), to(#fff));
background: -moz-linear-gradient(left, #ededed, #fff);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ededed', endColorstr='#ffffff');
}
/* orange */
.orange.vertical {
background: -webkit-gradient(linear, left top, right top, from(#faa51a), to(#f47a20));
background: -moz-linear-gradient(left, #faa51a, #f47a20);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#faa51a', endColorstr='#f47a20');
}
.orange.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#f88e11), to(#f06015));
background: -moz-linear-gradient(left, #f88e11, #f06015);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#f88e11', endColorstr='#f06015');
}
.orange.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#f47a20), to(#faa51a));
background: -moz-linear-gradient(left, #f47a20, #faa51a);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#f47a20', endColorstr='#faa51a');
}
/* red */
.red.vertical {
background: -webkit-gradient(linear, left top, right top, from(#ed1c24), to(#aa1317));
background: -moz-linear-gradient(left, #ed1c24, #aa1317);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ed1c24', endColorstr='#aa1317');
}
.red.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#c9151b), to(#a11115));
background: -moz-linear-gradient(left, #c9151b, #a11115);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#c9151b', endColorstr='#a11115');
}
.red.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#aa1317), to(#ed1c24));
background: -moz-linear-gradient(left, #aa1317, #ed1c24);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#aa1317', endColorstr='#ed1c24');
}
/* blue */
.blue.vertical {
background: -webkit-gradient(linear, left top, right top, from(#00adee), to(#0078a5));
background: -moz-linear-gradient(left, #00adee, #0078a5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#00adee', endColorstr='#0078a5');
}
.blue.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#0095cc), to(#00678e));
background: -moz-linear-gradient(left, #0095cc, #00678e);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#0095cc', endColorstr='#00678e');
}
.blue.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#0078a5), to(#00adee));
background: -moz-linear-gradient(left, #0078a5, #00adee);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#0078a5', endColorstr='#00adee');
}
/* rosy */
.rosy.vertical {
background: -webkit-gradient(linear, left top, right top, from(#f16c7c), to(#bf404f));
background: -moz-linear-gradient(left, #f16c7c, #bf404f);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#f16c7c', endColorstr='#bf404f');
}
.rosy.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#cf5d6a), to(#a53845));
background: -moz-linear-gradient(left, #cf5d6a, #a53845);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#cf5d6a', endColorstr='#a53845');
}
.rosy.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#bf404f), to(#f16c7c));
background: -moz-linear-gradient(left, #bf404f, #f16c7c);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#bf404f', endColorstr='#f16c7c');
}
/* green */
.green.vertical {
background: -webkit-gradient(linear, left top, right top, from(#7db72f), to(#4e7d0e));
background: -moz-linear-gradient(left, #7db72f, #4e7d0e);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#7db72f', endColorstr='#4e7d0e');
}
.green.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#6b9d28), to(#436b0c));
background: -moz-linear-gradient(left, #6b9d28, #436b0c);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#6b9d28', endColorstr='#436b0c');
}
.green.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#4e7d0e), to(#7db72f));
background: -moz-linear-gradient(left, #4e7d0e, #7db72f);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#4e7d0e', endColorstr='#7db72f');
}
/* pink */
.pink.vertical {
background: -webkit-gradient(linear, left top, right top, from(#feb1d3), to(#f171ab));
background: -moz-linear-gradient(left, #feb1d3, #f171ab);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#feb1d3', endColorstr='#f171ab');
}
.pink.vertical:hover {
background: -webkit-gradient(linear, left top, right top, from(#f4aacb), to(#e86ca4));
background: -moz-linear-gradient(left, #f4aacb, #e86ca4);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#f4aacb', endColorstr='#e86ca4');
}
.pink.vertical:active {
background: -webkit-gradient(linear, left top, right top, from(#f171ab), to(#feb1d3));
background: -moz-linear-gradient(left, #f171ab, #feb1d3);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#f171ab', endColorstr='#feb1d3');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment