microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
iadavis/pipeline-issue-debugging

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

source/npm/qsharp/ux/atoms/index.css

182lines · modecode

1/* Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License. */
3
4.qs-atoms-app {
5 background-color: var(--qdk-host-background);
6 color: var(--qdk-host-foreground);
7 font-family: var(--qdk-font-family);
8 box-sizing: border-box;
9 width: 600px;
10 border: 1px solid var(--qdk-mid-gray);
11 border-radius: 8px;
12 margin: auto;
13 margin-top: 24px;
14 padding: 16px;
15 display: flex;
16 flex-direction: column;
17 position: relative;
18}
19
20.qs-atoms-app:focus {
21 outline: none;
22}
23
24.qs-atoms-toolstrip {
25 display: flex;
26 align-items: center;
27 justify-content: space-between;
28}
29
30.qs-atoms-toolbar {
31 height: 28px;
32 user-select: none;
33}
34
35.qs-atoms-icon > circle {
36 stroke: var(--qdk-host-foreground);
37 stroke-width: 6;
38 fill: transparent;
39 cursor: pointer;
40}
41
42.qs-atoms-icon > .qs-atoms-info-dot {
43 fill: var(--qdk-host-foreground);
44 stroke: none;
45 pointer-events: none;
46}
47
48.qs-atoms-icon > circle:hover {
49 stroke-width: 10;
50}
51
52.qs-atoms-icon > path {
53 stroke: none;
54 fill: var(--qdk-host-foreground);
55 pointer-events: none;
56}
57
58.qs-atoms-icon > .qs-atoms-icon-line {
59 fill: none;
60 stroke-width: 16;
61 stroke: var(--qdk-host-foreground);
62 stroke-linecap: round;
63 stroke-linejoin: round;
64}
65
66.qs-atoms-slider:focus {
67 outline: none;
68}
69
70.qs-atoms-step {
71 text-align: end;
72 margin-right: 20px;
73 user-select: none;
74 -webkit-user-select: none;
75}
76
77.qs-atoms-bigsmall {
78 margin-left: auto;
79}
80
81.qs-atoms-zones {
82 margin: 8px auto;
83}
84
85.qs-atoms-zone-text {
86 font-size: 8px;
87 font-family: system-ui;
88 fill: var(--qdk-mid-gray);
89 stroke-width: 0;
90 user-select: none;
91 -webkit-user-select: none;
92}
93
94.qs-atoms-label {
95 font-size: 6px;
96 font-family: system-ui;
97 fill: var(--qdk-foreground-muted);
98 stroke-width: 0;
99 user-select: none;
100 -webkit-user-select: none;
101 text-anchor: middle;
102 dominant-baseline: central;
103 width: 20px;
104}
105
106.qs-atoms-zonebox {
107 stroke: var(--qdk-host-background);
108 stroke-width: 0.75;
109 fill: var(--qdk-menu-fill);
110}
111
112.qs-atoms-qubit {
113 stroke: none;
114 fill: var(--qdk-atom-fill);
115}
116
117.qs-atoms-qubit-trail-start {
118 stroke: var(--qdk-mid-gray);
119 stroke-width: 1px;
120 fill: var(--qdk-menu-fill);
121 r: 3px;
122}
123
124.qs-atoms-qubit-trail {
125 stroke: var(--qdk-mid-gray);
126 stroke-width: 1.5px;
127 fill: none;
128 stroke-dasharray: 1, 1;
129}
130
131.qs-atoms-qubit-highlight {
132 stroke: var(--qdk-atom-trail);
133 stroke-width: 1px;
134}
135
136.qs-atoms-gate {
137 fill: var(--qdk-gate-generic);
138 stroke-width: 0;
139}
140
141.qs-atoms-gate-cz {
142 fill: var(--qdk-gate-pair);
143}
144.qs-atoms-gate-mz {
145 fill: var(--qdk-gate-measure);
146}
147
148.qs-atoms-gate-reset {
149 fill: var(--qdk-gate-reset);
150}
151
152.qs-atoms-gate-text {
153 stroke-width: 0;
154 fill: var(--qdk-host-background);
155 font-size: 5px;
156 font-family: Verdana, Geneva, Tahoma, sans-serif;
157 text-anchor: middle;
158 dominant-baseline: central;
159}
160
161.qs-atoms-gate-text-small {
162 font-size: 4px;
163}
164
165.qs-atoms-info-box {
166 position: absolute;
167 display: none;
168 left: 40px;
169 top: 48px;
170 border: 1px solid var(--qdk-mid-gray);
171 border-radius: 8px;
172 background-color: var(--qdk-host-background);
173 color: var(--qdk-host-foreground);
174 padding: 16px;
175 width: 250px;
176}
177
178.qs-atoms-info-box-grid {
179 display: grid;
180 grid-template-columns: 50px 200px;
181 padding: 8px;
182}
183