search.scss 2.65 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
//colors
$color_celeste_approx: #1D1F2B;
21 22
$switchTransition: .4s ease-out;
@mixin transition($transition...) {
23 24 25 26
    -webkit-transition: $transition;
    -moz-transition: $transition;
    -o-transition: $transition;
    transition: $transition;
27 28 29
}

@mixin transition-property($properties...) {
30 31 32 33
    -webkit-transition-property: $properties;
    -moz-transition-property: $properties;
    -o-transition-property: $properties;
    transition-property: $properties;
34 35
}

36
.switch {
37 38 39 40 41 42 43 44 45
    position: relative;
    width: 50px;
    height: 22px;
    margin-left: 8px;
    padding: 3px;
    vertical-align: top;
    background-color: $color_celeste_approx;
    border-radius: 18px;
    cursor: pointer;
46 47
}

48
.switch-input {
49 50 51 52
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
53 54
}

55 56
.switch-slider {
    position: absolute;
57 58
    top: 1px;
    left: 3px;
59 60 61
    width: 16px;
    height: 16px;
    border-radius: 10px;
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
    box-shadow: 1px 1px 5px rgba(black, .2);
    @include transition(left #{$switchTransition});
    &:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        margin: -6px 0 0 -8px;
        width: 16px;
        height: 16px;
        background-color: $color_jungle_green_approx;
        border-radius: 10px;
        box-shadow: inset 0 1px rgba(black, .02);
        @include transition(inherit)
    }
    .switch-input:checked ~ & {
        left: 30px;
        box-shadow: -1px 1px 5px rgba(black, .2);
    }
81 82 83 84 85 86 87 88 89 90 91 92 93
}

.advanceSearchBtn {
    float: right;
}

.advanceSearchTagInput {
    margin-bottom: 20px;
}

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

95 96 97 98 99 100
.clearAdvanceSearch {
    display: inline-block;
    float: left;
    margin-top: 10px;
    cursor: pointer
}
101 102 103 104

.labelShowRecord {
    line-height: 40px;
}
105 106 107 108

.btnAssign {
    margin-bottom: 15px;
}
109 110 111 112 113 114 115 116

.srchType {
    margin: 5px 0px;
    .srchTitle {
        font-size: 14px;
        color: $gray
    }
}