Skip to content

Commit

Permalink
style updates (Qiskit#4336)
Browse files Browse the repository at this point in the history
Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
  • Loading branch information
3 people authored Apr 29, 2020
1 parent 491ab5c commit 8676b0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/tools/jupyter/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def circuit_data_table(circuit: QuantumCircuit) -> wid.HTML:
width: 100%;
background-color: #3700BE;
color: #fff;
font-size: 18px;
font-size: 16px;
border-left: 2px solid #3700BE;
}
Expand All @@ -67,7 +67,7 @@ def circuit_data_table(circuit: QuantumCircuit) -> wid.HTML:
text-align: left;
padding: 5px 5px 5px 5px;
width: 100%;
font-size: 14px;
font-size: 13px;
font-weight: medium;
}
Expand All @@ -85,7 +85,7 @@ def circuit_data_table(circuit: QuantumCircuit) -> wid.HTML:


head_style = 'font-family: IBM Plex Sans, Arial, Helvetica, sans-serif;' \
' font-size: 22px; font-weight: medium;'
' font-size: 20px; font-weight: medium;'

property_label = wid.HTML("<p style='{}'>Circuit Properties</p>".format(head_style),
layout=wid.Layout(margin='0px 0px 10px 0px'))
Expand All @@ -102,7 +102,7 @@ def properties_widget(circuit: QuantumCircuit) -> wid.VBox:
"""
properties = wid.VBox(children=[property_label,
circuit_data_table(circuit)],
layout=wid.Layout(width='30%',
layout=wid.Layout(width='40%',
height='auto'))
return properties

Expand Down Expand Up @@ -150,7 +150,7 @@ def qasm_widget(circuit: QuantumCircuit) -> wid.VBox:
layout=wid.Layout(margin='0px 0px 10px 0px'))

qasm = wid.VBox(children=[out_label, out],
layout=wid.Layout(height='auto', max_height='500px', width='70%',
layout=wid.Layout(height='auto', max_height='500px', width='60%',
margin='0px 0px 0px 20px'))

qasm._code_length = len(qasm_code.split('\n'))
Expand Down

0 comments on commit 8676b0e

Please sign in to comment.