/********************************************************************************
 * Copyright (C) 2017, 2018 TypeFox and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the Eclipse
 * Public License v. 2.0 are satisfied: GNU General Public License, version 2
 * with the GNU Classpath Exception which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 ********************************************************************************/

@import url('~@phosphor/widgets/style/index.css');
@import url('~font-awesome/css/font-awesome.min.css');

/*-----------------------------------------------------------------------------
| General
|----------------------------------------------------------------------------*/
html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

input::-ms-clear,
input::-ms-reveal {
  display: none;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  color: #ffffffd9;
  font-family: var(--g-ui-font-family);
  font-variant: tabular-nums;
  line-height: 1.5715;
  font-feature-settings: tnum, 'tnum';
  background: var(--g-editor-background);
  color: var(--g-foreground);
}

[tabindex='-1']:focus {
  outline: none !important;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #ffffffd9;
  font-weight: 500;
}

p {
  margin: 0;
}

abbr[title],
abbr[data-original-title] {
  text-decoration: underline;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}

address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}

input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}

ol,
ul,
dl {
  margin: 0;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 500;
}

dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1em;
}

dfn {
  font-style: italic;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}
/* body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--g-ui-font-family);
  background: var(--g-editor-background);
  color: var(--g-foreground);
  border: 1px solid var(--g-window-activeBorder);
} */

body:window-inactive,
body:-moz-window-inactive {
  border-color: var(--g-window-inactiveBorder);
}

a {
  color: var(--g-textLink-foreground);
}

a:active,
a:hover {
  color: var(--g-textLink-activeForeground);
}

code {
  color: var(--g-textPreformat-foreground);
}

blockquote {
  background: var(--vscode-textBlockQuote-background);
  border: var(--g-border-width) solid var(--g-textBlockQuote-border);
}

.theia-input {
  background: var(--g-input-background);
  color: var(--g-input-foreground);
  border: var(--g-border-width) solid var(--g-input-border);
  font-family: var(--g-ui-font-family);
  font-size: var(--g-ui-font-size1);
  line-height: var(--g-content-line-height);
  padding-left: 5px;
}

.theia-input::placeholder {
  color: var(--g-input-placeholderForeground);
}

.theia-maximized {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 255 !important;
  background: var(--g-editor-background);
}

.theia-ApplicationShell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g-editor-background);
}

.gedit-preload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 50000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s;
  flex-direction: column;
}
.gedit-preload:before {
  content: '';
  display: block;
  width: 160px;
  height: 160px;
  background-image: url('https://mdn.alipayobjects.com/mrch_cogame/afts/img/A*PCvHRbezH1UAAAAAAAAAAAAADoV3AQ/original');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.gedit-preload:after {
  font-size: 14px;
  opacity: 0.5;
  margin-top: -10px;
  content: '小九正在召唤资源···';
}
.gedit-preload.theia-hidden {
  opacity: 0;
}

.theia-icon {
  width: 32px;
  height: 18px;
  margin: 5px;
  margin-left: 8px;
}

.theia-mod-disabled {
  opacity: var(--g-mod-disabled-opacity);
}

.theia-header {
  text-transform: uppercase;
  font-size: var(--g-ui-font-size0);
  font-weight: 450;
}

.p-Widget {
  font-size: var(--g-ui-font-size1);
  cursor: inherit;
}

.p-Widget.p-mod-hidden {
  display: none !important;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                     supported by Chrome and Opera */
}

/* :focus {
    outline-width: 1px;
    outline-style: solid;
    outline-offset: -1px;
    opacity: 1 /* !important 与 antd 冲突;
    outline-color: var(--g-focusBorder);
} */

/* ::selection {
  background: var(--g-selection-background) !important;
} */

.p-Widget:focus {
  /* border: none; */
  outline: none;
}

button.theia-button,
.theia-button {
  border: none;
  color: var(--g-button-foreground);
  background-color: var(--g-button-background);
  min-width: 65px;
  outline: none;
  cursor: pointer;
  padding: 4px 9px;
  margin-left: calc(var(--g-ui-padding) * 2);
  border-radius: 1px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2),
    0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 1px -2px rgba(0, 0, 0, 0.12);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

button.theia-button:hover,
.theia-button:hover,
.theia-button:focus {
  background-color: var(--g-button-hoverBackground);
}

button.secondary,
.theia-button.secondary {
  color: var(--g-secondaryButton-foreground);
  background-color: var(--g-secondaryButton-background);
}

button.secondary:hover,
.theia-button.secondary:hover {
  background-color: var(--g-secondaryButton-hoverBackground);
}

button.theia-button[disabled],
.theia-button[disabled] {
  opacity: 0.6;
  color: var(--g-button-disabledForeground);
  background-color: var(--g-button-disabledBackground);
  cursor: default;
}

button.secondary[disabled],
.theia-button.secondary[disabled] {
  color: var(--g-secondaryButton-disabledForeground);
  background-color: var(--g-secondaryButton-disabledBackground);
}

.theia-select {
  color: var(--dropdown-foreground);
  font-size: var(--g-ui-font-size1);
  border-radius: 0;
  border: 1px solid var(--g-dropdown-border);
  background: var(--g-dropdown-background);
  outline: none;
}

.theia-select option {
  background: var(--g-dropdown-listBackground);
}

.theia-transparent-overlay {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
}

/*-----------------------------------------------------------------------------
| Import children style files
|----------------------------------------------------------------------------*/

@import './dockpanel.css';
@import './dialog.css';
@import './menus.css';
@import './sidepanel.css';
@import './tabs.css';
@import './scrollbars.css';
@import './tree.css';
@import './status-bar.css';
@import './tree-decorators.css';
@import './about.css';
@import './search-box.css';
@import './ansi.css';
@import './view-container.css';
@import './notification.css';
@import './alert-messages.css';
@import './icons.css';
@import './widget.css';
@import './quick-title-bar.css';
@import './progress-bar.css';
