feedback.css 6.2 KB
Newer Older
S
Sofian Hnaide 已提交
1 2 3 4 5 6 7 8 9
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
.monaco-shell .feedback-form {
	width: 420px;
	top: 30px;
	right: 6px;
	padding: 1em;
10
	cursor: default;
S
Sofian Hnaide 已提交
11 12 13 14 15 16 17 18 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
}

.monaco-shell .feedback-form h2 {
	margin: 0;
	padding: 0;
	font-weight: normal;
	font-size: 1.8em;
}

.monaco-shell .feedback-form h3 {
	margin: 1em 0 0;
	padding: 0;
	font-weight: normal;
	font-size: 1.2em;
}

.monaco-shell .feedback-form .content {
	font-size: 1.2em;
}

.monaco-shell .feedback-form .content > div {
	display: inline-block;
	vertical-align: top;
	margin-top: 20px;
}

.monaco-shell .feedback-form .content .contactus {
	padding: 10px;
	float: right;
}

.monaco-shell .feedback-form .content .channels {
	margin-top: 5px;
	font-size: 0.9em;
}

.monaco-shell .char-counter {
	padding-left: 3px;
}

/* TODO @C5 review link color */
.monaco-shell .feedback-form .content .channels a {
	padding: 2px 0;
}

W
Will Prater 已提交
56 57 58 59
.monaco-shell .feedback-form .content .channels a:hover {
	text-decoration: underline;
}

S
Sofian Hnaide 已提交
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
.monaco-shell .feedback-form .feedback-alias, .monaco-shell .feedback-form .feedback-description {
	resize: none;
	font-size: 1.1em;
	margin: 6px 0 0;
	width: 100%;
	padding: 3px 2px;
	box-sizing:			border-box;
}

.monaco-shell .feedback-form .feedback-empty {
	margin-top: .2em;
}

.monaco-shell .feedback-form .feedback-alias-checkbox {
	display: inline-block;
	vertical-align: text-top;
	margin-left: 0;
}

.monaco-shell .feedback-form .feedback-alias {
	height: 26px;
}

.monaco-shell .feedback-form .feedback-alias:disabled {
	opacity: 0.6;
}

.monaco-shell .feedback-form .cancel {
	position: absolute;
	top: 0;
	right: 0;
	padding: .5em;
	width: 22px;
	height: 22px;
	border: none;
	cursor: pointer;
}

.monaco-shell .feedback-form .form-buttons {
	margin-top: 18px;
	text-align: right;
}

.monaco-shell .feedback-form .send {
	padding: .5em 1.5em;
	font-size: 1.1em;
	margin: 0;
	box-sizing:			border-box;
	transition: width 200ms ease-out;
}

.monaco-shell .feedback-form .send.in-progress {
	width: 22%;
}

.monaco-shell .feedback-form .send.success,
.monaco-shell .feedback-form .send.error {
	width: 20%;
}

.monaco-shell .feedback-form .sentiment {
	height: 32px;
	width: 32px;
	display: inline-block;
	margin: .5em 0;
	cursor: pointer;
	box-sizing:			border-box;
}

.monaco-shell .feedback-form .sentiment:hover {
	background-color: #eaeaea;
}

/* Statusbar */
134
.monaco-shell .statusbar-item > .monaco-dropdown.send-feedback {
S
Sofian Hnaide 已提交
135 136 137
	display: inline-block;
}

138
.monaco-shell .statusbar-item > .monaco-dropdown.send-feedback > .dropdown-label.send-feedback {
139
	-webkit-mask: url('smiley.svg') no-repeat 50% 50%; /* use mask to be able to change color dynamically */
S
Sofian Hnaide 已提交
140 141 142 143 144 145 146 147 148 149 150 151 152 153
	width: 26px;
}

/* Theming */
.monaco-shell.vs .feedback-form .feedback-alias, .monaco-shell.vs .feedback-form .feedback-description {
	font-family: inherit;
	border: 1px solid transparent;
}


.monaco-shell.vs .feedback-form .cancel {
	background: url('close.svg') center center no-repeat;
}

