How to change font color on text flipclock.js - flipclock

I'm having some issues trying to change the text, hours, days, months, years, into the color green, I'm using flipclock.js, does anyone know how to change it, if so could you guide me in the right direction.

The question is already answered, but I think this can be useful for other people:
Simple CSS to invert FlipClock.js default colors to white background and black text:
.flip-clock-wrapper ul {
background: #fff;
}
.flip-clock-wrapper ul li a div.up:after {
background-color: #fff;
background-color: rgba(0, 0, 0, 0.4);
}
.flip-clock-wrapper ul li a div div.inn {
color: #111;
text-shadow: 0 1px 1px #555;
background-color: #ddd;
}

If your using new version its on line around 225 (css file)
.flip-clock-divider .flip-clock-label {
color: green; }

In case you are looking for advanced solution to change other colors here is an solution posted already here.
This is a solution adapted from one of the repo's closed issue (unsolved). It seems that the dev's promised a new API but that was more than 1 year ago.
It's not perfect as there are some issues when setting $clock-flip-font-size: 120px. Also, when minutes are being displayed as 3 digits, the "Minutes" text is not centered.
Here is the codepen: https://codepen.io/jimasun/pen/PzAqVw/
//
// ------------------------- FlipClock
//
$clock-flip-font-size: 120px
$clock-flip-border-radius: 8px
$clock-digit-gap: 20px
$clock-dot-size: 20px
$clock-height: ($clock-flip-font-size * 1.2)
$clock-flip-width: ($clock-flip-font-size * 0.8)
$clock-flip-margin: ($clock-digit-gap / 2)
$clock-flip-section-width: (2 * ($clock-flip-width + 2 * $clock-flip-margin))
$clock-flip-bg: #607D8B
$clock-flip-shadow: 0 2px 5px rgba(0, 0, 0, 0.7)
$clock-flip-font-color: #F44336
$clock-flip-font-shadow: 0 1px 2px #000
.countdown-wrapper
left: 50%
position: absolute
top: 50%
transform: translate(-50%, -50%)
.countdown.flip-clock-wrapper ul
height: $clock-height
margin: 0 $clock-flip-margin
width: $clock-flip-width
box-shadow: $clock-flip-shadow
.countdown.flip-clock-wrapper ul li
line-height: $clock-height
.countdown.flip-clock-wrapper ul li a div div.inn
background-color: $clock-flip-bg
color: $clock-flip-font-color
font-size: $clock-flip-font-size
text-shadow: $clock-flip-font-shadow
.countdown.flip-clock-wrapper ul,
.countdown.flip-clock-wrapper ul li a div div.inn
border-radius: $clock-flip-border-radius
.countdown.flip-clock-wrapper ul li a div.down
border-bottom-left-radius: $clock-flip-border-radius
border-bottom-right-radius: $clock-flip-border-radius
.countdown.flip-clock-wrapper ul li a div.up:after
top: (($clock-height / 2) - 1px)
.countdown .flip-clock-dot.top
top: ($clock-height / 2 - $clock-flip-font-size * 0.2 - $clock-dot-size / 2)
.countdown .flip-clock-dot.bottom
top: ($clock-height / 2 + $clock-flip-font-size * 0.2 - $clock-dot-size / 2)
.countdown .flip-clock-dot
height: $clock-dot-size
left: $clock-dot-size
width: $clock-dot-size
background: $clock-flip-bg
.countdown .flip-clock-divider
height: $clock-height
width: ($clock-dot-size * 3)
&:first-child
width: 0
.countdown .flip-clock-divider.seconds .flip-clock-label,
.countdown .flip-clock-divider.minutes .flip-clock-label
right: -1 * $clock-flip-section-width
.countdown .flip-clock-divider .flip-clock-label
color: $clock-flip-font-color
font-size: $clock-flip-font-size / 4
width: 2 * $clock-flip-width + 4 * $clock-flip-margin
//
// ------------------------- FlipClock
//

Related

Oracle APEX 20.1: Theme Vita Dark CSS-Error on Textfield with autocomplete

