X-Git-Url: http://nitlanguage.org diff --git a/share/nitweb/stylesheets/nitweb.css b/share/nitweb/stylesheets/nitweb.css index 2baad72..ccfcdd0 100644 --- a/share/nitweb/stylesheets/nitweb.css +++ b/share/nitweb/stylesheets/nitweb.css @@ -1,3 +1,42 @@ +/* + * Copyright 2017 Alexandre Terrasa . + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* utils */ + +.no-margin { + margin: 0; +} + +.no-padding { + padding: 0; +} + +.navbar-fixed-top { + background-color: #1E9431; + box-shadow: 0 0 4px rgba(0,0,0,.14),0 4px 8px rgba(0,0,0,.28); +} + +#loading-bar .bar { + background: #FF8100; +} + +[ng-click] { + cursor: pointer; +} + /* Body */ body { @@ -14,49 +53,28 @@ a { cursor: pointer; } -.nitdoc h1, .nitdoc h2, .nitdoc h3, .nitdoc h4, .nitdoc h5, .nitdoc h6 { - color: #333; -} - .page-header { margin-top: 0; border: none; } -/* cards */ - -.card.active { - border: 1px solid #1E9431; -} - -.card, .card-body { overflow: hidden; } - -.card-heading { - margin-top: 0; - margin-bottom: 5px; -} +/* ui */ -.card { - background: #fff; - border: 1px solid #ccc; - margin-top: 10px; - box-shadow: 0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24); -} +.btn-bar { margin-top: -5px; float: right } +.btn-bar .btn { padding: 5px 10px; } -.card-body { - padding: 15px; - width: 10000px; +entity-list .btn-filter { + visibility: hidden; } -.card-body { - display: table-cell; - vertical-align: top; +entity-list:hover .btn-filter { + visibility: visible; } /* doc */ .nitdoc .synopsys { - font-size: 2em; + margin-top: 0; } .signature { @@ -90,35 +108,66 @@ a { background-color: #ff9c0f; } +/* forms */ + +.has-icon { + position: relative; +} + +.has-icon .form-control { + padding-left: 35px; +} + +.form-control-icon { + position: absolute; + top: 0; + left: 0; + z-index: 2; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; + pointer-events: none; +} + +/* navs */ + +.nav-tabs li { cursor: pointer; } + +/* Summary */ + +.summary h1, .summary h2, .summary h3, .summary h4, .summary h5, .summary h6 { + margin: 5px 0; +} + +.summary h1 a, .summary h2 a, .summary h3 a, .summary h4 a, .summary h5 a, .summary h6 a { + color: #555; +} + +.summary h1 { font-size: 14px; margin-left: 0px; font-weight: bold; } +.summary h2 { font-size: 13px; margin-left: 5px; font-weight: bold; } +.summary h3 { font-size: 12px; margin-left: 10px; } +.summary h4 { font-size: 11px; margin-left: 15px; } +.summary h5 { font-size: 10px; margin-left: 20px; } +.summary h6 { font-size: 9px; margin-left: 25px; } + /* - * Code Highlighting + * Ratings */ -.nitcode a { color: inherit; text-decoration: inherit; } /* hide links */ -.nitcode a:hover { text-decoration: underline; } /* underline links */ -.nitcode span[title]:hover { text-decoration: underline; } /* underline titles */ -/* lexical raw tokens. independent of usage or semantic: */ -.nitcode .nc_c { color: gray; font-style: italic; } /* comment */ -.nitcode .nc_d { color: #3D8127; font-style: italic; } /* documentation comments */ -.nitcode .nc_k { font-weight: bold; } /* keyword */ -.nitcode .nc_o {} /* operator */ -.nitcode .nc_i {} /* standard identifier */ -.nitcode .nc_t { color: #445588; font-weight: bold; } /* type/class identifier */ -.nitcode .nc_a { color: #445588; font-style: italic; } /* old style attribute identifier */ -.nitcode .nc_l { color: #009999; } /* char and number literal */ -.nitcode .nc_s { color: #8F1546; } /* string literal */ -/* syntactic token usage. added because of their position in the AST */ -.nitcode .nc_ast { color: blue; } /* assert label */ -.nitcode .nc_la { color: blue; } /* break/continue label */ -.nitcode .nc_m { color: #445588; } /* module name */ -/* syntactic groups */ -.nitcode .nc_def { font-weight: bold; color: blue; } /* name used in a definition */ -.nitcode .nc_def.nc_a { color: blue; } /* name used in a attribute definition */ -.nitcode .nc_def.nc_t { color: blue; } /* name used in a class or vt definition */ -.nitcode .nc_ss { color: #9E6BEB; } /* superstrings */ -.nitcode .nc_cdef {} /* A whole class definition */ -.nitcode .nc_pdef {} /* A whole property definition */ -/* semantic token usage */ -.nitcode .nc_v { font-style: italic; } /* local variable or parameter */ -.nitcode .nc_vt { font-style: italic; } /* virtual type or formal type */ -.nitcode .nc_error { border: 1px red solid;} /* not used */ +.star { + color: grey; +} + +.editable .star { + cursor: pointer; +} + +.editable .star:hover, .editable .star.active:hover { + color: #FF8100 +} + +.star.active { + color: #FFC000 +}