Skip to content

Instantly share code, notes, and snippets.

@hozumi
Created January 25, 2013 07:57
Show Gist options
  • Save hozumi/4632625 to your computer and use it in GitHub Desktop.
Save hozumi/4632625 to your computer and use it in GitHub Desktop.
a:link { color:#111; text-decoration:none; }
a { color:#111; text-decoration:none; }
a:visited { color:#828282; text-decoration:none; }
@basic-background-color: #fdfdfd;
@basic-font-color: black;
@subtext-font-color: #828282;
@default-font-family: "メイリオ",Meiryo,"Meiryo UI","Segoe UI","ヒラギノ丸ゴ Pro W4",HiraMaruPro-W4,"Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"MS Pゴシック","MS PGothic",Merriweather,Verdana,Helvetica,Arial,Sans-Serif;
body {
font-family: @default-font-family;
font-size: 13px;
color: @basic-font-color;
//background-color: #afbcc8;
//background-image: -webkit-gradient(linear, left top, left bottom, from(#dde4ea), color-stop(100%, #afbcc8));
//background-image: -moz-linear-gradient(90deg, #afbcc8 0%, #dde4ea);
background: @basic-background-color;
}
input[type="text"], textarea, .tb-alert{
margin-bottom: 2px;
}
pre {
background-color: transparent;
border: none;
word-break: normal;
}
.subhead {
font-size: 14px;
color: #777;
margin-left: 5px;
}
.note {
color: @subtext-font-color;
font-size: 10px;
}
// prevent loader move
.tb-btn:hover {
background-position: right center;
}
.loader {
background-position: right center;
background-repeat: no-repeat;
background-image: url('/img/loader.gif');
}
.thumbnails {
list-style-type: none;
margin-left: 0px;
}
.thumbnail {
float: left;
margin: 1px;
cursor: pointer;
width: 102px;
img {
border-radius: 3px;
}
}
// for small window display, such as smartphone.
div {
//border: 1px solid black;
//background-color: rgba(100,100,100,0.1);
//http://depthcode.com/2011/03/wrapping-long-url.html
white-space: pre; // CSS 2.0
white-space: pre-wrap; // CSS 2.1
white-space: pre-line; // CSS 3.0
white-space: -pre-wrap; // Opera 4-6
white-space: -o-pre-wrap; // Opera 7
white-space: -moz-pre-wrap; // Mozilla
white-space: -hp-pre-wrap; // HP Printers
word-wrap: break-word; // IE 5+
}
.nodisplay {
display: none;
}
.myclearfix {width:100%;}
.myclearfix:after{
content: "";
display: block;
clear: both;
}
.tb-breadcrumb {
margin: 0px;
border-radius: 0px;
}
.main-btn {
color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
border-color: #74BB5A;
border-bottom-color: #509338;
background-position: right center;
background: #8ADD6D;
background: -moz-linear-gradient(#8ADD6D, #60B044);
background: -webkit-linear-gradient(#8ADD6D, #60B044);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#8add6d', endColorstr='#60b044')";
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.main-btn:hover {
background-position: right center;
background: #69d344;
background: -moz-linear-gradient(#69d344, #4c8b36);
background: -webkit-linear-gradient(#69d344, #4c8b36);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#69d344', endColorstr='#4c8b36')";
border-color:#4a993e;
color:#fff
}
.main-btn:active {
background-position: right center;
background-color:#569e3d;
border-color:#418737;
}
.main-btn.loader-white {
background-position: right center;
background-repeat: no-repeat;
background-color: #50b034;
background-image: url('/img/loader-white.gif');
}
.mini-btn {
padding: 3px 10px;
font-size: 12px;
font-weight: bold;
color: white;
text-shadow: -1px -1px 0 #333;
border-radius: 3px;
background-color: #3F3F3F;
background-image: -moz-linear-gradient(#909090, #3F3F3F);
background-image: -webkit-linear-gradient(#909090, #3F3F3F);
background-image: linear-gradient(#909090, #3F3F3F);
background-repeat: repeat-x;
}
.mini-btn:hover {
border-color:#585858;
background-color:#545454;
background-image:-moz-linear-gradient(#737373, #545454);
background-image:-webkit-linear-gradient(#737373, #545454);
background-image:linear-gradient(#737373, #545454);
background-repeat:repeat-x;
}
.mini-btn:active {
background-color:#545454;
background-image:none;
border-color:#474747;
box-shadow:inset 0 3px 5px rgba(0,0,0,0.15);
}
.icon0 { background-color: #DC4945; }
.icon1 { background-color: #3893C8; }
.icon2 { background-color: #F47F05; }
.icon3 { background-color: #8DB626; }
.icon4 { background-color: #AE87C4; }
.icon5 { background-color: #7AC4A0; }
.icon6 { background-color: #D3A10C; }
.icon7 { background-color: #DC4945; }
.icon8 { background-color: #3893C8; }
.icon9 { background-color: #CF3B19; }
.icon10 { background-color: #313E94; }
.icon11 { background-color: F6C00A; }
.icon12 { background-color: F8E088; }
.icon13 { background-color: #C6E79A; }
.icon14 { background-color: #FFBDAD; }
@nav-height: 25px;
.logo {
float:left;
a {
padding: 2px 10px;
display: block;
font-family: Verdana;
font-weight: bold;
font-size: 15px;
color: #111;
text-shadow: 0 1px 0 rgba(255,255,255,0.9),0 0 8px rgba(50,50,50,0.1);
}
}
.logo:hover {
a {
color: #4183C4;
text-shadow: 0 1px 0 rgba(255,255,255,0.9),0 0 8px rgba(10,10,70,0.2);
}
}
.nav {
position: relative;
height: @nav-height;
width: 100%;
//background-color: #ddd;//rgba(10, 0, 0, 0.99);
background: #FAFAFA;
//filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#fafafa',endColorstr='#eaeaea');
background: -webkit-gradient(linear,left top,left bottom,from(#FAFAFA),to(#EAEAEA));
background: -moz-linear-gradient(top,#FAFAFA,#EAEAEA);
background: -o-linear-gradient(top,#FAFAFA,#EAEAEA);
z-index: 10;
border-bottom: 1px solid #CACACA;
box-shadow: 0 1px 0 rgba(255,255,255,0.4),0 0 10px rgba(0,0,0,0.1);
margin: 0;
margin-top: 0;
}
.items {
list-style-type: none;
position: absolute;
top: 0px;
right: 3px;
//margin-right: 3px;
> li {
float: left;
}
}
#user-dropdown-toggle {
.icon {
position: absolute;
width: 16px;
height: 16px;
border-radius: 3px;
}
.user-id {
margin-left: 20px;
}
}
.mydropdown {
position: relative;
right: 0px;
font-family: Helvetica;
cursor: pointer;
.mydropdown-toggle {
margin-left: -1px;
border: 1px solid transparent;
font-size: 12px;
text-decoration: none;
text-align: center;
text-overflow: ellipsis;
text-shadow: rgba(255, 255, 255, 0.6) 0 1px 0;
color: #4B4B4B;
padding: 2px 8px;
color: #111;//black;
height: @nav-height;
background: none;//rgba(0, 0, 0, 1.0);
}
.mydropdown-toggle:hover {
border: 1px solid #999;
border-radius: 4px;
text-shadow: 0 1px 0 rgba(250,250,250,0.55),0 0 3px rgba(50,50,50,0.1);
}
.active {
border: 1px solid #999;
border-radius: 4px;
color:#333;
background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#999),color-stop(100%,#ddd));
background-image: -webkit-linear-gradient(#999,#ddd);
background-image: -moz-linear-gradient(#999,#ddd);
background-image: -o-linear-gradient(#999,#ddd);
background-image: -ms-linear-gradient(#999,#ddd);
background-image: linear-gradient(#999,#ddd);
outline:none
}
.mydropdown-toggle:active {
.active;
}
// down arrow (triangle)
.mydropdown-toggle::after {
width: 0;
height: 0;
display: inline-block;
content: "↓";
text-indent: -99999px;
vertical-align: top;
margin-top: 8px;
margin-left: 4px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid black;
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
}
.mydropdown-menu {
background: rgba(100,100,100,0.9);
box-shadow: 0 1px 0 rgba(255,255,255,0.4),0 0 10px rgba(0,0,0,0.1);
border-bottom-color: gray;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-bottom-style: none;
border-bottom-width: 0px;
box-shadow: rgba(0, 0, 0, 0.199219) 0px 2px 4px 0px;
display: none;
margin-left: 0px;
max-width: 250px;
min-width: 100px;
padding: 0px;
padding-top: 0px;
padding-bottom: 6px;
position: absolute;
right: 0px;
z-index: 900;
li {
background-color: transparent;
display: block;
color: white;
cursor: pointer;
font-size: 13px;
font-style: normal;
font-weight: normal;
height: 19px;
padding: 4px 15px;
text-decoration: none;
text-shadow: 0 1px 0 rgba(0,0,0,0.95),0 0 8px rgba(50,50,50,0.1);
}
li:hover {
background-color: rgba(230,230,230,0.9);
color: #111;
text-shadow: 0 1px 0 rgba(255,255,255,0.95),0 0 8px rgba(50,50,50,0.1);
}
.divider {
background-color: #999;
border-bottom-color: #bbb;
border-bottom-style: solid;
border-bottom-width: 1px;
color: gray;
cursor: auto;
display: block;
height: 1px;
margin: 5px 0px;
overflow-x: hidden;
overflow-y: hidden;
text-align: -webkit-auto;
width: 100%;
}
}
}
.login-btn {
cursor: pointer;
.login-label {
width: 50px;
}
.loader-white {
width: 60px;
background-position: 95% center;
background-repeat: no-repeat;
background-image: url('/img/loader-white.gif');
}
}
#popup-wrapper {
position:relative;
margin-bottom: 0px;
.popup-form {
background-color: #f6f6ef;
border: 1px solid #d4d455;
border-radius: 6px;
position: absolute;
//float: right;
right: 10px;
top: 0px;
padding: 10px;
width: 230px;
z-index: 3;
//input,div {margin: 0px;}
.btn {
margin-top: 10px;
margin-right: 10px;
float: right;
}
}
}
.signup-view {
.submit-group {
float: right;
z-index: 10;
margin-right: 10px;
.submit {
width: 80px;
}
}
}
.group-info-wrapper {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 5px;
.name {
font-weight: bold;
}
.toggle-button {
cursor: pointer;
}
// down arrow (triangle)
.toggle-button::after {
width: 0;
height: 0;
display: inline-block;
content: "↓";
text-indent: -99999px;
vertical-align: top;
margin-top: 8px;
margin-left: 4px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid black;
filter: alpha(opacity=50);
-khtml-opacity: 0.5;
-moz-opacity: 0.5;
opacity: 0.5;
}
.icon {
position: absolute;
width: 24px;
height: 24px;
border-radius: 3px;
}
.members {
list-style-type: none;
}
.member {
float: left;
margin-left: 7px;
.icon-container {
position: relative;
width: 24px;
height: 24px;
}
}
.join-request, .unjoin-request {
width: 80px;
}
.member-requests {
list-style-type: none;
}
.member-request {
.icon-container {
float: left;
width: 28px;
}
.id {
float: left;
margin-left: 26px;
min-width: 150px;
}
}
}
.setting-view {
.popup-close {
cursor: pointer;
position: absolute;
top: .1em;
right: .1em;
background: url(/img/icon_close.png) no-repeat center;
width: 23px;
height: 22px;
padding: 1px;
}
label {
cursor: pointer;
margin-bottom: 2px;
}
.head {
font-size: 14px;
color: #333;
margin-top: 6px;
}
.indent {
margin-left: 20px;
}
.icon {
margin-right: 5px;
width: 24px;
height: 24px;
border-radius: 3px;
}
.twitter-btn {
position: relative;
cursor: pointer;
margin-bottom: 3px;
width: 160px;
height: 24px;
white-space: nowrap;
vertical-align: top;
background-color: white;
background-image: -moz-linear-gradient(top, white, #DEDEDE);
background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#DEDEDE));
background-image: -ms-linear-gradient(top, white, #DEDEDE);
background-image: linear-gradient(top, white, #DEDEDE);
background-image: -o-linear-gradient(top, white, #DEDEDE);
border: #CCC solid 1px;
border-radius: 3px;
outline: none;
font: normal normal normal 11px/1.7 "Helvetica Neue", Arial, sans-serif;
i {
position: absolute;
top: 4px;
left: 1px;
width: 16px;
height: 16px;
background: transparent url(/img/twitter_btn_icon.gif) 0 0 no-repeat;
}
.twitter-btn-label {
display: inline-block;
font-size: 13px;
padding: 1px 3px 0 19px;
color: #333;
text-decoration: none;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
}
.submit-group {
float: right;
.submit {
width: 80px;
}
}
}
.group-edit-view {
margin-top: 20px;
form {
border-radius: 3px;
background: #FAFAFA;
background: -webkit-gradient(linear,left top,left bottom,from(#FAFAFA),to(#EAEAEA));
background: -moz-linear-gradient(top,#FAFAFA,#EAEAEA);
background: -o-linear-gradient(top,#FAFAFA,#EAEAEA);
position: relative;
padding-top: 10px;
border-bottom: 1px solid #CACACA;
box-shadow: 0 1px 0 rgba(255,255,255,0.4),0 0 10px rgba(0,0,0,0.1);
}
.head {
font-size: 14px;
color: #333;
margin-top: 6px;
}
.indent {
margin-left: 20px;
}
label {
cursor: pointer;
}
.submit-group {
margin-left: 200px;
.submit {
width: 80px;
}
}
}
.webkit-scrollbar-gray {
overflow-y: scroll;
::-webkit-scrollbar {
width: 10px;
height: 16px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(155, 155, 155, 0.5);
-webkit-box-shadow: inset 1px 1px 0 rgba(255,255,255,0.10),inset 0 -1px 0 rgba(255,255,255,0.07);
}
::-webkit-scrollbar-button {
width: 0;
height: 0;
display: none;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
}
#main {
position: relative;
}
.anchor {
cursor: pointer;
color: #33d;
}
@option-toggle-width: 10px;
.option-toggle {
cursor: pointer;
opacity: 0.4;
background-repeat: no-repeat;
background-position: center center;
height: @option-toggle-width;
width: @option-toggle-width;
}
// for .option-toggle
.option-toggle-closed { background-image: url(/img/right_arrow.png); }
.option-toggle-opened { background-image: url(/img/down_arrow.png); }
.form-closer {
margin-top: 15px;
width: 100%;
height: 25px;
cursor: pointer;
background-color: rgba(220, 220, 220, 0.5);
background-image: url(/img/upper_double_arrow.png);
background-repeat: no-repeat;
background-position: center center;
}
@button-height: 34px;
.fetch-button {
height: @button-height;
width: 90%; //@button-height * 2;
padding: 0;
margin-left: 5%;
margin-bottom: 7px;
.fetch-icon {
background-image: url(/img/update.png);
background-repeat: no-repeat;
background-position: center center;
height: @button-height;
//width: @button-height * 2;
}
.loader-icon {
background-image: url(/img/loader.gif);
}
}
.more-bar {
cursor: pointer;
padding: 10px 1px;
background-color: whiteSmoke;
border-top: 1px solid #DDD;
-webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, .05);
-moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.05);
box-shadow: inset 0 3px 8px rgba(0, 0, 0, .05);
.more-label {
margin: auto auto;
color: #0084B4;
text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
font-size: 13px;
font-weight: normal;
width: 60px;
}
}
.more-bar:hover {
background-color:#eee
}
.bottom-bar {
position: fixed;
min-width: 290px;
bottom: 0px;
//z-index: 10;
border-top: 1px solid #CACACA;
box-shadow: 0 -1px 0 rgba(255,255,255,0.4),0 0 -10px rgba(0,0,0,0.1);
@begin-color: rgba(140,140,140,0.4);
@end-color: rgba(100,100,100,0.4);
background: @begin-color;
background: -webkit-gradient(linear,left top,left bottom,from(@begin-color),to(@end-color));
background: -moz-linear-gradient(top,@begin-color,@end-color);
background: -o-linear-gradient(top,@begin-color,@end-color);
@command-height: 35px;
.commands {
height: @command-height;
list-style-type: none;
> li {
float: right;
padding: 2px 14px;
height: @command-height;
cursor: pointer;
}
}
}
.topic-post-view {
width: 90%;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 0px;
.title, .description {
width: 100%;
}
.submit-group {
float: right;
z-index: 10;
margin-right: -10px;
.submit {
width: 80px;
}
}
.general-info {
margin-bottom: 5px;
}
}
.comment-post-view {
width: 90%;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 10px;
.text {
width: 100%;
}
.submit-group {
float: right;
z-index: 10;
margin-right: -14px;
.submit {
width: 80px;
}
}
.general-info {
margin-bottom: 5px;
}
}
.thumbnails {
margin-left: 0px;
ul {
float: left;
margin: 0px;
cursor: pointer;
width: 102px;
.thumbnail {
}
}
}
#left-view {
border-right: 1px solid #888;
background-color: @basic-background-color;
position:absolute;
left: 0px;
min-width: 290px;
min-height: 395px;
//height: 270px;
}
.topic-coll {
.subhead {
margin-bottom: 5px;
}
}
.topics {
list-style-type: none;
margin-left: 20px;
}
.topic {
border-bottom: solid 1px #e7e7e7;
margin-bottom: 3px;
padding-bottom: 1px;
.title {
font-size: 16px;
line-height: 1.55em;
color: @basic-font-color;
}
.domain {
margin-left: 5px;
font-size: 12px;
color: @subtext-font-color;
}
.subtext {
font-size: 11px;
color: @subtext-font-color;
span, a {
margin-right: 8px;
}
}
}
#right-view {
border-left: 1px solid #888;
background-color: @basic-background-color;
position:absolute;
right: 0px;
min-width: 290px;
min-height: 395px;
.anchors {
position: relative;
}
}
.normal-comment {
position: relative;
.subtext {
color: @subtext-font-color;
}
.text {
color: @basic-font-color;
}
a:link { color:#33c; text-decoration:none; }
}
.popup-comment {
position: absolute;
z-index: 3;
background-color: rgba(50,50,50,0.97);
border: solid 1px #ddd;
border-radius: 5px;
padding: 3px;
.subtext {
color: #bbb;
}
.text {
color: #eee;
}
a { color: #88f;}
}
.popup-ref-comment {
background-color: rgba(50,50,50,0.97);
border: solid 1px #ddd;
border-radius: 5px;
padding: 3px;
.subtext {
color: #bbb;
}
.text {
color: #eee;
}
a { color: #88f;}
}
.comment {
margin-bottom: 4px;
padding-bottom: 0px;
border-bottom: solid 1px #e7e7e7;
min-height: 43px;
.icon {
position: absolute;
width: 24px;
height: 24px;
border-radius: 3px;
}
.subtext {
font-size: 11px;
}
.number {
font-family: 'Georgia';
font-size: 13px;
height: 1em;
}
.user-name {
margin-left: 8px;
color: #2480cd;
font-size: 14px;
}
.user-id {
height: 1em;
margin-left: 4px;
font-size: 13px;
}
.date {
margin-left: 8px;
}
.lang {
margin-left: 8px;
}
.ref {
margin-left: 8px;
cursor: pointer;
}
.edit {
margin-left: 8px;
cursor: pointer;
color: @subtext-font-color;
}
.text {
margin-left: 26px;
margin-top: 0px;
margin-bottom: 0px;
padding: 4px;
padding-top: 0px;
}
}
.text-general-lang {
font-family: georgia, times, serif;
line-height: 1.55em;
font-size: 16px;
}
.text-ja, .text-ko {
font-family: @default-font-family;
}
.text-zh-cn, .text-zh-tw {
font-family: "微软雅黑", "幼圆", "黑体", "宋体";
}
.topic-info {
background: #FAFAFA;
background: -webkit-gradient(linear,left top,left bottom,from(#FAFAFA),to(#EAEAEA));
background: -moz-linear-gradient(top,#FAFAFA,#EAEAEA);
background: -o-linear-gradient(top,#FAFAFA,#EAEAEA);
position: relative;
padding-top: 5px;
padding-left: 4px;
border-bottom: 1px solid #CACACA;
box-shadow: 0 1px 0 rgba(255,255,255,0.4),0 0 10px rgba(0,0,0,0.1);
.title {
padding: 0px;
margin-bottom: 5px;
font-size: 17px;
font-weight: bold;
}
.description {
margin-left: 10px;
margin-bottom: 4px;
}
.subtext {
font-size: 11px;
color: @subtext-font-color;
}
.user-id {
margin-left: 8px;
}
.lang {
margin-left: 8px;
}
.id {
margin-left: 8px;
}
.date {
margin-left: 8px;
}
.topic {
margin-left: 8px;
}
.edit {
margin-left: 8px;
cursor: pointer;
font-size: 12px;
color: #111;
}
}
.topic-edit-view {
width: 90%;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 0px;
.edit-title, .edit-description {
width: 100%;
}
.submit-group {
float: right;
z-index: 10;
margin-right: -14px;
.submit {
width: 80px;
}
}
}
.comment-coll {
position: relative;
.anchors {
list-style-type: none;
}
.popup-refs {
list-style-type: none;
position: absolute;
}
.comments {
list-style-type: none;
margin-left: 10px;
}
}
.comment-edit-view {
min-width: 250px;
//To prevent hid by another popup
z-index: 5;
width: 90%;
margin-top: 10px;
margin-bottom: 0px;
margin-left: 20px;
margin-right: 20px;
.edit-text {
width: 100%;
}
.submit-group {
float: right;
z-index: 10;
margin-right: -14px;
.submit {
width: 80px;
}
}
}
.footer {
list-style-type: none;
width: 100%;
border-top: 1px solid #CACACA;
margin: 0px;
min-height: 200px;
li {
float: right;
margin-right: 10px;
}
a {
float: left;
color: @subtext-font-color;
font-size: 8px;
}
a:link { color:#111; text-decoration:none; }
a:visited { color:#828282; text-decoration:none; }
}
// home
#home-main {
position: relative;
margin: 0 auto;
background-color: @basic-background-color;
width: 80%;
min-width: 290px;
}
.group-coll-view {
margin-top: 5px;
}
.group {
margin-top: 2px;
border-top: solid 1px #e7e7e7;
margin-top: 1px;
padding-top: 1px;
.id {
font-size: 15px;
color: @basic-font-color;
}
.name {
font-size: 15px;
}
.subtext {
color: @subtext-font-color;
font-size: 12px;
.administrator {
margin-left: 10px;
}
.date {
margin-left: 10px;
}
.topic-counter {
margin-left: 10px;
}
}
}
// Persona button
// https://developer.mozilla.org/ja/docs/Persona/branding
// Created by Sawyer Hollenshead
/* Link body */
.persona-button{
color: #fff;
display: inline-block;
font-size: 14px;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
line-height: 1.1;
overflow: hidden;
position: relative;
text-decoration: none;
text-shadow: 0 1px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.2);
background: #297dc3;
background: -moz-linear-gradient(top, #43a6e2, #287cc2);
background: -ms-linear-gradient(top, #43a6e2, #287cc2);
background: -o-linear-gradient(top, #43a6e2, #287cc2);
background: -webkit-linear-gradient(top, #43a6e2, #287cc2);
background: linear-gradient(top, #43a6e2, #287cc2);
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
-ms-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
-o-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.persona-button:hover{
background: #21669f;
background: -moz-linear-gradient(top, #3788b9, #21669f);
background: -ms-linear-gradient(top, #3788b9, #21669f);
background: -o-linear-gradient(top, #3788b9, #21669f);
background: -webkit-linear-gradient(top, #3788b9, #21669f);
background: linear-gradient(top, #3788b9, #21669f);
}
.persona-button:active, .persona-button:focus{
top: 1px;
-moz-box-shadow: none;
-ms-box-shadow: none;
-o-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.persona-button span{
display: inline-block;
padding: 5px 10px 5px 40px;
}
/* Icon */
.persona-button span:after{
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAA4klEQVR42o2RWaqEMBRE3YaCiDjPwQGcd9CrysLv4wTyoLFD90dxqbp1EgdPRB7Kskznea6Zn/aPoKoqUUrJOI5m4l2QBfSyLHKep1zXZSae3An1fS/7vst931bGkzuhaZrsLVbGkzuheZ7lOI6HyJ2QUkqv6yrbtv0LT+6E7G0UrfBfP3lZlpoXH4ZBmHgn5Pv+KwxDfqp0XQdgJp6c/RsUBIGOokiSJDE/s21bACbe5Ozp0TdAHMdSFIXUdS1N01C2wpObPT36HifwCJzI0iX29Oh7XP0E3CB9L01TzM+i/wePv4ZE5RtAngAAAABJRU5ErkJggg==) 10px center no-repeat;
content: '';
display: block;
width: 31px;
position: absolute;
bottom: 0;
left: -3px;
top: 0;
z-index: 10;
}
/* Icon background */
.persona-button span:before{
content: '';
display: block;
height: 100%;
width: 20px;
position: absolute;
bottom: 0;
left: 0;
top: 0;
z-index: 1;
background: #42a9dd;
background: -moz-linear-gradient(top, #50b8e8, #3095ce);
background: -ms-linear-gradient(top, #50b8e8, #3095ce);
background: -o-linear-gradient(top, #50b8e8, #3095ce);
background: -webkit-linear-gradient(top, #50b8e8, #3095ce);
background: linear-gradient(top, #50b8e8, #3095ce);
-moz-border-radius: 3px 0 0 3px;
-ms-border-radius: 3px 0 0 3px;
-o-border-radius: 3px 0 0 3px;
-webkit-border-radius: 3px 0 0 3px;
border-radius: 3px 0 0 3px;
}
/* Triangle */
.persona-button:before{
background: #42a9dd;
content: '';
display: block;
height: 26px;
width: 26px;
position: absolute;
left: 2px;
top: 50%;
margin-top: -13px;
z-index: 0;
background: -moz-linear-gradient(-45deg, #50b8e8, #3095ce);
background: -ms-linear-gradient(-45deg, #50b8e8, #3095ce);
background: -o-linear-gradient(-45deg, #50b8e8, #3095ce);
background: -webkit-linear-gradient(-45deg, #50b8e8, #3095ce);
background: linear-gradient(-45deg, #3095ce, #50b8e8); /* flipped for updated spec */
-moz-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
-ms-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
-o-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
box-shadow: 1px -1px 1px rgba(0,0,0,0.1);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
/* Inset shadow (required here because the icon background clips it when on the `a` element) */
.persona-button:after{
content: '';
display: block;
height: 100%;
width: 100%;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index: 10;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
-ms-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
-o-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
}
/* ========================================================
* Dark button
* ===================================================== */
.persona-button.dark{
background: #3c3c3c;
background: -moz-linear-gradient(top, #606060, #3c3c3c);
background: -ms-linear-gradient(top, #606060, #3c3c3c);
background: -o-linear-gradient(top, #606060, #3c3c3c);
background: -webkit-linear-gradient(top, #606060, #3c3c3c);
background: linear-gradient(top, #606060, #3c3c3c);
}
.persona-button.dark:hover{
background: #2d2d2d;
background: -moz-linear-gradient(top, #484848, #2d2d2d);
background: -ms-linear-gradient(top, #484848, #2d2d2d);
background: -o-linear-gradient(top, #484848, #2d2d2d);
background: -webkit-linear-gradient(top, #484848, #2d2d2d);
background: linear-gradient(top, #484848, #2d2d2d);
}
.persona-button.dark span:before{ /* Icon BG */
background: #d34f2d;
background: -moz-linear-gradient(top, #ebac45, #d34f2d);
background: -ms-linear-gradient(top, #ebac45, #d34f2d);
background: -o-linear-gradient(top, #ebac45, #d34f2d);
background: -webkit-linear-gradient(top, #ebac45, #d34f2d);
background: linear-gradient(top, #ebac45, #d34f2d);
}
.persona-button.dark:before{ /* Triangle */
background: #d34f2d;
background: -moz-linear-gradient(-45deg, #ebac45, #d34f2d);
background: -ms-linear-gradient(-45deg, #ebac45, #d34f2d);
background: -o-linear-gradient(-45deg, #ebac45, #d34f2d);
background: -webkit-linear-gradient(-45deg, #ebac45, #d34f2d);
background: linear-gradient(-45deg, #d34f2d, #ebac45); /* flipped for updated spec */
}
/* ========================================================
* Orange button
* ===================================================== */
.persona-button.orange{
background: #ee731a;
background: -moz-linear-gradient(top, #ee731a, #d03116);
background: -ms-linear-gradient(top, #ee731a, #d03116);
background: -o-linear-gradient(top, #ee731a, #d03116);
background: -webkit-linear-gradient(top, #ee731a, #d03116);
background: linear-gradient(top, #ee731a, #d03116);
}
.persona-button.orange:hover{
background: #cb6216;
background: -moz-linear-gradient(top, #cb6216, #b12a13);
background: -ms-linear-gradient(top, #cb6216, #b12a13);
background: -o-linear-gradient(top, #cb6216, #b12a13);
background: -webkit-linear-gradient(top, #cb6216, #b12a13);
background: linear-gradient(top, #cb6216, #b12a13);
}
.persona-button.orange span:before{ /* Icon BG */
background: #e84a21;
background: -moz-linear-gradient(top, #f7ad27, #e84a21);
background: -ms-linear-gradient(top, #f7ad27, #e84a21);
background: -o-linear-gradient(top, #f7ad27, #e84a21);
background: -webkit-linear-gradient(top, #f7ad27, #e84a21);
background: linear-gradient(top, #f7ad27, #e84a21);
}
.persona-button.orange:before{ /* Triangle */
background: #e84a21;
background: -moz-linear-gradient(-45deg, #f7ad27, #e84a21);
background: -ms-linear-gradient(-45deg, #f7ad27, #e84a21);
background: -o-linear-gradient(-45deg, #f7ad27, #e84a21);
background: -webkit-linear-gradient(-45deg, #f7ad27, #e84a21);
background: linear-gradient(-45deg, #e84a21, #f7ad27); /* flipped for updated spec */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment