search.scss 2.97 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
//colors
$color_celeste_approx: #1D1F2B;
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 22px;
    margin-left: 8px;
    input {
        display: none;
    }
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: $color_celeste_approx;
    //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
    transition: .4s;
    &:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 3px;
        background-color: $color_jungle_green_approx;
        //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
        transition: .4s;
    }
    &.round {
        //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
        border-radius: 34px;
        &:before {
            //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
            border-radius: 50%;
        }
    }
}

input {
    &:checked + .slider {
        background-color: $color_celeste_approx;
        &:before {
            //Instead of the line below you could use @include transform($scale, $rotate, $transx, $transy, $skewx, $skewy, $originx, $originy)
            transform: translateX(26px);
        }
    }
    &:focus + .slider {
        //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
        box-shadow: 0 0 1px $color_celeste_approx;
    }
}

.advanceSearchBtn {
    float: right;
}

.advanceSearchTagInput {
    margin-bottom: 20px;
}

.advanceSearchTermInput {
    margin-bottom: 20px;
}
88

89 90 91 92 93 94
.clearAdvanceSearch {
    display: inline-block;
    float: left;
    margin-top: 10px;
    cursor: pointer
}
95 96 97 98

.labelShowRecord {
    line-height: 40px;
}