1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17/* Forked from https://microsoft.github.io/monaco-editor/ */ 18 19.try .drops { 20 margin: 0; 21 list-style: none; 22 float: right; 23} 24 25.try .drops li { 26 float: left; 27 width: auto; 28 height: auto; 29 text-indent: 0; 30 font-size: 26px; 31 line-height: normal; 32 margin: 0 12px; 33 cursor: pointer; 34} 35 36.try .drops li a:hover, 37.try .drops li a:focus { 38 text-decoration: none; 39} 40 41.try .drops li h4 { 42 color: #999; 43} 44 45.try .drops li.active h4, 46.try .drops li.active:hover h4 { 47 color: #0072C6; 48} 49 50.try .drops li:hover h4 { 51 color: rgba(0, 114, 198, .5); 52} 53 54.try .editor.row { 55 padding: 18px 0 56} 57 58.try .row h4 { 59 padding-bottom: 6px; 60} 61 62.try .tile { 63 position: relative; 64 height: 72px; 65 border: 1px solid #ddd; 66 text-align: right; 67 overflow: hidden; 68 cursor: pointer; 69 70 -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); 71 -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); 72 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); 73 74 -webkit-box-sizing: border-box; 75 -o-box-sizing: border-box; 76 -moz-box-sizing: border-box; 77 -ms-box-sizing: border-box; 78 box-sizing: border-box; 79} 80 81.try .tile:hover { 82 -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); 83 -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); 84 box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); 85} 86 87.try .tile h4 { 88 margin: 0; 89 position: absolute; 90 right: 12px; 91 bottom: 12px; 92 z-index: 1; 93} 94 95.try .tile .glyph { 96 position: absolute; 97 left: 12px; 98 bottom: -6px; 99 background: url('../img/cloud.png') no-repeat; 100 background-size: 80px 43px; 101 height: 43px; 102 width: 80px; 103 104 opacity: .5; 105 transition: opacity .5s ease, bottom .5s ease; 106 -webkit-transition: opacity .5s ease, bottom .5s ease; 107} 108 109.try .tile:hover .glyph { 110 opacity: 1; 111 bottom: -2px; 112} 113 114.try .editor.row h4 small { 115 color: #555; 116} 117 118.try .editor.row .control-label { 119 display: inline-block; 120 position: relative; 121 top: -4px; 122 margin-right: 4px; 123} 124 125.try .editor.row .monaco-editor .find-widget input[type="text"] { 126 margin-bottom: 0; 127 -webkit-box-shadow: none; 128 -moz-box-shadow: none; 129 box-shadow: none; 130 -webkit-transition: none; 131 -moz-transition: none; 132 -o-transition: none; 133 transition: none; 134} 135 136.try .editor.row .monaco-editor .find-widget .monaco-checkbox .label { 137 min-height: 20px; 138 min-width: 20px; 139} 140 141.try .editor.row .monaco-editor .find-widget .close { 142 float: none; 143 opacity: 1; 144} 145 146.try .editor .editor-frame { 147 position: relative; 148} 149 150.try .editor .editor-frame #editor, 151.try .editor .editor-frame #diff-editor { 152 height: 400px; 153 margin-bottom: 10px; 154 border: 1px solid #eee; 155} 156 157.try .editor .editor-frame .loading { 158 position: absolute; 159 height: 100%; 160 width: 100%; 161 background-color: rgba(255, 255, 255, .5); 162 margin: 0 auto; 163 display: none; 164 z-index: 100; 165} 166 167.try .editor .editor-frame .progress { 168 width: 50%; 169 margin: 15% auto 0; 170} 171 172.try .editor .editor-frame .progress .bar { 173 width: 100%; 174 background-color: #4bb1cf; 175} 176 177.try .editor .editor-frame #editor .alert, 178.try .editor .editor-frame #diff-editor .alert { 179 margin: 18% auto 0; 180 width: 30%; 181 text-align: center; 182 color: #b94a48; 183 background-color: #f2dede; 184 border-color: #eed3d7; 185} 186 187.try .editor #editor .monaco-editor .row, 188.try .editor #diff-editor .monaco-editor .row { 189 margin-left: 0; 190} 191 192.try .editor .vs.monaco-editor .context-view.monaco-menu-container a { 193 color: #646465; 194} 195 196.try .editor .vs-dark.monaco-editor .context-view.monaco-menu-container a { 197 color: #BBB; 198} 199 200@media (min-width: 1200px) { 201 .try .editor .row { 202 margin-left: 0px; 203 } 204} 205 206@media (max-width: 767px) { 207 .try .container { 208 margin: 0 24px; 209 } 210 211 .try .tile h4 { 212 right: 6px; 213 } 214 215 .try .editor > .span9 .row .span4 { 216 float: left; 217 width: 50%; 218 } 219 220 .try .editor h4 { 221 margin-top: 0; 222 } 223} 224 225@media (max-width: 520px) { 226 .try .editor > .span3 p, 227 .try .editor > .span3 h4 { 228 display: none; 229 } 230} 231 232@media (max-width: 320px) { 233 .try .editor > .span9 { 234 display: none; 235 } 236} 237 238/* ------- BEGIN bootstrap fixes for the editor ------- */ 239 240.monaco-editor .container:before, .monaco-editor .row:before { 241 content: ""; 242 display: inherit; 243} 244 245.monaco-editor .container:after, .monaco-editor .row:after { 246 clear: inherit; 247} 248 249.monaco-editor .container { 250 width: auto; 251 margin: inherit; 252 padding: inherit; 253} 254 255.monaco-editor .close { 256 float: none; 257 font-size: inherit; 258 font-weight: inherit; 259 line-height: inherit; 260 color: inherit; 261 text-shadow: inherit; 262 opacity: inherit; 263 filter: inherit; 264} 265 266.monaco-editor .row { 267 margin: inherit; 268} 269 270.monaco-editor .invisible { 271 visibility: visible; 272} 273 274/* ------- END bootstrap fixes for the editor ------- */ 275