Skip to content

Commit

Permalink
Merge branch 'master' into ahoy
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed May 16, 2019
2 parents f42417b + 2c4c4e3 commit f598ea6
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 42 deletions.
15 changes: 14 additions & 1 deletion app/html/app.mcss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ App {
right: 0

overflow: hidden

min-height: 0px
}
height: 100%
width: 100%

position: relative

div.Hypertabs {
position: absolute

top: var(--app-border-width)
bottom: var(--app-border-width)
left: var(--app-border-width)
right: var(--app-border-width)
}
}
25 changes: 0 additions & 25 deletions app/html/tabs.mcss
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
/* NOTE there are some active styles in here still */

Hypertabs {
position: fixed
top: 0
right: 0
left: 0
bottom: 0

display: flex
flex-direction: column

height: 100% /* needed to stop scroller blowing out */
overflow: hidden

nav {
display: flex

Expand Down Expand Up @@ -92,17 +80,4 @@ Hypertabs {
margin: 0 .5rem
}
}

section.content {
display: flex

height: 100% /* needed to stop making nav weird */

div.page {
flex-grow: 1

display: flex /*hack to get give Scroller context it needs */
}
}
}

17 changes: 9 additions & 8 deletions app/styles/mcss/hypertabs.mcss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ Hypertabs {
display: flex
flex-direction: column

top: var(--app-border-width)
bottom: var(--app-border-width)
left: var(--app-border-width)
right: var(--app-border-width)

height: initial
overflow: hidden

nav {
height: 2.3rem
Expand Down Expand Up @@ -128,15 +124,20 @@ Hypertabs {
// this brings the scroll-bar in
padding: .5rem .4rem

height: 100% /* needed to stop making nav weird */
height: 100%
/* needed to stop making nav weird */

display: flex

div.page {
flex-grow: 1

display: flex /*hack to get give Scroller context it needs */
display: flex
/*hack to get give Scroller context it needs */

top: 0
bottom: 0
/* stop that stupid thing where tab scrolls the whole page */
}
}
}

21 changes: 18 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"lodash": "^4.17.10",
"marama": "^1.2.2",
"micro-css": "^2.0.1",
"mutant": "^3.22.1",
"mutant": "^3.22.3",
"mutant-scroll": "^1.0.2",
"open-external": "^0.1.1",
"patch-drafts": "0.0.6",
Expand Down
9 changes: 5 additions & 4 deletions styles/mcss.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const path = require('path')
const { basename } = path
// const { basename } = path
const readDirectory = require('read-directory')
const { each } = require('libnested')
const nest = require('depnest')

const contents = readDirectory.sync(path.join(__dirname, '..'), {
extensions: false,
filter: '**/*.mcss',
ignore: '**/node_modules/**'
ignore: ['**/node_modules/**', 'dist/**']
})

exports.gives = nest('styles.mcss')
Expand All @@ -17,8 +17,9 @@ exports.create = function (api) {

function mcss (sofar = {}) {
each(contents, (content, [filename]) => {
const name = basename(filename)
sofar[name] = content
// const name = basename(filename)
// sofar[name] = content
sofar[filename] = content
})
return sofar
}
Expand Down

0 comments on commit f598ea6

Please sign in to comment.