ControlC ControlC.com

FONT WIDGET CSS

Views: 274Total Chars: 2,428
Created: 11/24/18 11:20:48AM ET
Self Destructs: Never
/*----- FONT WIDGET BY @BORNTOBEWILDCODES -----*/

#font-widget {
position:fixed;
top:{text:Font widget top margin};
left:20px;
width:312px;
height:328px;
color:#fff;
z-index:100000;
overflow:hidden;
{block:ifFontWidgetOnTheRight}
left:auto!important;
right:20px!important;
{/block:ifFontWidgetOnTheRight}
}

/*-- BUTTON --*/

#font-box-bttn {
float:left;
{block:ifFontWidgetOnTheRight}
float:right!important;
margin-right:0px!important;
margin-left:8px!important;
{/block:ifFontWidgetOnTheRight}
margin:0;
margin-right:8px;
width:20px;
height:20px;
padding:10px;
font-size:16px;
line-height:20px;
text-align:center;
cursor:pointer;
font-family:{select:Font widget accent font};
color:{color:Font widget text};
background:{color:Font widget background};
border:1px solid {color:Font widget border};
border-radius:{text:Font widget border radius};
}

#font-box-bttn:hover {
color:{color:Font widget input background};
}

/*-- FONT BOX --*/

#font-box {
float:right;
margin-right:2px;
width:230px;
height:auto;
overflow-y:auto;
padding:10px;
line-height:12px;
color:{color:Font widget text};
background:{color:Font widget background};
border:1px solid {color:Font widget border};
border-radius:{text:Font widget border radius};
overflow:hidden;
display:none;
}

/* Font box heading */

#font-box h2 {
margin:0;
margin-bottom:10px;
padding:0;
font-size:16px;
line-height:20px;
color:{color:Font widget text};
font-family:{select:Font widget accent font};
}

/* Font box option */

.font-box-option {
margin:2px 0;
padding:3px 10px;
width:calc(100% - 20px);
font-family:{select:Font widget body font};
font-size:12px;
line-height:30px;
color:{color:Font widget text};
background:{color:Font widget input background};
border-radius:{text:Font widget border radius};
}

#font-box span {
width:60px;
}

#font-box select {
margin-left:20px;
width:120px;
height:20px;
font-size:12px;
font-family:{select:Font widget body font};
color:{color:Font widget input text};
background:{color:Font widget input background};
box-shadow:none;
border:none;
border-radius:none;
}

#font-box input[type=text] {
margin-left:25px;
width:120px;
height:20px;
font-size:12px;
text-align:right;
font-family:{select:Font widget body font};
color:{color:Font widget input text};
background:{color:Font widget input background};
box-shadow:none;
border:none;
border-radius:none;
}

#font-box input::placeholder {
color:{color:Font widget text};
}
2,428 chars, 214 words, 124 lines·Create new version