How do I get this button to go beside the email field - css

How do I get the subscribe button to go beside the email field of the form.. and the hover doesn't seem to be working on the subscribe button
using bootstrap and HTML5 and CSS
<form class="subscribe_form">
<div class="subscrive_group wow fadeInUp">
<input class="form-control subscribe_mail" type="email" placeholder="Enter your email address">
<input class="btn-form" type="submit" value="Subscribe">
</div>
</form>
CSS
subscribe_form {
border: 1px solid #DDDDDD;
color: #CCCCC6;
font-family: 'Roboto', sans-serif;
font-size: 16px;
margin-top: 0;
outline: medium none;
width: 75%;
}
.subscribe_form .btn-form {
margin: 10px;
}
.btn-form {
color: #00bfff;
padding: 10px 30px;
font-weight: 500;
text-decoration: none;
border-radius: 200px;
transition: background-color 0.2s, border 0.2s, color 0.2s;
border: 1px solid #00bfff;
background-color: #fff;
letter-spacing: .5px;
font-size: 16px;
}
.btn-form:hover,
.btn-form:active {
border: 1px solid #00bfff;
background-color: #fff;
color: #00bfff;}
heres what happened when I tried this below (image attached)
Here is the rest of the code for that section
<section class="works service-page">
<div class="container">
<h2 class="subtitle wow fadeInUp animated" data-wow-delay=".3s" data-wow-duration="500ms">TEXT </h2>
<p class="subtitle-des wow fadeInUp animated" data-wow-delay=".5s" data-wow-duration="500ms">
TEXT
</p>
<div class="row">
<div class="col-sm-4 ">
<figure class="wow fadeInLeft animated portfolio-item" data-wow-duration="500ms" data-wow-delay="0ms">
<figcaption>
<h2>
<a href="#" class="figma">
text</a> <span class="par-text-one">text</span>
</h2>
<p class="para">
text
</p>
</figcaption>
<div class="img-wrapper">
<img src="images/" class="img-responsive" alt="this is a title" >
<div class="overlay">
<div class="buttons">
<a target="_blank" href="">Discover</a>
</div>
</div>
</div>
<figcaption>
<p class="para">text
<br>
text
</p>
</figcaption>
</figure>
</div>
<div class="col-sm-4 ">
<figure class="wow fadeInLeft animated portfolio-item" data-wow-duration="500ms" data-wow-delay="0ms">
<figcaption>
<h2>
<a href="#" class="figma">
text </a> <span class="par-text-one">text </span>
</h2>
<p class="para">text
</p>
</figcaption>
<div class="img-wrapper">
<img src="images/.jpg" class="img-responsive" alt="this is a title" >
<div class="overlay">
<div class="buttons">
<a target="_blank" href="">Discover</a>
</div>
</div>
</div>
<figcaption>
<p class="para">text
<br>text
</p>
</figcaption>
</figure>
</div>
<div class="col-sm-4 boxed">
<h2> More Products Coming Soon! </h2>
<p class="para-form">
text
</p>
<p class="para-blue">text
</p>
<div class="container">
<form class="subscribe_form">
<div class="subscrive_group wow fadeInUp row col-sm-12">
<div class="col-sm-6">
<input class="form-control subscribe_mail" type="email" placeholder="Enter your email address">
</div>
<div class="col-sm-6">
<input class="btn-form" type="submit" value="Subscribe">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>

You can add the form-inline class on your <form> tag.
http://getbootstrap.com/css/#forms-inline.
<form class="subscribe_form form-inline">
<div class="subscrive_group wow fadeInUp">
<input class="form-control subscribe_mail" type="email" placeholder="Enter your email address">
<input class="btn-form" type="submit" value="Subscribe">
</div>
</form>

try this:
<form class="subscribe_form">
<div class="subscrive_group wow fadeInUp row col-sm-12">
<div class="col-sm-6">
<input class="form-control subscribe_mail" type="email" placeholder="Enter your email address">
</div>
<div class="col-sm-6">
<input class="btn-form" type="submit" value="Subscribe">
</div>
</div>
</form>

Related

Cannot get webpage content to fill screen

I am currently working on a webpage login/signup screen and I can't get the content to display on the whole screen. I am using Bulma as the library and handlebars. On my dashboard page after login, the content displays full screen but I can't get the login page to do the same.
Any help would be appreciated.
body {
background-repeat: no-repeat;
background-size: cover;
background-image: url("https://wallpaperaccess.com/full/1431610.jpg");
}
.login-container {
display: flex;
justify-content: center;
text-align: left;
}
.card-header {
justify-content: center;
padding: 10px 0px;
}
.country-label {
color: white;
text-shadow: 2px 2px black;
}
.signin-title {
color: white;
text-shadow: 2px 2px black;
font-size: 40px;
}
<section class="hero" style="background-color: rgb(10, 163, 125); border-bottom: rgb(12, 14, 15) 5px solid; border-left: rgb(12, 14, 15) 5px solid; border-right: rgb(12, 14, 15) 5px solid ">
<div class="hero-body">
<div class="container">
<h1 class="title has-text-centered animated lightSpeedIn">
Take Me Away....<i class="fa-solid fa-earth-africa"></i>
</h1>
</section>
<section class="section">
<div class="login-container">
<div class="columns">
<div class="column is-half">
<h1 class="signin-title"> Sign in</h1>
<form class="form login-form">
<div class="field">
<label for="email-login">Email</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="email" name="email" placeholder="Email" id="email-login">
<span class="icon is-small is-left">
<i class="fa-solid fa-envelope"></i>
</span>
</p>
</div>
<div class="field">
<label for="password-login">Password</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="password" name="password" placeholder="Password" id="password-login">
<span class="icon is-small is-left">
<i class="fa-solid fa-key"></i>
</span>
</p>
</div>
<div class="field">
<p class="control">
<button class="btn btn-primary" type="submit">
Login
</button>
</p>
</div>
</form>
</div>
<form class="form signup-form">
<div class="column">
<h1 class="signin-title">Sign Up</h1>
<div class="field">
<label for="name-signup">Name</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="text" name="name" placeholder="Name" id="name-signup">
<span class="icon is-small is-left">
<i class="fa-solid fa-user"></i>
</span>
</p>
</div>
<div class="field">
<label for="email-signup">Email</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="email" name="email" placeholder="Email" id="email-signup">
<span class="icon is-small is-left">
<i class="fa-solid fa-envelope"></i>
</span>
</p>
</div>
<div class="field">
<label for="password-signup">Password</label>
<p class="control has-icons-left has-icons-right">
<input class="input" type="password" name="password" placeholder="Password" id="password-signup">
<span class="icon is-small is-left">
<i class="fa-solid fa-key"></i>
</span>
</p>
</div>
<div class="field">
<p class="control">
<button class="btn btn primary" type="submit">
Sign up
</button>
</p>
</div>
</div>
</div>
</form>
</div>
</section>
<section class="hero" style="background-color: rgb(10, 163, 125); border-top: rgb(12, 14, 15) 5px solid; border-left: rgb(12, 14, 15) 5px solid; border-right: rgb(12, 14, 15) 5px solid ">
<div class="hero-body">
<div class="container">
<h1 class="title has-text-centered animated lightSpeedIn">
Take Me Away....<i class="fa-solid fa-earth-africa"></i>
</h1>
</section>
<script src="/js/login.js"></script>

How does Meteor.js decide the order in which components are rendered?

I have the following code in Meteor.js written by someone else
<div>
<div> {{> yield region='tickets'}} </div>
<div> {{> yield region='ticketView'}} </div>
<div> {{> yield region='analytics'}} </div>
</div>
It works fine but I have an issue with the order in which those components are rendered. When that page is opened, the 'analytics' clearly loads/renders first, then once that is done the rest of it renders. I would like it to load/render in the order that the components are called.
Attaching template files to take a look at
region='tickets' ====> ticketsList (This should always load first)
region='ticketView' ====> ticket_view
region='analytics' ====> analytics
<template name="ticketsList">
<div id="tickets-list" class="tickets-list">
<div class="btn-group btn-group-justified">
<div class="btn-group btn-group-lg">
<button class="btn btn-primary {{unresolvedActive}}" id="unresolved">
Unresolved
<span class="label label-pill label-danger label-as-badge">{{ unresolvedTicketsCount }}</span>
</button>
</div>
<div class="btn-group btn-group-lg">
<button class="btn btn-primary {{resolvedActive}}" id="resolved">
Resolved
</button>
</div>
</div>
<div class="row m-t-sm">
<div class="col-xs-3">
{{> broadcast}}
</div>
<div class="col-xs-3" style="margin-left: 12px;">
<button class="btn btn-info" type="button" id="create-shift-report" style="
background-color: #278006;
border-color: #278006;
border-radius: 25px;
">
<span class="glyphicon glyphicon-plus" aria-hidden="true"
style="background-color: #278006; color: white"></span>
<i class="fa fa-folder-open fa-lg" aria-hidden="true"></i>
</button>
</div>
<div class="col-xs-5" style="float:right">
<button class="btn btn-info" type="button" id="create-ticket" style="
float: right !important;
background-color: #56cf1b;
border-color: #56cf1b;
border-radius: 25px;
">
<span class="glyphicon glyphicon-plus" aria-hidden="true"
style="background-color: #56cf1b; color: white"></span>
Create Ticket
</button>
</div>
</div>
<div class="row m-t-sm">
<div class="col-sm-12" style="padding: 0px">
<div class="wrapper">
<input type="text" placeholder="Search ..." class="searchInput" id="searchQuery" name="search" />
<button type="submit" class="searchButton search-button">
{{#if isSearch}}
<i class="fa fa-times clearbutton" aria-hidden="true"></i>
{{/if}}
<i class="fa fa-search"></i>
</button>
</div>
</div>
</div>
{{#if isSearch}}
<div class="row m-t-sm">
<div class="col-sm-12">
<div class="wrapper">
<i>
<h4>Search Results</h4>
</i>
</div>
</div>
</div>
{{/if}}
<div class="row m-t-sm">
<div class="col-sm-12">
<div class="wrapper">
<span style="font-style: italic;">Filter by department: </span>
<select class="ticket-department-filter" id="departmentFilter">
<option>All</option>
{{#each tags}}
<option value={{this.id}}>{{this.name}}</option>
{{/each}}
</select>
</div>
</div>
</div>
<div class="row m-t-sm">
<div class="col-sm-12">
<div class="wrapper">
<span style="font-style: italic;">Filter by source: </span>
<select class="ticket-department-filter" id="sourceFilter">
<option>All</option>
{{#each sourceFilter}}
<option>{{this}}</option>
{{/each}}
</select>
</div>
</div>
</div>
<div class="tickets scrollbar m-t-sm">
{{#if tickets.length}} {{#each tickets}} {{> ticketItem}} {{/each}} {{#if
showLoading}}
{{> LoadingNew }}
{{else}} {{#if noMore}}
<div class="alert alert-warning m-t-sm" style="text-align: center; vertical-align: middle; padding: 5px">
No more tickets available!
</div>
{{else}}
<div class="m-t-sm" style="text-align: center">
<button id="show-more" class="btn btn-primary"
style="width: 100px; background-color: #337ab7; border-color: #2e6da4">
Show More
</button>
</div>
{{/if}} {{/if}} {{else}} {{#if showLoading}} {{> LoadingNew }} {{else}}
<hr />
<h2 class="text-center" style="font-size: 14px">
<i>No outstanding tickets</i>
</h2>
<hr />
{{/if}} {{/if}}
</div>
</div>
{{> shiftReportModal}}
<div id="new-ticket-modal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="background-color: #83ccff">
<button type="button" class="close" data-dismiss="modal">
×
</button>
<h4 class="modal-title" style="text-align: center; color: #ffffff">
Create a New Ticket
</h4>
</div>
<form class="form-horizontal" id="create-ticket-form">
<div class="modal-body">
<div class="form-group">
<div class="col-sm-3"><label for="source">* Source</label></div>
<div class="col-sm-9">
<label class="radio-inline">
<input type="radio" name="source" id="call" value="call" />
Call
</label>
<label class="radio-inline">
<input type="radio" name="source" id="inPerson" value="in-person" />
In-Person
</label>
<label class="radio-inline">
<input type="radio" name="source" id="email" value="email" />
Email
</label>
<label class="radio-inline">
<input type="radio" name="source" id="dnd" value="dnd" />
DND
</label>
<label class="radio-inline">
<input type="radio" name="source" id="shift-report" value="shift-report" />
Shift Report
</label>
</div>
<div class="col-sm-3"></div>
<div class="col-sm-9">
<label class="radio-inline">
<input type="radio" name="source" id="soft-check-in" value="soft-check-in" />
Soft check-in
</label>
<label class="radio-inline">
<input type="radio" name="source" id="amenity" value="amenity" />
Amenity
</label>
<label class="radio-inline">
<input type="radio" name="source" id="request" value="request" />
Request
</label>
<label class="radio-inline">
<input type="radio" name="source" id="repair" value="repair" />
Repair
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-3" for="guestName">Guest Name</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="guestName" name="guestName" />
</div>
<label for="autoFill">OR Auto-Fill </label>
<select id="autoFill" name="autofill">
<option value="-1">Select Guest</option>
{{#each pastGuests}}
<option value="{{ #index }}">
{{ receiverName }} ({{ roomNumber }})
</option>
{{/each}}
</select>
</div>
<div class="form-group">
<label class="col-sm-3" for="roomNumber">* Room #</label>
<div class="col-sm-9">
<input type="text" class="form-control" required id="roomNumber" name="roomNumber" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3" for="reservationNumber">Reservation #</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="reservationNumber" name="reservationNumber" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3" for="email">Email</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="emailAddress" name="emailAddress" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3" for="phoneNumber">Phone #</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="phoneNumber" name="phoneNumber" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3" for="notes">* Notes:</label>
<div class="col-sm-9">
<textarea type="text" class="form-control" required id="notes" name="notes" rows="3"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" type="submit">Save</button>
<button type="button" class="btn btn-default" data-dismiss="modal">
Close
</button>
</div>
</form>
</div>
</div>
</div>
</template>
<template name="ticketView">
<div>
{{> ticketItemView}}
</div>
<div id="tickets-list" class="tickets-list ">
<div class="btn-group btn-group-justified">
{{#if oleryTabs}}
<div class="btn-group btn-group-lg">
<button class="btn1 email-btn {{resolvedActive}} {{#if noEmail}}simptip-position-top{{/if}}"
id="respondTab" style="background: #41e1eb;">
Respond
</button>
</div>
{{else}}
<div class="btn-group btn-group-lg">
<button class="btn1 email-btn {{resolvedActive}} {{#if noEmail}}simptip-position-top{{/if}}"
id="emailtab" disabled="{{noEmail}}"
data-tooltip="{{#if noEmail}}In-app communication unavailable for Custom Ticket{{/if}}">
Email
{{#unless noEmail}}<label class="counts">({{emailcount}})</label>{{/unless}}
</button>
</div>
<div class="btn-group btn-group-lg">
<button class="btn1 sms-btn {{resolvedActive}} {{#if noPhone}}simptip-position-top{{/if}}"
id="smstab" disabled="{{noPhone}}"
data-tooltip="{{#if noPhone}}In-app communication unavailable for Custom Ticket{{/if}}">
SMS
{{#unless noPhone}}<label class="counts">({{smscount}})</label>{{/unless}}
</button>
</div>
{{/if}}
<div class="btn-group btn-group-lg">
<button class="btn1 staff-btn {{unresolvedActive}}" id="staffnotestab">Notes
<label class="counts">({{staffcount}})</label>
</button>
</div>
</div>
</div>
<div id="show" style="display: none;">
<div class="comments">
{{> commentsList}}
</div>
<div class="comment-form">
{{> commentSubmit}}
</div>
</div>
<div id="show2" style="display: none;">
<div class="comments">
{{> sendEmailList}}
</div>
{{#unless noEmail}}
<div class="comment-form">
{{> sendemail}}
</div>
{{/unless}}
</div>
<div id="show3" style="display: none;">
<div class="comments">
{{> sendSmsList}}
</div>
{{#unless noPhone}}
<div class="comment-form">
{{#if isPhoneNumberExists}}
{{> sendsms}}
{{/if}}
{{> closesms}}
</div>
{{/unless}}
</div>
<div id="show4" style="display: none;">
<div class="comments">
<div class="panel panel-danger resolution-history" style="border-color: #41E1EB;">
<div class="panel-heading" style="background: #41e1eb; border-color: #41E1EB;">
<p>Respond directly on the review site.</p>
</div>
<div class="panel-body" style="max-height: none; border-color: #41E1EB;">
<p>
You can respond to this review using the link below. It will take you to the site's admin portal where you
can post a reply.
</p>
{{#if oleryIframe}}
<iframe src="{{oleryTabs.respond_url}}" style="width: 100%; height: 450px;"></iframe>
{{else}}
<a href="{{oleryTabs.respond_url}}" target="_blank">
{{oleryTabs.respond_url}}
</a>
{{/if}}
</div>
</div>
</div>
</div>
</template>
<template name="analytics">
<div class="panel panel-success analytics scrollbar ">
<div class="panel-heading">
<h2>Statistics</h2>
</div>
<div class="">
{{#if mobile}}
<div id="statistics-dashboard" style="border: 1px solid white">
<div class="row">
<button class="btn btn-primary {{overallActive}} col-xs-3" id="overall" style="border: 1px solid white; font-size: 8px; padding: 10px 0; text-align: center;">
{{#if smallMobile}}
<img src="/Overall_icon.png" style="height: 12px; width: 12px;">
{{else}}
<img src="/Overall_icon.png" style="height: 20px; width: 20px;">
{{/if}}
Overall
</button>
<button class="btn btn-primary {{teamActive}} col-xs-3" id="team" style="border: 1px solid white; font-size: 8px; padding: 10px 0; text-align: center;">
{{#if smallMobile}}
<img src="/Team_icon.png" style="height: 12px; width: 12px;">
{{else}}
<img src="/Team_icon.png" style="height: 20px; width: 20px;">
{{/if}}
Team
</button>
<button class="btn btn-primary {{resolutionActive}} col-xs-3" id="resolution" style="border: 1px solid white; font-size: 8px; padding: 10px 0; text-align: center;">
{{#if smallMobile}}
<img src="/Resolution_icon.png" style="height: 12px; width: 12px; padding: 0; margin: 0;">
{{else}}
<img src="/Resolution_icon.png" style="height: 20px; width: 20px;">
{{/if}}
Resolve
</button>
<button class="btn btn-primary {{shiftActive}} col-xs-3" id="shift" style="border: 1px solid white; font-size: 8px; padding: 10px 0; text-align: center;">
{{#if smallMobile}}
<img src="/Shifts_icon.png" style="height: 12px; width: 12px; padding: 0; margin: 0;">
{{else}}
<img src="/Shifts_icon.png" style="height: 20px; width: 20px;">
{{/if}}
Shift
</button>
</div>
</div>
{{else}}
<div id="statistics-dashboard">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<button class="btn btn-primary {{overallActive}} col-md-3 col-xs-12" id="overall"
style="width: 100%; padding-left: 5px; border: 1px solid white; border-left: none; font-size: 12px; font-style: italic;">
<img src="/Overall_icon.png" style="height:20px; width: 20px;">
Overall
</button>
</div>
<div class="btn-group">
<button class="btn btn-primary {{teamActive}} col-md-3 col-xs-12" id="team"
style="width:90%; padding-left: 5px; border: 1px solid white; font-size: 12px; font-style: italic;">
<img src="/Team_icon.png" style="height: 20px; width: 20px;">
Team
</button>
</div>
<div class="btn-group">
<button class="btn btn-primary {{resolutionActive}} col-md-3 col-xs-12" id="resolution"
style="width: 125%; padding-left: 5px; margin-left: -10px; border: 1px solid white; font-size: 12px; font-style: italic;">
<img src="/Resolution_icon.png" style="height:20px; width:20px;">
Resolution
</button>
</div>
<div class="btn-group">
<button class="btn btn-primary {{shiftActive}} col-md-3 col-xs-12" id="shift"
style="width: 90%; padding-left: 5px; margin-left: 10px; border: 1px solid white; border-right: none; font-size: 12px; font-style: italic;">
<img src="/Shifts_icon.png" style="height:20px; width:20px;">
Shift
</button>
</div>
</div>
</div>
{{/if}}
</div>
{{#if overallActive}}
<div class="panel-body">
<div id="total-tickets">
{{> totalTickets}}
</div>
<div id="active-staff">
{{> activeStaff}}
</div>
</div>
{{/if}}
{{#if resolutionActive}}
<div class="panel-body">
<div id="tickets-graph">
{{> ticketsGraph}}
</div>
</div>
{{/if}}
{{#if shiftActive}}
<div class="panel-body">
{{> shiftStatistics }}
</div>
{{/if}}
{{#if teamActive}}
<div class="panel-body">
<div id="comment-stats">
{{> commentStats}}
</div>
<div id="department-stats">
{{> departmentStats}}
</div>
</div>
{{/if}}
</div>
</template>
Let me know if there is anything else I can provide to help! Can add the JS files if necessary. Any help would be much appreciated!

Input:checked + after element not working

I'm trying to stylize my checkbox inputs. Everything works fine except the CHECKED option.
input:checked is working ok alone.... but when I add .filter__checkgroup::after nothing happens.
CSS:
.filter__checkgroup input[type="checkbox"] {
opacity: 0;
cursor: pointer;
width: 50px;
}
.filter__checkgroup-title {
padding-left: 6px;
}
.filter__checkgroup::before{
position: absolute;
margin-top: 5px;
border-radius: 1px;
width: 12px;
height: 12px;
border: 1px solid #999;
content: "";
cursor: pointer;
}
.filter__checkgroup::after {
position: absolute;
left: 37px;
margin-top: 7px;
height: 6px;
width: 8px;
border-left: 2px solid;
border-bottom: 2px solid;
color: #d19b4d;
transform: rotate(-45deg);
cursor: pointer;
content: "";
opacity: 0;
}
.filter__checkgroup:hover::after {
content: "";
opacity: 100 !important;
}
input:checked + .filter__checkgroup::after {
content: "" !important;
opacity: 100 !important;
}
HTML:
<section id="premmerce_filter_filter_widget-3" class="widget widget_premmerce_filter_filter_widget">
<div class="titulo-filtro"><span>SHOP BY</span></div>
<div class="filter filter--style-default" data-premmerce-filter="">
<div class="filter__item filter__item--type-checkbox" data-premmerce-filter-drop-scope="">
<div class="filter__header">
<div class="filter__title">
Categoria </div>
</div>
<div class="filter__inner " data-premmerce-filter-inner="">
<div class="filter__properties-list">
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-product_cat-blazers-e-jaquetas" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_product_cat=blazers-e-jaquetas&query_type_product_cat=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-product_cat-blazers-e-jaquetas"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-product_cat-blazers-e-jaquetas">
Blazers e Jaquetas </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-product_cat-calcas" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_product_cat=calcas&query_type_product_cat=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-product_cat-calcas"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-product_cat-calcas">
Calças </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-product_cat-sem-categoria" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_product_cat=sem-categoria&query_type_product_cat=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-product_cat-sem-categoria"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-product_cat-sem-categoria">
Sem categoria </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
13 </span>
</div>
</div>
</div>
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-product_cat-shorts-saias" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_product_cat=shorts-saias&query_type_product_cat=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-product_cat-shorts-saias"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-product_cat-shorts-saias">
Shorts e saias </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="filter__item filter__item--type-checkbox" data-premmerce-filter-drop-scope="">
<div class="filter__header">
<div class="filter__title">
Cor </div>
</div>
<div class="filter__inner " data-premmerce-filter-inner="">
<div class="filter__properties-list">
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-cor-dourado" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_cor=dourado&query_type_cor=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-cor-dourado"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-cor-dourado">
Dourado </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-cor-marrom" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_cor=marrom&query_type_cor=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-cor-marrom"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-cor-marrom">
Marrom </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
<div class="filter__properties-item ">
<div class="filter__checkgroup" data-filter-control-checkgroup="">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox" data-filter-control="" id="filter-checkgroup-id-cor-xadrez" data-premmerce-filter-link="https://ouipetite.com.br/loja?filter_cor=xadrez&query_type_cor=or">
<label class="filter__checkgroup-check" data-filter-control-label="" for="filter-checkgroup-id-cor-xadrez"></label>
<label class="filter__checkgroup-title " for="filter-checkgroup-id-cor-xadrez">
Xadrez </label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">
1 </span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
In order for input:checked + .filter__checkgroup::after to work, the input would have to be a sibling of .filter__checkgroup, but instead it's a child.
There's no way to select this way in CSS, but you could use JS to do it. Like:
var checks = document.querySelectorAll('.filter__checkgroup-control')
checks.forEach( function(el) {
var root = el.closest('.filter__checkgroup')
el.addEventListener('click', function() {
root.classList.toggle("checked")
})
})
.filter__checkgroup::after {
content: "something";
display: block !important;
padding: 1em;
background: blue;
color: white;
clear: both;
opacity: 0;
}
.filter__checkgroup.checked::after {
opacity: 1;
}
<div class="filter__properties-item">
<div class="filter__checkgroup">
<div class="filter__checkgroup-body">
<div class="filter__checkgroup-link">
<input class="filter__checkgroup-control" type="checkbox">
<label class="filter__checkgroup-check"></label>
<label class="filter__checkgroup-title">Dourado</label>
</div>
</div>
<div class="filter__checkgroup-aside">
<span class="filter__checkgroup-count">1</span>
</div>
</div>
</div>

My Last Element in the div Overflows so Only Half of the Element is Visible

I'm preparing my site for mobile browsers, so on Chrome Dev Tools i've tested on 320 x 568 size and i've encountered this problem.
My button element is on the bottom of the div, but half of the button is visible, other half is not.
Screenshot on the situation
I've tried to style the background (background-size etc) but the changes did not solve the issue.
What's the basic documentation / suggestion to overcome this problem?
Parent Div
<div class="view" id="activeSubstance" data-spy="activeSubstance" data-target="#activeSubstance" style="background-image: url('img/calculate_02.jpg'); background-repeat: no-repeat; background-size: cover; background-position: center center;"></div>
The Child
<div class="row text-center align-items-center mt-3">
<div class="col" id="calculate">
<button type="button" class="btn btn-cyan btn-lg disabled" id="calcButton">Hesaplayalım</button>
</div>
</div>
Full Code
<div class="view" id="activeSubstance" data-spy="activeSubstance" data-target="#activeSubstance" style="background-image: url('img/calculate_02.jpg'); background-repeat: no-repeat; background-size: cover; background-position: center center;">
<!-- Mask & flexbox options-->
<div class="mask rgba-stylish-light align-items-center flex-center">
<!-- Content -->
<div class="container">
<div class="row mt-3">
<!--Dropdown primary-->
<div class="col mt-2">
<!--Dropdown primary-->
<div class="dropdown">
<!--Trigger-->
<a class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" style="display: block">Etken Madde Seçimi</a>
<!--Menu-->
<div class="dropdown-menu dropdown-primary" id="substanceList">
<a class="dropdown-item">Daptomisin - <small>Cubicin</small></a>
<a class="dropdown-item">Ertapenem sodyum - <small>İnvanz</small></a>
<a class="dropdown-item">Flukonazol - <small>Lumen EF</small></a>
<a class="dropdown-item">İmipenem / Silastatin sodyum - <small>Tienam</small></a>
<a class="dropdown-item">Kolistimetat sodyum - <small>Colimycin</small></a>
<a class="dropdown-item">Levofloksasin - <small>Tavanic</small></a>
<a class="dropdown-item">Linezolit - <small>Zyvoxid</small></a>
<a class="dropdown-item">Meropenem trihidrat - <small>Meronem</small></a>
<a class="dropdown-item">Metronidazol - <small>Metronidazol</small></a>
<a class="dropdown-item">Moksifloksasin hidroklorür - <small>Avelox</small></a>
<a class="dropdown-item">Piperasilin sodyum / Tazobaktam sodyum - <small>Tazocin EF</small></a>
<a class="dropdown-item">Sefoperazon sodyum / Sulbaktam sodyum - <small>Sulperazon</small></a>
<a class="dropdown-item">Siprofloksasin laktat - <small>Ciproktan</small></a>
<a class="dropdown-item">Teikoplanin - <small>Targocid</small></a>
<a class="dropdown-item">Tigesiklin - <small>Tygacil</small></a>
<a class="dropdown-item">Vankomisin hidroklorür - <small>Vancotek</small></a>
</div>
</div>
</div>
<!--/Dropdown primary-->
<!--Dropdown primary-->
<div class="col mt-2">
<!--Dropdown primary-->
<div class="dropdown">
<!--Trigger-->
<a class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" style="display: block">Cockcroft-Gault Denklemi</a>
<!--Menu-->
<div class="dropdown-menu dropdown-info" id="methodlist">
<a class="dropdown-item2" id="willDisable">Cockcroft-Gault Denklemi</a>
<a class="dropdown-item2" id="willDisable2">e-GFR Hesaplayıcısı</a>
</div>
</div>
</div>
<!--/Dropdown primary-->
</div>
<div class="row mt-3">
<div class="col" style="display:none" id="notNeeded">
<p class="note note-info wow fadeIn" id="nonDiyaText">Bu etken madde için böbrek yetmezliği durumunda doz ayarlaması gerekmemektedir.</p>
</div>
</div>
<div class="row text-center align-items-center" id="cockgaulty">
<div class="col-6 col-lg-2">
<select class="browser-default custom-select" id="gender1">
<option selected>Cinsiyet</option>
<option value="1">Erkek</option>
<option value="2">Kadın</option>
</select>
</div>
<div class="col-6 col-lg-2 md-form input-group mb-3">
<input type="number" id="age1" class="form-control" placeholder="Yaş" aria-label="Yaş" aria-describedby="material-addon1" step='1' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-2 md-form input-group mb-3">
<input type="number" id="srcr1" class="form-control" placeholder="Serum kreatinini" aria-label="Serum kreatinini" aria-describedby="material-addon1" step='0.01' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-2">
<select class="browser-default custom-select" id="crunit1">
<option selected value="1">mg/dL</option>
<option value="2">‎µmol/L</option>
</select>
</div>
<div class="col-6 col-lg-2 md-form input-group mb-3">
<input type="number" id="weight" class="form-control" placeholder="Ağırlık" aria-label="Ağırlık" aria-describedby="material-addon1" step='0.5' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-2 custom-control custom-checkbox mt-3" id="diya1" style="padding-left: 2.5rem;">
<input type="checkbox" class="custom-control-input" id="diyaliz1">
<label class="custom-control-label" id="dia1" for="diyaliz1">Hemodiyaliz Alıyor</label>
</div>
</div>
<div class="row text-center align-items-center" style="display:none" id="egfry">
<div class="col-6 col-lg-2">
<select class="browser-default custom-select" id="gender2">
<option selected>Cinsiyet</option>
<option value="1">Erkek</option>
<option value="2">Kadın</option>
</select>
</div>
<div class="col-6 col-lg-1 md-form input-group mb-3">
<input type="number" id="age2" class="form-control" placeholder="Yaş" aria-label="Yaş" aria-describedby="material-addon1" step='1' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-2 md-form input-group mb-3">
<input type="number" id="srcr2" class="form-control" placeholder="Serum kreatinini" aria-label="Serum kreatinini" aria-describedby="material-addon1" step='0.01' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-1">
<select class="browser-default custom-select" id="crunit2">
<option selected value="1">mg/dL</option>
<option value="2">‎µmol/L</option>
</select>
</div>
<div class="col-6 col-lg-1 md-form input-group mb-3">
<input type="number" id="nitrog" class="form-control" placeholder="BUN" aria-label="BUN" aria-describedby="material-addon1" step='0.01' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-2 md-form input-group mb-3">
<input type="number" id="albumin" class="form-control" placeholder="Albumin" aria-label="Albumin" aria-describedby="material-addon1" step='0.01' autocomplete="off" min="0">
</div>
<div class="col-6 col-lg-1 custom-control custom-checkbox mt-2">
<input type="checkbox" class="custom-control-input" id="black">
<label class="custom-control-label" for="black">Siyahi</label>
</div>
<div class="col-6 col-lg-2 custom-control custom-checkbox mt-2" id="diya2">
<input type="checkbox" class="custom-control-input" id="diyaliz2">
<label class="custom-control-label" id="dia2" for="diyaliz2">Hemodiyaliz Alıyor</label>
</div>
</div>
<div class="row mt-3">
<div class="col" id="infoDiv">
<p class="note note-info wow fadeIn" id="infoText"><strong>Cockcroft-Gault Denklemi </strong>ile hesaplama yaparken cinsiyet, yaş, ağırlık ve serum kreatinini değerlerini girmeniz gerekir.</p>
</div>
</div>
<div class="row text-center align-items-center mt-3">
<div class="col" id="calculate">
<button type="button" class="btn btn-cyan btn-lg disabled" id="calcButton">Hesaplayalım</button>
</div>
</div>
<!-- /Content -->
</div>
</div>
Problem Causing "view" class CSS
.view {
position: relative;
overflow: hidden;
cursor: default; }
.view .mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
width: 100%;
height: 100%;
background-attachment: fixed; }
.view img, .view video {
position: relative;
display: block; }
.view video.video-intro {
z-index: -100;
top: 50%;
left: 50%;
-webkit-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
-webkit-transition: 1s opacity;
-o-transition: 1s opacity;
transition: 1s opacity;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto; }
PS: As you can see in the screenshot, "The end of the div" i've mentioned is not the end of the page, instead another DIV starts. But my button overflowed from the div above and only half of it is visible
close the div class="view" may be your problem resolved

Embed a search form in Bootstrap 3 panel heading

I'm attempting to embed a search form at the right side of a panel heading:
<div class="panel-heading">
<h3 class="panel-title">Results <span class="badge">6</span></h3>
<form class="form-inline pull-right" role="search" method="get" action="/tbl">
<div class="form-group">
<input type="text" name="criteria" class="form-control" value="<%= params[:criteria] if params[:criteria] %>" placeholder="<%= params[:criteria]? params[:criteria] : 'Enter search criteria (e.g. FOOBAR_%)' %>">
<div class="input-group-btn">
<button class="btn btn-primary"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
Unfortunately, I'm having alignment issues:
In Safari (8.0.3):
In Firefox (35.0.1):
Is there a way to do this, preferably without custom CSS?
JSFiddle
Almost, see this fiddle
I put the heading and search box into col divs, but id have to add a little padding to he title to get it to line up with the search box
CSS:
.padFix{
padding-top:8px;
}
HTML:
<div class="panel-heading ">
<div class="row">
<div class="col-sm-6">
<h3 class="panel-title padFix">Results <span class="badge">6</span></h3></div>
<div class="col-sm-6">
<form role="search" method="get" action="/tbl">
<div class="input-group">
<input type="text" name="criteria" class="form-control" value="<%= params[:criteria] if params[:criteria] %>" placeholder="<%= params[:criteria]? params[:criteria] : 'Enter search criteria (e.g. FOOBAR_%)' %>">
<div class="input-group-btn">
<button class="btn btn-primary"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
</div>
</div>
Here am sharing my answer, this might be useful
JS Fiddle
Here is the code
HTML
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<h4 class="panel-title pull-left" style="padding-top: 7.5px;">
Header
</h4>
<div class="btn-group pull-right">
<input type="text" class="custom_input">
<button class="btn btn-success pull-right" style="height: 30px;">
Search
</button>
</div>
</div>
<div class="panel-body">
Content Body
</div>
<div class="panel-footer">
Content Footer
</div>
</div>
</div>
</div>
CSS
.custom_input {
padding: 4px 5px;
border: 1px solid #d3e0e9;
border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
border-right: none;
height: 30px;
}
thank You :-)

Resources