Skip to content

Commit

Permalink
Merge pull request #1 from fkling/master
Browse files Browse the repository at this point in the history
Update with changes from fkling/astexplorer
  • Loading branch information
aceslick911 committed Jun 15, 2020
2 parents ada77d1 + 8255900 commit 52ce9df
Show file tree
Hide file tree
Showing 74 changed files with 3,702 additions and 3,022 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.js]
quote_type = single
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The AST explorer provides following code parsers:
- [Pug][]
- Regular Expressions:
- [regexp-tree][]
- [regexpp][]
- [regjsparser][]
- Scala
- [Scalameta][]
Expand Down Expand Up @@ -151,6 +152,7 @@ node.
[redot]: https://github.com/redotjs/redot
[remark]: https://github.com/remarkjs/remark
[regexp-tree]: https://github.com/DmitrySoshnikov/regexp-tree
[regexpp]: https://github.com/mysticatea/regexpp
[regjsparser]: https://github.com/jviereck/regjsparser
[php-parser]: https://github.com/glayzzle/php-parser
[pug]: https://github.com/pugjs/pug
Expand All @@ -168,7 +170,7 @@ node.
[Scalameta]: http://scalameta.org/
[solidity-parser-antlr]: https://github.com/federicobond/solidity-parser-antlr
[vue-template-compiler]: https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler
[svelte]: https://github.com/sveltejs/svelte
[svelte]: https://github.com/sveltejs/svelte
[hyntax]: https://github.com/nik-garmash/hyntax

### Contributions
Expand Down
171 changes: 90 additions & 81 deletions website/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,40 @@ html {
font-family: Verdana, non-serif;
}

body {
margin: 0;
}

#page {
display: flex;
flex-direction: column;
height: 100vh;
/* prevents the page to growing larger than the viewport*/
max-height: 100vh;
}

#container {
flex: 1;
/* for Firefox, otherwise it overflows the parent*/
min-height: 0;
}

#main {
display: flex;
flex-direction: column;
height: 100%;
}

#contribution {
font-size: 0.9em;
color: #555;
height: 25px;
text-align: center;
line-height: 25px;
background-color: #efefef;
border-top: 1px solid #ddd;
}

.cover {
position: fixed;
top: 0;
Expand All @@ -32,14 +66,6 @@ html {
color: #555;
}

.dropTarget {
position: absolute;
top: 0;
bottom: 26px;
left: 0;
right: 0;
}

.dropIndicator {
position: fixed;
top: 0;
Expand Down Expand Up @@ -69,24 +95,22 @@ html {
text-align: center;
}


#root {
display: flex;
flex-direction: column;
height: calc(100vh - 26px);
}

#Toolbar {
flex-shrink: 0;
flex-grow: 0;
flex: 0 0 auto;
font-family: monospace;
height: 32px;
line-height: 32px;
border-bottom: 1px solid #ddd;
color: #454545;
padding-left: 10px;
background-color: #efefef;
padding-right: 10px;
z-index: 200;
display:flex;
flex-wrap: wrap;
}

#Toolbar > * {
flex: 0 0 auto;
border-right: 1px solid #ddd;
}

#Toolbar,
Expand All @@ -100,24 +124,15 @@ html {
background-color: transparent;
box-sizing: border-box;
color: inherit;
display: inline-block;
font-family: inherit;
font-size: 16px;
margin: 0;
min-width: 90px;
outline: none;
}

#Toolbar > .menuButton > span {
cursor: default;
line-height: 29px;
padding: 2px 6px;
}

#Toolbar > * {
height: 32px;
border-right: 1px solid #ddd;
vertical-align: top;
padding: 0px 6px;
}

#Toolbar > * button {
Expand All @@ -131,35 +146,27 @@ html {
padding-right: 10px;
margin: 0;
font-size: 18px;
display: inline-block;
vertical-align: top;
}

#Toolbar > a {
color: inherit;
text-decoration: none;
}

#Toolbar .menuButton {
position: relative;
}

#Toolbar .menuButton:hover > ul {
display: block;
}

#Toolbar .menuButton ul {
position: absolute;
left: -1px;
position: fixed;
padding: 0;
margin: 0;
list-style: none;
display: none;
border: 1px solid #ddd;
border-top: none;
min-width: 100%;
max-height: calc(100vh - 65px);
overflow-y: auto;
z-index: 500;
}

#Toolbar .menuButton ul li {
Expand Down Expand Up @@ -203,9 +210,8 @@ html {
#info {
color: #898989;
cursor: default;
float: right;
padding-right: 20px;
border: none;
margin-left: auto;
}

#info.small {
Expand All @@ -224,37 +230,32 @@ html {
color: #CC0000;
}

#contribution {
font-size: 0.9em;
color: #555;
position: absolute;
height: 25px;
bottom: 0;
left: 0;
right: 0;
text-align: center;
line-height: 25px;
background-color: #efefef;
border-top: 1px solid #ddd;
}

.splitpane-content {
flex-grow: 2;
position: relative;
flex: 1;
/* for Firefox, otherwise it overflows the parent*/
min-height: 0;
min-width: 0;
}

.splitpane {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
flex: 1;
/* for Firefox, otherwise it overflows the parent*/
min-height: 0;
min-width: 0;
}

.splitpane-divider {
background-color: #ddd;
}

.splitpane-divider.horizontal {
width: 5px;
}

.splitpane-divider.vertical {
height: 5px;
}

.splitpane-divider:hover {
background-color: #999;
cursor: col-resize;
Expand All @@ -265,14 +266,11 @@ html {
}

.output {
box-sizing: border-box;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 0;
flex: 1;
display: flex;
flex-direction: column;
border: none;
padding: 0;
}

.output .toolbar {
Expand Down Expand Up @@ -311,11 +309,8 @@ html {

.output > .container {
overflow: auto;
position: absolute;
top: 25px;
left: 0;
right: 0;
bottom: 0;
flex: 1;
display: flex;
}

.output > .no-toolbar {
Expand All @@ -332,11 +327,11 @@ html {
}

.editor {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
display: flex;
flex: 1;
/* needed to make editor at most as wide as the parent splitpane*/
min-width: 0;
min-height: 0;
}

li.entry {
Expand All @@ -352,6 +347,10 @@ li.entry {
background-color: rgba(255,240,6,0.4);
}

.entry > .value {
white-space: pre-wrap;
}

.entry > .value .s {
cursor: text;
-webkit-user-select: text;
Expand Down Expand Up @@ -398,7 +397,8 @@ li.entry {
}

.CodeMirror {
height: 100%;
height: auto;
flex: 1;
}

.CodeMirror-scroll {
Expand Down Expand Up @@ -495,7 +495,6 @@ body .CodeMirror-Tern-tooltip {
.toggleBtn {
position: absolute;
right: 0;
height: 20px;
z-index: 10;
cursor: pointer;
outline: none;
Expand All @@ -505,3 +504,13 @@ body .CodeMirror-Tern-tooltip {
padding-left: 5px;
font-size: 12px;
}

.settings-drawer__expanded {
width: 200px;
border-right: 1px solid #ddd;
}

.settings-drawer__collapsed {
width: 20px;
background-color: #ddd;
}
Loading

0 comments on commit 52ce9df

Please sign in to comment.