CSS on Select Boxes for Windows Not Working like OSX - css

I have a piece of code that isn't working on Windows/Android but works fine on OSX and Linux. I know it has something to do with the CSS, but I can't figure out the issue. All the data in the select boxes don't display in the box. Both images below have the same values chosen.
Windows
OSX
Here is my code:
CSS
input::placeholder {
color: dodgerblue;
}
.filter-form {
font-size: .75em;
}
.filter-form select {
color: dodgerblue;
border-radius: 0;
margin: 0px;
padding: 15px;
display: block;
height: 35px;
width: 100%;
border: 1px solid dodgerblue;
font-family: "PT Sans", "Helvetica", sans-serif;
font-weight: bold;
}
.filter-form input {
color: dodgerblue;
border-radius: 0;
margin: 0px;
padding: 15px;
display: block;
height: 35px;
width: 100%;
border: 1px solid dodgerblue;
font-weight: bold;
font-family: "PT Sans", "Helvetica", sans-serif;
}
And the code from the page:
<div class="product-filter">
<h3>Filter By:</h3>
<div class="sort">
<div class="collection-sort filter-form">
<form method="get">
{{ filter.form.as_p }}
<button class="btn-a btn-a_size_small btn-a_color_theme" type="submit"
style="margin:10px 0;">Filter Results
</button>
</form>
</div>
</div>
</div>

Related

How to make the flex item text wrapped under the adjutants item

How to get the text wrapped under the points?
https://codepen.io/neginbasiri/pen/ZEGReRZ
<div class="pointLine__PointLine-wgyo1p-1 bUhvVh">
<svg class="icon--icon--base--17 pointLine__RooIcon-wgyo1p-0 iBQvHK">IMAGE</svg>
<div class="pointLine__Content-wgyo1p-2 cPwDGx"><div class="pointLine__Point-wgyo1p-3
pointLine__DefaultPoint-wgyo1p-4 enMiay">16,000</div><p class="Text__StyledText-zy9rxk-0 dufgDt">
Points when you join or switch <span id="super-node-187"><sup class="super--super--root--13">
<span>3</span></sup> </span></p></div>
In the example switch should show under 16,000.
.bUhvVh {
display: flex;
margin-bottom: 20px;
width: 300px;
}
.iBQvHK {
color: #e40000;
font-size: 24px;
margin-right: 10px;
border: 1px solid red;
width: 20px;
}
.icon--icon--base--17 {
height: 1em;
min-width: 1em;
vertical-align: middle;
fill: currentColor;
}
.cPwDGx {
font-family: Ciutadella Regular;
font-size: 18px;
color: #555;
letter-spacing: normal;
line-height: 1.5;
}
.enMiay {
float: left;
font-family: Ciutadella Medium;
margin-right: 4px;
position: relative;
color: #323232;
}
.dufgDt {
margin: 0;
font-family: 'Ciutadella Regular',sans-serif;
font-size: 18px;
color: #555;
letter-spacing: normal;
line-height: 1.5;
}
<div class="pointLine__PointLine-wgyo1p-1 bUhvVh">
<svg class="icon--icon--base--17 pointLine__RooIcon-wgyo1p-0 iBQvHK">IMAGE</svg>
<div class="pointLine__Content-wgyo1p-2 cPwDGx"><div class="pointLine__Point-wgyo1p-3 pointLine__DefaultPoint-wgyo1p-4 enMiay">16,000</div><p class="Text__StyledText-zy9rxk-0 dufgDt"> Points when you join or switch <span id="super-node-187"><sup class="super--super--root--13"><span>3</span></sup> </span></p></div>
</div>
Remove display: flex; flex: 1 from .cPwDGx.
Remove display: inline-block from .enMiay and add float: left for this element.
Update width to min-width for icon--icon--base--17. It will not shrink if text is larger.
Refer : https://codepen.io/bala_tamizh/pen/WNvyEPg

Angular Daterangepicker in a popover not showing in the correct place