When you apply the Vita Dark-theme to your app and have selection lists, such as in a textfield with autocomplete, the background and the text in the select list are white and thus hard to read.
Screenshot to show the wrong colors
Is there any workaround to this? All the other standard themes work correctly.
The issue can be addressed with a snippet of css which can be easily added in theme roller under custom css for Vita - Dark theme.
.oj-listbox-drop {
background-color: #222629;
color: #fefefe;
border-width: 0;
border-radius: 2px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
padding: 8px 0
}
.oj-inputsearch-choice {
color: inherit;
background-color: transparent;
border-color: transparent
}
.oj-listbox-results .oj-hover {
--oj-listbox-bg-color-hover: #0076df;
background-color: #0076df;
color: #fff
}

streamlabs streamboss Name change

Let me start by saying thank you in advance!
I'm on this site called StreamLabs for twitch streamers and they've introduced a way to use custom HTML, CSS, & JS to customize your look.
They have a thing called "Stream boss" that reacts to users following, sub, and/or donating.
I don't know how to change the name of the streamboss can someone help me with that
/*
bar(asset) width is 315
math for doing the stuff
x = {asset_length} - ( {asset_length} * ( {current_health}/{max_health} ) );
*/
// Events will be sent when the boss is damaged or killed.
// Please use event listeners to run functions.
document.addEventListener('bossLoad', function(obj) {
// obj.detail will contain information about the current boss
// this will fire only once when the widget loads
console.log(obj.detail);
//$('#user_pic').attr('src', obj.detail.boss_img);
$('#current_health').text(obj.detail.current_health);
$('#total_health').text(obj.detail.total_health);
$('#username').text(obj.detail.boss_name);
});
document.addEventListener('bossDamaged', function(obj) {
// obj.detail will contain information about the boss and a
// custom message
var x_coordinate = 0;
console.log(obj.detail);
// set the text
$('#current_health').text(obj.detail.boss.current_health);
// calculate where the x is
x_coordinate = 315 - (315 * (Number(obj.detail.boss.current_health) / Number(obj.detail.boss.total_health)));
// round the output
x_coordinate = -(~~x_coordinate);
// we animate the `background-position-x`
$('#vbi-health-bar').animate({
'background-position-x': x_coordinate + 'px'
}, 1000);
});
// Similarly for for when a boss is killed
document.addEventListener('bossKilled', function(obj) {
var x_coordinate = 0;
console.log(obj.detail);
$('#username').text(obj.detail.boss.boss_name);
//$('#user_pic').attr('src', obj.detail.boss.boss_img);
$('#current_health').text(obj.detail.boss.current_health);
$('#total_health').text(obj.detail.boss.total_health);
// calculate where the x is
x_coordinate = 315 - (315 * (Number(obj.detail.boss.current_health) / Number(obj.detail.boss.total_health)));
// round the output
x_coordinate = -(~~x_coordinate);
// we animate the `background-position-x`
$('#vbi-health-bar').animate({
'background-position-x': x_coordinate + 'px'
}, 1000);
});
#import url('https://fonts.googleapis.com/css?family=Teko:700');
/* All html objects will be wrapped in the #wrap div */
#username,
#user_hp_cont {
height: 33px;
line-height: 50px;
font-family: 'Teko', sans-serif;
font-size: 1.2em;
font-weight: 700;
text-shadow: 0px 0px 5.64px rgba(0, 0, 0, 0.004);
background-image: -webkit-linear-gradient(-180deg, #c0ff00 65%, #00ff0c);
/* For Chrome and Safari */
background-image: -moz-linear-gradient(-180deg, #c0ff00 65%, #00ff0c);
/* For old Fx (3.6 to 15) */
background-image: -ms-linear-gradient(-180deg, #c0ff00 65%, #00ff0c);
/* For pre-releases of IE 10*/
background-image: -o-linear-gradient(-180deg, #c0ff00 65%, #00ff0c);
/* For old Opera (11.1 to 12.0) */
background-image: linear-gradient(-180deg, #c0ff00 65%, #00ff0c);
/* Standard syntax; must be last #c0ff00, #00ff0c*/
color: transparent;
-webkit-background-clip: text;
background-clip: text;
text-transform: uppercase;
}
.boss_cont {
height: 120px;
color: white;
background-color: transparent;
background-image: url(https://s3.us-east-2.amazonaws.com/streamlabs-designers/indigo/1530912534steam_boss_frame.png);
background-size: auto 100%;
background-repeat: no-repeat;
background-position: center;
}
.vbi-aligner {
width: 370px;
height: 35px;
margin: 0 auto;
}
.vbi-aligner>#username {
float: left;
}
.vbi-aligner>#user_hp_cont {
float: right;
}
.vbi-health-frame {
position: absolute;
width: 315px;
height: 47px;
left: calc(50% - 157px);
background-image: url(https://s3.us-east-2.amazonaws.com/streamlabs-designers/indigo/1530912558health_bar_frame.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
-ms-transform: translateY(15px);
-webkit-transform: translateY(15px);
transform: translateY(15px);
overflow: hidden;
z-index: 1;
}
.vbi-health-magic {
background: transparent;
z-index: 0;
}
.vbi-health-bar {
position: absolute;
top: 1px;
width: 315px;
height: 45px;
background-image: url(https://s3.us-east-2.amazonaws.com/streamlabs-designers/indigo/1530912589health_bar.png);
background-repeat: no-repeat;
background-size: cover;
background-position: 0 0;
-ms-transform: translateX(0);
-webkit-transform: translateX(0);
transform: translateX(0);
-ms-transition: transform .5s ease-in-out;
-webkit-transition: transform .5s ease-in-out;
transition: transform .5s ease-in-out;
-webkit-clip-path: polygon(0 50%, 25px 0, 100% 0, 100% 100%, 25px 100%);
clip-path: polygon(0 50%, 25px 0, 100% 0, 100% 100%, 25px 100%);
}
<!-- All html objects will be wrapped in the #wrap div -->
<div class='boss_cont'>
<div class="vbi-aligner">
<div id='ussername'></div>
<div id='user_hp_cont'>
HP <span id='current_health'>0</span>/<span id='total_health'>0</span>
</div>
</div>
<div class="vbi-health-frame vbi-health-magic">
<div class="vbi-health-bar" id="vbi-health-bar"></div>
</div>
<div class="vbi-health-frame"></div>
<div style="display: none;" class='user_pic_cont'>
<img id='user_pic' src='' \>
</div>
<div id='message'></div>
</div>
It's right there in the custom JS section. Wherever you see the line:
$('#username').text(obj.detail.boss_name);
Change '#username' to whatever you want your boss name to be. It's in there twice.

CSS3 "plus" icon with box-shadow that doesn't overlap

I've been playing around with making shapes in CSS. I'm finding that it's all fine and dandy until you want to add a box-shadow or border to your element that was created with both a ::before and ::after pseudo element.
Here's an example I put together of a plus (+) icon made with two elements. I'm attempting to put a box-shadow on both the elements, but of course don't want the top most element's (::after, in this case) shadow to overlap the bottom element.
http://codepen.io/trevanhetzel/pen/Gsurk
Has anyone found any clever tricks around this?
Here's the code, by the way (Sass and Compass FTW!)
<a class="add"></a>
.add {
position: relative;
float: left;
padding: 2em;
background: green;
&::before {
content: "";
position: absolute;
left: 45%;
top: 25%;
width: 10%;
height: 50%;
background: #fff;
#include box-shadow(-2px -2px 0px rgba(0, 0, 0, .75));
}
&::after {
content: "";
position: absolute;
left: 25%;
top: 45%;
width: 50%;
height: 10%;
background: #fff;
#include box-shadow(-2px -2px 0px rgba(0, 0, 0, .75));
}
}
Which outputs something like this: http://t.hetz.co/Rpne
It has poor browser support at the moment but the filter:dropshadow property can be used
-webkit-filter: drop-shadow(4px 0px 1px black);
-moz-filter: drop-shadow(4px 0px 1px black);
filter: drop-shadow(4px 0px 1px black);
Codepen Example

How to hide gwt-dialog box border completely?

How could I hide border of dialog box in GWT completely or we can say that hide the dialog box's caption portion completely. I tried to use .gwt-DialogBox .Caption {} in css
but I couldn't find any option which could hide the border fully.
Thanks in advance!
Don't use gwt-DialogBox name for css to change dialog box. it will not apply. try to apply different style name with same style like:
.gwt-DialogBoxNew
{
border: 8px solid #7F7F7F;
border-radius: 6px 6px 6px 6px;
box-shadow: none;
line-height: 7px;
opacity: 1;
z-index: 1000;
background-color : #FFFFFF;
}
.gwt-DialogBoxNew .Caption {
background: none repeat scroll 0 0 #E4E4E4;
border: medium none #D4D4D4;
cursor: default;
font-family: Arial Unicode MS, Arial, sans-serif !important;
font-size: 18px;
font-weight: 400;
line-height: 27px;
padding:2px 0px 0px 0px;
}
.gwt-DialogBoxNew .dialogContent {
}
.gwt-DialogBoxNew .dialogMiddleCenter {
padding: 3px;
background: white;
}
.gwt-DialogBoxNew .dialogBottomCenter {
}
.gwt-DialogBoxNew .dialogMiddleLeft {
/* background: url(images/vborder.png) repeat-y -31px 0px; */
}
.gwt-DialogBoxNew .dialogMiddleRight {
/* background: url(images/vborder.png) repeat-y -32px 0px;
}
.gwt-DialogBoxNew .dialogTopLeftInner {
width: 10px;
height: 8px;
zoom: 1;
background: none repeat scroll 0 0 #E4E4E4;
}
.gwt-DialogBoxNew .dialogTopRightInner {
width: 12px;
zoom: 1;
background: none repeat scroll 0 0 #E4E4E4;
}
.gwt-DialogBoxNew .dialogBottomLeftInner {
width: 10px;
height: 12px;
zoom: 1;
}
.gwt-DialogBoxNew .dialogBottomRightInner {
width: 12px;
height: 12px;
zoom: 1;
}
.gwt-DialogBoxNew .dialogTopLeft {
/* background: url(images/circles.png) no-repeat -20px 0px;
-background: url(images/circles_ie6.png) no-repeat -20px 0px; */
background: none repeat scroll 0 0 #E4E4E4;
}
.gwt-DialogBoxNew .dialogTopRight {
/* background: url(images/circles.png) no-repeat -28px 0px;
-background: url(images/circles_ie6.png) no-repeat -28px 0px; */
background: none repeat scroll 0 0 #E4E4E4;
}
.gwt-DialogBoxNew .dialogBottomLeft {
/* background: url(images/circles.png) no-repeat 0px -36px;
-background: url(images/circles_ie6.png) no-repeat 0px -36px; */
}
.gwt-DialogBoxNew .dialogBottomRight {
/* background: url(images/circles.png) no-repeat -8px -36px;
-background: url(images/circles_ie6.png) no-repeat -8px -36px; */
}
Remove border style from it as you concern here.
A DialogBox is basically a DecoratedPopupPanel with a caption. You want neither the decoration nor the caption, so how about using a PopupPanel instead? (AFAICT, the only difference will be how you size the panel)

Fixed position navigation arrows aren't working with iPhone

I have set up a nice little slider using the following CSS:
/*SLIDER
===================================
*/
#full-slider-wrapper {
overflow: hidden;
}
#full-slider {
position: relative;
width: auto;
min-height: 1200px;
margin: 0 auto;
}
#full-slider .slide-panel {
position: absolute;
top: 0;
left: 0;
width: auto;
visibility: hidden;
}
#full-slider .slide-panel.active {
visibility: visible;
}
#full-slider-nav-left
{
position: fixed; top: 550px; width: auto; margin: auto 0 auto auto;
left: 0; width: 0; height: 0; cursor: pointer; border: 20px solid transparent;
}
#full-slider-nav-right {
position: fixed; top: 550px; width: auto; margin: auto auto auto 0;
right:0; width: 0; height: 0; cursor: pointer; border: 20px solid transparent;
}
#full-slider-nav-left {
border-right-color: #BBB;
}
#full-slider-nav-left:hover {
border-right-color: #999;
}
#full-slider-nav-right {
border-left-color: #BBB;
}
#full-slider-nav-right:hover {
border-left-color: #999;
}
As you can see, I have set the navigation arrows on either side of the container. They remain fixed as I scroll up and down the page. I'm using the responsive Skeleton framework and when I collapse the browser down to mobile size, the arrows work fine. The arrows also work fine on the android platform. However, when I attempt to browse the website on an iPhone, the arrows jump around as I scroll and then disappear.
From what I have read, iPhones have had problems with position:fixed in the past, however this was supposedly resolved with iOS 5.
Unfortunately I don't have a live version of the site to demonstrate the issue.
Any help would be greatly appreciated.