154 155 156 157
.monaco-shell .feedback-form .form-buttons {
	display: flex;
}

B
Benjamin Pasero 已提交
158 159 160 161 162 163
.monaco-shell .feedback-form .form-buttons .hide-button-container {
	display: flex;
}

.monaco-shell .feedback-form .form-buttons .hide-button-container input,
.monaco-shell .feedback-form .form-buttons .hide-button-container label {
164 165 166
	align-self: center;
}

S
Sofian Hnaide 已提交
167 168 169 170
.monaco-shell .feedback-form .form-buttons .send {
	color: white;
	border: none;
	cursor: pointer;
171 172 173
	background-image: url('twitter.svg');
	background-color: #007ACC;
	background-position: left;
I
isidor 已提交
174
	background-size: 20px;
175 176 177 178 179
	background-repeat: no-repeat;
	padding-left: 30px;
	padding-right: 12px;
	border: 4px solid #007ACC;
	border-radius: 4px;
180
	margin-left: auto;
S
Sofian Hnaide 已提交
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
}

.monaco-shell .feedback-form .form-buttons .send.in-progress,
.monaco-shell .feedback-form .form-buttons .send:hover {
	background-color: #006BB3;
}

.monaco-shell .feedback-form .form-buttons .send:disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: .65;
}

.monaco-shell .feedback-form .form-buttons .send.success {
	background-color: #2d883e;
}

.monaco-shell .feedback-form .form-buttons .send.error {
	background-color: #E51400;
}

.monaco-shell.vs-dark .feedback-form h3 {
	font-weight: normal;
	font-size: 1.2em;
}

.monaco-shell.vs-dark .feedback-form .sentiment:hover {
208
	background-color: rgba(30,30,30,0.8);
S
Sofian Hnaide 已提交
209 210 211 212 213 214
}

.monaco-shell.vs-dark .feedback-form .feedback-alias, .monaco-shell.vs-dark .feedback-form .feedback-description {
	font-family: inherit;
}

B
Benjamin Pasero 已提交
215 216
.monaco-shell.vs-dark .feedback-form .cancel,
.monaco-shell.hc-black .feedback-form .cancel {
S
Sofian Hnaide 已提交
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
	background: url('close-dark.svg') center center no-repeat;
}

.monaco-shell .feedback-form .sentiment.smile {
	background-image: url('happy.svg');
	background-position: center;
	background-repeat: no-repeat;
}

.monaco-shell .feedback-form .sentiment.frown {
	background-image: url('sad.svg');
	background-position: center;
	background-repeat: no-repeat;
}

.monaco-shell .feedback-form .infotip {
	background-image: url('info.svg');
	background-position: center;
	background-repeat: no-repeat;

	height: 16px;
	width: 16px;
	display: inline-block;
	vertical-align: text-bottom;
	box-sizing:	border-box;
	margin-left: 5px;
}

/* High Contrast Theming */
246 247 248
.monaco-shell.hc-black .feedback-form {
	outline: 2px solid #6fc3df;
	outline-offset: -2px;
S
Sofian Hnaide 已提交
249 250 251
}

.monaco-shell.hc-black .feedback-form .feedback-alias, .monaco-shell.hc-black .feedback-form .feedback-description {
B
Benjamin Pasero 已提交
252
	font-family: inherit;
S
Sofian Hnaide 已提交
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
}

.monaco-shell.hc-black .feedback-form .content .contactus {
	padding: 10px;
	float: right;
}

.monaco-shell.hc-black .feedback-form .form-buttons .send,
.monaco-shell.hc-black .feedback-form .form-buttons .send.in-progress,
.monaco-shell.hc-black .feedback-form .form-buttons .send.success {
	background-color: #0C141F;
	color: #D4D4D4;
	border: 1px solid #6FC3DF;
}

.monaco-shell.hc-black .feedback-form .form-buttons .send:hover {
	background-color: #0C141F;
}


.monaco-shell .feedback-form .infotip {
	background: none;
}

.monaco-shell .feedback-form .infotip:before {
	content: url('info.svg');
	height: 16px;
	width: 16px;
	display: inline-block;
}