I am using ng2-daterangepicker to show a date range picker in a pop-over.
Here is what I have so far:
#Component({
selector: "protocol-details",
providers: [PatientsService],
template: `
<div *ngIf="data == null ;then content else table_content"></div>
<ng-template #content>
No Accruals
</ng-template>
<ng-template #table_content>
<div class="container">
<div class="center">
<h3 style="color:#215081;"> Protocol Accrual for {{mdg}} for Protocol No. {{protocolNumber}}</h3>
</div>
<br>
<div class="form-group">
<div style="position:relative">
<div class="input-group" daterangepicker (selected)="selectedDate($event, mainInput)"
(cancelDaterangepicker)="calendarEventsHandler($event)"
(applyDaterangepicker)="calendarEventsHandler($event)"
(hideDaterangepicker)="calendarEventsHandler($event)"
(showDaterangepicker)="calendarEventsHandler($event)"
>
<span class="form-control uneditable-input" name="daterange" >
{{ mainInput.start | date:'M/dd/y' }} - {{ mainInput.end| date:'M/dd/y' }}
</span>
<span class="input-group-btn">
<a type="button" class="btn btn-default"><span class="glyphicon glyphicon-calendar"></span></a>
</span>
</div>
</div>
</div>
</ng-template>
My styles are :
styles: [ `
main {
padding: 1em;
font-family: Arial, Helvetica, sans-serif;
margin-top: 50px;
display: block;
max-width: 600px;
}
.well {
min-height: 20px;
margin-bottom: 20px;
background-color: #EDEDED;
box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 1px inset;
padding: 19px;
border-width: 1px;
border-style: solid;
border-color: rgb(227, 227, 227);
border-image: initial;
border-radius: 4px;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.containerDiv {
margin: auto;
width: 60%;
padding: 10px;
}
.container { margin-right: auto; margin-left: auto; *zoom: 1;}
.label-primary {
background-color: #337ab7;
}
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 100%;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
p{
display:inline;
color: #595959;
}
h3{
color: #808080;
}
span {
font-size: xx-large;
}
.center {
text-align: center;
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
` ]
I see that onclick the range picker is rendered at (0,0) so the left and top values of the popup are not being set.
Screen looks like :
I have tried to wrap this in a div with relative positioning but that did not solve the issue.
Can someone please suggest a fix for this?

Contact Form 7 Text Fields not editable

I am trying to use contact form 7 to create a custom–styled form. I am using WP Joints theme with foundation.
The first 4 fields are not editable in chrome or firefox, but the comment field is. All fields work in IE (strangely enough). What am I doing that is causing this? The styling needs to be this way for a client but I am probably using certain CSS that is altering the final product.
Link to the site
HERE IS THE CSS
#contact-bb {
background-image: url("http://delindesign.com/adlhochgroup/wp-content/uploads/2016/10/contact-bg.jpg");
background-repeat: no-repeat;
background-position:0% 30%;
background-size: 100%;
}
.contact-header {
font-family: 'Source Sans Pro', sans-serif;
font-size: 2rem;
font-weight: 600;
line-height: 1.2;
color: #8ca408;
text-align: center;
padding: 3rem 0 3rem 0;
}
#first_margin {
margin-bottom:.5rem !important;
}
#comments_margin {
padding-top:.5rem !important;
}
.wpcf7-email {
margin-bottom: .5rem !important;
}
.wpcf7-text {
background-color: #efefef;
}
.wpcf7-textarea {
background-color: #efefef;
}
.wpcf7-submit {
font-family: 'Source Sans Pro', sans-serif;
font-size: 20px;
color: #FFFFFF;
text-align: center;
border: none;
padding: .5rem 4rem .5rem 4rem;
display: inline-block;
margin: 0 0 1rem 0;
background-color: #8ca408;
}
span.wpcf7-not-valid-tip { display: inline !important;}
#cf7-left {
padding: 0 .5rem .5rem 0 !important;
}
#cf7-right {
padding: 0 0 .5rem 0 !important;
}
.wpcf7-text {
margin-bottom:0;
}
#no-pad {
padding:0 !important;
}
.pad-left-1c {
padding-left: 5rem;
}
.bold-contact {
font-family: 'Source Sans Pro', sans-serif;
font-size: 1.125rem;
font-weight: 700;
margin-bottom: .5rem;
line-height: 1.33;
color: #333333;
text-align: left;
}
#contact-padding{
padding-top: 1.8rem !important;
}
.reg-contact {
font-family: 'Source Sans Pro', sans-serif;
font-size: 1.125rem;
font-weight: 400;
margin: auto;
line-height: 1.33;
color: #333333;
text-align: left;
}
and the form
<div id="cf7-left" class="large-6 small-6 columns">
[text* firstname placeholder id:first_margin akismet:author "First Name"]
[text lastname placeholder "Last Name"]
</div>
<div id="cf7-right" class="large-6 small-6 columns">
[email email placeholder "Email"]
[text company placeholder "Company"]
</div>
<div class="large-12 pad-top">
[textarea* comments placeholder id:comments_margin "Comments"]
[submit id:submit-button "Submit"]
</div>
The problem was my putting them in foundation rows and tables. The fields in foundation were editable. My solution was just making a div with display: table and making the fields 50% width table cells float left. It has worked across all browsers so far.

CSS reset does not allow a different vertical align

I used a css reset where * selector has
vertical-align:baseline;
Entire theme was build with it, and now, at the very end, I need one div to align top. And it does not. I did specify it in styling, added !important. No luck. I'm sure I'm missing something, but can't figure out what.
So
Css reset * selector part looks like this
* {
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
font-size: 100%;
border: 0 none;
outline: 0;
padding: 0;
margin: 0;
}
Html part
php part of wordpress templates
<li>
<div id="datencomments">
<div id="date3">
<div id="datetxt">
<div class="month"><?php the_time('M ') ?></div>
<div class="day"><?php the_time('j ') ?></div>
</div></div>
<div id="comments"><span class="comments-link"><?php comments_popup_link( __( '1 Comment', 'blankslate' ), __( '% Comments', 'blankslate' ) ); ?></span></div>
</div>
</li>
</ul>
</div>
css for it.
.postpreview ul {
list-style: none;
}
.postpreview ul li {
display: inline-block;
}
#datencomments {
width: 100px;
vertical-align: top !important;
}
#date3 {
width:100px;
height: 100px;
border: 2px solid transparent;
border-radius: 100px;
background-color: #17B1BE;
color: #fff;
text-align: center;
}
.month {
text-align: center;
margin-top: 12px;
text-transform: uppercase;
font-size: 24px;
font-weight: 200;
font-family: 'Exo 2', sans-serif;
}
.day {
text-align: center;
margin-top: -8px;
text-transform: uppercase;
font-size: 40px;
font-family: 'Exo 2', sans-serif;
}
#comments {
margin-top: 20px;
text-align: center;
font-size: 12px;
font-family: 'Droid Serif', serif;
font-style: italic;
text-decoration: underline;
}
the rest is transitions, hover colors etc...
I need #datencomments at the top of the template, while * is pulling it down.
If done like this, display:block puts the text behind the box, display:inline puts it inside on top and display:inline-block puts the text where it is specified with vertical-align.
<div id='container'>
<div id='text'>This is a test</div>
</div>
#container{
height: 200px;border: 5px solid blue;text-align:center;
}
#text,#container:before{
vertical-align: middle;
display: inline-block;
}
#container:before{
content: "";
height: 100%;
}

Three columns and links

This is weird. I have a "wrapper" with three columns like this:
http://d.imagehost.org/view/0543/cssproblem
The first column has a picture, the second column has text and the third column has three links. It works fine if the third block has just text and not links (see the top of the linked picture) but when I make links out of the text, the text is no longer side by side (see the bottom of the linked picture).
I just can't understand what's wrong with the code. How can the text in the third column to stay side by side even when they are links?
css:
.wrapper{
margin-left: 45px;
margin-bottom: 4px;
width: 466px;
height: 22px;
}
.first{
width: 22px;
float: left;
}
.second{
width: 266px;
float: left;
}
.third{
width: 178px;
float: right;
}
p.text1 {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1.2em;
text-align: left;
margin-left: 12px;
margin-top: 3px;
}
p.text2 {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1em;
text-align: right;
}
a.opt {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1em;
text-decoration: none;
}
a.opt:visited {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1em;
text-decoration: none;
}
a.opt:active {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1em;
text-decoration: none;
}
a.opt:hover {
font-family: lucida sans unicode, sans-serif;
color: #ffffff;
font-size: 1em;
text-decoration: underline;
}
html:
<div class="wrapper">
<div class="first><img src="image.gif" /> </div>
<div class="second"><p class="text1">Some text here</p></div>
<div class="third"><p class="text2"><a class="opt" href="http://">LINK 1</a> | <a class="opt" href="http://">LINK 2</a> | <a class="opt" href="http://">LINK 3</a></p></div>
</div>
My guess is that it's the float: right declaration in your .third class. Try starting by adapting your CSS to look like this:
.wrapper{
margin-left: 45px;
margin-bottom: 4px;
overflow: hidden;
width: 466px;
height: 22px;
}
.first{
width: 22px;
float: left;
}
.second{
width: 266px;
float: left;
}
.third{
width: auto;
overflow: hidden;
}
That eliminates the need for the right-floating div. That should hopefully clean things up enough. If not, I'll modify my answer.

Resources