UNPKG

toloframework

Version:

Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.

111 lines (93 loc) 2.03 kB
.tfw-view-button { vertical-align: middle; position: relative; display: inline-flex; flex-direction: row; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 0; text-decoration: none; border-radius: 2px; text-shadow: none; cursor: pointer; margin: 4px 8px; border: none; transition: all .2s; font-family: Roboto, josefin-sans, sans-serif; font-size: 14px; font-weight: bold; } .tfw-view-button.wide { width: calc(100% - 16px); display: flex; } .tfw-view-button.hide, .tfw-view-button.hide.wide { display: none; } .tfw-view-button.flat { background-color: transparent; } .tfw-view-button[!disabled]:hover { filter: saturate(100%) brightness(120%); } .tfw-view-button > div.text.hide { display: none; } .tfw-view-button > div.text { flex-grow: 1; order: 1; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align: left; text-transform: uppercase; margin: 0 8px; } .tfw-view-button.inverted > div.text { order: -1; text-align: right; } .tfw-view-button.no-text > div.text { display: none; } .tfw-view-button > .icon { order: 0; flex-grow: 0; margin: 0 8px 0 4px; padding: 0; } .tfw-view-button[disabled]:hover, .tfw-view-button[disabled] { pointer-event: none; text-decoration: none; cursor: default; filter: saturate(0); text-shadow: none; box-shadow: none; font-style: italic; opacity: .5; } .tfw-view-button:focus { text-decoration: underline; text-decoration-style: dotted; } /* On small screen, responsive mode hides the text when there is an icon. */ @media (max-width: 480px) { .tfw-view-button.responsive > div.text { display: none; } .tfw-view-button.responsive { max-width: 32px; min-width: 32px; margin: 0; } } /* Small version */ .tfw-view-button.small { min-height: 28px; margin: 2px 4px; font-size: 10px; font-weight: normal; } .tfw-view-button.small > div.text { text-align: left; } .tfw-view-button.smal > .icon { margin: 0 4px 0 2px; }