Skip Navigation

[Resolved] Custom search css styling

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1140428

Hi,

I'm trying to recreate the Trainer search widget:
https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/matching-elementor-styling-when-using-toolset/

But I can't find how to style the min/max price to look like the example:
The blue button in front of the text-input with the dollar sign.

Do you have a more detailed screenshot of the custom css applied to the search widget?

Thanks in advance.

#1140724

Hi, here is the full content of that CSS editor panel from the demo example:

/* We make the search form elegant and nicer */
.trainer-search-form {
  padding: 20px;
  margin-bottom: 50px;
  border-bottom: 1px solid #dedede;
}
.trainer-search-form .form-group {
    margin-bottom: 25px;
}
.form-group-degrees {
  display: flex;
  flex-wrap: wrap;
}
.form-group-degrees-label {
  display: block;
  margin-bottom: 1em;
}
.form-group-degrees .checkbox {
  top: 0;
  margin: 0 10px 0 0;
}

.form-group-degrees .checkbox  label {
  margin: 0;
  padding: 0;
}

.form-group-price-hour {
  display: inline-block;
  max-width: 150px;
  margin-right: 30px;
  margin-top: 30px;
  position: relative;
}
.form-group-price-hour label {
  margin-bottom: 15px;
}
.form-group-price-hour input {
  position: relative;
  width: 100%;
  max-width: 100px;
  margin-left: 40px;
  z-index: 2;
  text-align: center;
}
.form-group-price-hour input:focus{
  background: white;
}

.form-group-price-input {
  height: 40px;
  display: block;
  position: relative;
}
.form-group-price-input::after {
  position: absolute;
  content: "$";
  text-align: center;
  line-height: 40px;
  color: #fff;
  height: 100%;
  width: 40px;
  background: #13aff0;
  left: 0;
  top: 0;
  border-radius: 3px;
    font-size: 18px;
}

.search-button {
  margin: 2em;
  text-align: right;
}
.search-button button {
  border-radius: 25px;
}

.search-button .button-reset {
  text-indent: -99999em;
  position: relative;
  background: transparent;
}
.search-button .button-reset::after {
  position: absolute;
  text-indent: 0;
  font-size: 30px;
  content: "×";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
/* We style the results now */
.price-hour-table {
    min-width: 150px;
}
.search-trainer-results {
  border-collapse: collapse;
  border: 2px solid #f5f5f5;
}
.search-trainer-results thead {
  background: #f2f9ff;
  border: : 1px solid #c1e3fe;
}
.search-trainer-results thead tr th {
  padding: 25px 10px 10px 30px;
}
.search-trainer-results tbody td img {
  padding: 5px;
}
.search-trainer-results tbody td {
 border-top: 1px solid #c1e3fe;
  padding: 25px 10px 10px 30px !important;
}
.search-trainer-results tbody td h2 {
  text-align: center;
  font-size: 16px;
}

/* We make alternate colors for a better and elegant results rendering */
.search-trainer-results tbody tr:nth-child(even) {
  background: #f5f5f5;
}