common.scss 4.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*
 * 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.
 */


/* common.scss */

.readOnly {
23

24 25 26 27 28 29 30
    span,
    button,
    a {
        i {
            &.fa-trash[data-guid] {
                display: none;
            }
31

32 33 34 35
            &.fa-trash[data-id="delete"] {
                display: none;
            }
        }
36

37 38 39
        &.btn[data-id="addTag"] {
            display: none;
        }
40

41 42 43
        &.btn[data-id="addTerm"] {
            display: none;
        }
44

45 46 47
        &.btn[data-id="editButton"] {
            display: none;
        }
48

49 50 51
        &.editbutton[data-id="editButton"] {
            display: none !important;
        }
52

53 54 55 56
        &[data-id="delete"],
        &[data-id="edit"] {
            display: none;
        }
57

58 59 60 61 62
        &.btn[data-id="tagClick"] {
            span {
                display: block;
                padding: 3px 5px 3px 5px;
            }
63

64 65 66 67 68 69 70
            i.fa-close[data-id="deleteTag"],
            i.fa-times[data-id="deleteTag"],
            i.fa-times[data-id="delete"] {
                display: none;
            }
        }
    }
71 72 73 74 75 76 77 78 79 80
}

.details-backbutton {
    display: none !important;
}

.full-screen {
    #sidebar-wrapper {
        left: 0;
    }
81

82 83 84 85 86 87 88 89 90
    #wrapper {
        padding-left: 0px;
    }
}

.detail-page {
    .details-backbutton {
        display: block !important;
    }
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
}

pre {
    background-color: ghostwhite;
    border: 1px solid silver;
    padding: 10px;
    white-space: -moz-pre-wrap;
    /* Mozilla, supported since 1999 */
    white-space: -pre-wrap;
    /* Opera */
    white-space: -o-pre-wrap;
    /* Opera */
    white-space: pre-wrap;
    /* CSS3 - Text module (Candidate Recommendation) http://www.w3.org/TR/css3-text/#white-space */
    word-wrap: break-word;
106

107 108 109 110 111 112 113
    /* IE 5.5+ */
    &.code-block {
        code {
            position: relative;
            max-height: 400px;
            display: block;
            overflow: auto;
114
            text-align: left;
115
        }
116

117 118
        position: relative;
        overflow: hidden;
119

120
        &.shrink {
121
            height: 112px;
122 123 124 125 126 127 128 129 130
            white-space: -moz-pre-wrap;
            /* Mozilla, supported since 1999 */
            white-space: -pre-wrap;
            /* Opera */
            white-space: -o-pre-wrap;
            /* Opera */
            white-space: pre-wrap;
            /* CSS3 - Text module (Candidate Recommendation) http://www.w3.org/TR/css3-text/#white-space */
            word-wrap: break-word;
131

132 133
            /* IE 5.5+ */
            code {
134
                height: 100px;
135
            }
136

137 138
            &.fixed-height {
                height: 75px;
139

140 141 142 143
                code {
                    height: 54px;
                }
            }
144

145 146 147
            &.medium-height {
                height: 100px;
            }
148

149 150 151 152 153 154
            .expand-collapse-button {
                i:before {
                    content: "\f107";
                }
            }
        }
155

156 157 158 159 160
        .expand-collapse-button {
            position: absolute;
            right: 3px;
            top: 4px;
            z-index: 1;
161

162 163 164 165
            i:before {
                content: "\f106";
            }
        }
166

167 168 169
        .json-key {
            color: brown;
        }
170

171 172 173
        .json-value {
            color: navy;
        }
174

175 176 177 178
        .json-string {
            color: olive;
        }
    }
179

180 181 182
    code {
        font-family: monospace;
    }
183 184 185
}

#accordion {
186
    .panel-default>.panel-heading {
187 188
        cursor: pointer;
    }
189
}