Compare commits
180 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b79991966a | ||
|
|
9147b61324 | ||
|
|
f5805c2ad3 | ||
|
|
30e88ca836 | ||
|
|
ddabd865d7 | ||
|
|
d8dee5ccb2 | ||
|
|
73d1210a00 | ||
|
|
e1563a6f9c | ||
|
|
73a1f06136 | ||
|
|
6f0d97fa6e | ||
|
|
230383dd2a | ||
|
|
bc6e2fefb1 | ||
|
|
3e80d292f4 | ||
|
|
6d1346064e | ||
|
|
0ae6e4bb59 | ||
|
|
da33ec44f3 | ||
|
|
3e84cfd613 | ||
|
|
2d77cba782 | ||
|
|
077b0e3ac1 | ||
|
|
e8687dfc7f | ||
|
|
aec8502225 | ||
|
|
75b8ab6143 | ||
|
|
b0842d06d1 | ||
|
|
7859024c18 | ||
|
|
b81b76a306 | ||
|
|
e0211daf24 | ||
|
|
8a1ca0915d | ||
|
|
d65d26f26f | ||
|
|
5c34a08c7f | ||
|
|
37d408cdb6 | ||
|
|
442596d0d0 | ||
|
|
564d0bf3ba | ||
|
|
3231825dc0 | ||
|
|
252d28c4cb | ||
|
|
a44432e1ab | ||
|
|
dbdcbce6a4 | ||
|
|
e4821cf03e | ||
|
|
9204d2263b | ||
|
|
b4eb58bc77 | ||
|
|
4a5ec23be5 | ||
|
|
db2ae70ba1 | ||
|
|
356e70ece0 | ||
|
|
493bed0468 | ||
|
|
7dbbaab953 | ||
|
|
8e5378b65b | ||
|
|
1abd5d2c59 | ||
|
|
c595f5b66f | ||
|
|
f572a55b7c | ||
|
|
b890e3f487 | ||
|
|
87ce84718d | ||
|
|
e1defa3677 | ||
|
|
2103d1e3b3 | ||
|
|
93f4c4e6fb | ||
|
|
ea57a72909 | ||
|
|
13db2d80bd | ||
|
|
ebcbd49e18 | ||
|
|
81e59e52ca | ||
|
|
1200c42714 | ||
|
|
d03e35edc6 | ||
|
|
fb4c70319a | ||
|
|
588b2fe358 | ||
|
|
2c93df1543 | ||
|
|
e6a238fbd9 | ||
|
|
19d2a2dfa3 | ||
|
|
97ecaf66c2 | ||
|
|
6b6c0cc565 | ||
|
|
02703bfefd | ||
|
|
194a114684 | ||
|
|
399b5abeb9 | ||
|
|
562da0a2ca | ||
|
|
aba098b4cd | ||
|
|
cc2e245b62 | ||
|
|
35c4fce150 | ||
|
|
51435b6d5e | ||
|
|
d19768cfcc | ||
|
|
6423b32ce3 | ||
|
|
2464deb302 | ||
|
|
9aefe05b3c | ||
|
|
61f9ee4af7 | ||
|
|
12bbf11fde | ||
|
|
5fe948f289 | ||
|
|
707c5409df | ||
|
|
994410fd89 | ||
|
|
cb78f07e84 | ||
|
|
3d8889b28c | ||
|
|
22fea49006 | ||
|
|
5265818398 | ||
|
|
edec47580e | ||
|
|
ea428cbc36 | ||
|
|
809bb8cc4a | ||
|
|
43da9dc45c | ||
|
|
4e1ebf53fb | ||
|
|
06638406f0 | ||
|
|
af40d823bd | ||
|
|
beeff247a4 | ||
|
|
abb16c53f3 | ||
|
|
d0e6246e99 | ||
|
|
53d1c6dcec | ||
|
|
6dcbf4e150 | ||
|
|
c9f897e3b1 | ||
|
|
d390c5a4d6 | ||
|
|
928b88dbaf | ||
|
|
40450468f2 | ||
|
|
7e9939f5ed | ||
|
|
a72cf5a9ee | ||
|
|
c88c05f159 | ||
|
|
aac8a88bfe | ||
|
|
defabec1ed | ||
|
|
4181c09b02 | ||
|
|
1c620b3b4e | ||
|
|
a8355d5c64 | ||
|
|
1da7710cea | ||
|
|
2b537786d9 | ||
|
|
2e7d9a1308 | ||
|
|
9a4c33153e | ||
|
|
00fed09d8e | ||
|
|
f560febce2 | ||
|
|
7612e8b004 | ||
|
|
02dd1f43a0 | ||
|
|
60cd90a36a | ||
|
|
77d07307b1 | ||
|
|
80cd0c620f | ||
|
|
8b3339f629 | ||
|
|
6b6b12842c | ||
|
|
c160914448 | ||
|
|
b5f351f135 | ||
|
|
97476e3bda | ||
|
|
38ee17c8a8 | ||
|
|
7b95f93194 | ||
|
|
324a236a02 | ||
|
|
b9035527ea | ||
|
|
428be4db9a | ||
|
|
c6a20766c6 | ||
|
|
7430f1d844 | ||
|
|
a931c63ed4 | ||
|
|
3b95b931f8 | ||
|
|
e247564c3e | ||
|
|
76fc0f4b7c | ||
|
|
61b6475e9e | ||
|
|
f3a617baf0 | ||
|
|
db39c6cb54 | ||
|
|
c45de83791 | ||
|
|
6f508ba87a | ||
|
|
49ed887fce | ||
|
|
bba68972d8 | ||
|
|
adc7e59d22 | ||
|
|
cfdf261645 | ||
|
|
1e6cdd7cef | ||
|
|
3e78878ed0 | ||
|
|
15a492a1b6 | ||
|
|
5cafccd221 | ||
|
|
610ee38c3d | ||
|
|
b1154eb9ed | ||
|
|
f5ef9dba70 | ||
|
|
b7efd10a99 | ||
|
|
9977d8e38e | ||
|
|
dde298d630 | ||
|
|
452e0fecf0 | ||
|
|
edde6acb1f | ||
|
|
433819c6ff | ||
|
|
fa3225be82 | ||
|
|
25f7092f9c | ||
|
|
bc8bde7756 | ||
|
|
1253489333 | ||
|
|
42dfc57ee7 | ||
|
|
24db7ad013 | ||
|
|
6c8432f627 | ||
|
|
f12816dad7 | ||
|
|
71a0b1a92c | ||
|
|
a350c369cc | ||
|
|
56a5e1db49 | ||
|
|
6c102320b7 | ||
|
|
2140b58778 | ||
|
|
970da9d3b5 | ||
|
|
654f4f9073 | ||
|
|
aebbfbaf17 | ||
|
|
7f518e0ff7 | ||
|
|
8abe193be4 | ||
|
|
5081a5874b | ||
|
|
2cc2c83568 |
9
.editorconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
/node_modules
|
||||
/src/sass/_custom-variables.scss
|
||||
/.sublime-grunt.cache
|
||||
/images/logo
|
||||
|
||||
23
.jshintrc
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"camelcase" : true,
|
||||
"curly" : true,
|
||||
"eqeqeq" : true,
|
||||
"forin" : true,
|
||||
"indent" : 4,
|
||||
"latedef" : true,
|
||||
"newcap" : true,
|
||||
"nonew" : false,
|
||||
"quotmark" : "double",
|
||||
"undef" : true,
|
||||
"unused" : true,
|
||||
"strict" : true,
|
||||
"maxparams" : 3,
|
||||
"maxdepth" : 3,
|
||||
"maxstatements": 16,
|
||||
"maxlen" : 80,
|
||||
"shadow" : false,
|
||||
"browser" : true,
|
||||
"jquery" : true,
|
||||
"globals" : {
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
scss_files: "**/*.scss"
|
||||
scss_files: "src/sass/**/*.scss"
|
||||
|
||||
exclude: 'src/sass/lib/**'
|
||||
|
||||
linters:
|
||||
BangFormat:
|
||||
@@ -12,21 +14,25 @@ linters:
|
||||
ColorKeyword:
|
||||
enabled: true
|
||||
|
||||
Comment:
|
||||
ColorVariable:
|
||||
enabled: false
|
||||
|
||||
Comment:
|
||||
enabled: true
|
||||
|
||||
DebugStatement:
|
||||
enabled: true
|
||||
|
||||
DeclarationOrder:
|
||||
enabled: false
|
||||
enabled: true
|
||||
|
||||
DuplicateProperty:
|
||||
enabled: true
|
||||
ignore_consecutive:
|
||||
- word-break
|
||||
|
||||
ElsePlacement:
|
||||
enabled: false
|
||||
style: same_line
|
||||
enabled: true
|
||||
|
||||
EmptyLineBetweenBlocks:
|
||||
enabled: true
|
||||
@@ -62,9 +68,9 @@ linters:
|
||||
filename_extension: false
|
||||
|
||||
Indentation:
|
||||
enabled: false
|
||||
enabled: true
|
||||
character: space
|
||||
width: 4
|
||||
width: 2
|
||||
|
||||
LeadingZero:
|
||||
enabled: true
|
||||
@@ -89,6 +95,9 @@ linters:
|
||||
enabled: true
|
||||
extra_properties: []
|
||||
|
||||
PseudoElement:
|
||||
enabled: true
|
||||
|
||||
QualifyingElement:
|
||||
enabled: false
|
||||
|
||||
@@ -119,6 +128,12 @@ linters:
|
||||
SpaceAfterPropertyName:
|
||||
enabled: true
|
||||
|
||||
SpaceAfterVariableName:
|
||||
enabled: true
|
||||
|
||||
SpaceAroundOperator:
|
||||
enabled: true
|
||||
|
||||
SpaceBeforeBrace:
|
||||
enabled: true
|
||||
style: space
|
||||
@@ -135,8 +150,14 @@ linters:
|
||||
TrailingSemicolon:
|
||||
enabled: true
|
||||
|
||||
TrailingWhitespace:
|
||||
enabled: true
|
||||
|
||||
TrailingZero:
|
||||
enabled: false
|
||||
enabled: true
|
||||
|
||||
TransitionAll:
|
||||
enabled: true
|
||||
|
||||
UnnecessaryMantissa:
|
||||
enabled: true
|
||||
@@ -149,3 +170,9 @@ linters:
|
||||
|
||||
UrlQuotes:
|
||||
enabled: true
|
||||
|
||||
VendorPrefix:
|
||||
enabled: true
|
||||
|
||||
ZeroUnit:
|
||||
enabled: true
|
||||
|
||||
15
.travis.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
dist: trusty
|
||||
language: node_js
|
||||
node_js:
|
||||
- 8
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
before_install:
|
||||
- rvm install 2.2
|
||||
- rvm use 2.2 --fuzzy
|
||||
install:
|
||||
- gem install scss_lint
|
||||
- npm install
|
||||
script:
|
||||
- npm run lint --silent
|
||||
69
Gruntfile.js
@@ -1,40 +1,51 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
src: "src/",
|
||||
src: 'src/',
|
||||
|
||||
sass: {
|
||||
options: {
|
||||
implementation: require('node-sass'),
|
||||
sourceMap: false,
|
||||
outputStyle: 'compressed'
|
||||
},
|
||||
dist: {
|
||||
|
||||
theme: {
|
||||
files: {
|
||||
'stylesheets/application.css': '<%= src %>sass/application.scss'
|
||||
}
|
||||
},
|
||||
redmine_backlogs: {
|
||||
files: {
|
||||
'plugins/redmine_backlogs/global.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/global.scss',
|
||||
'plugins/redmine_backlogs/master_backlog.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/master_backlog.scss',
|
||||
'plugins/redmine_backlogs/statistics.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/statistics.scss',
|
||||
'plugins/redmine_backlogs/taskboard.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/taskboard.scss',
|
||||
'plugins/redmine_backlogs/jquery/jquery-ui.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery-ui.scss',
|
||||
'plugins/redmine_backlogs/jquery/jquery.multiselect.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery.multiselect.scss',
|
||||
'plugins/redmine_backlogs/jquery/jquery.qtip.css':
|
||||
'<%= src %>sass/plugins/redmine_backlogs/jquery/jquery.qtip.scss'
|
||||
|
||||
plugins: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: '<%= src %>sass/plugins/',
|
||||
src: '**/*.scss',
|
||||
dest: 'plugins/',
|
||||
ext: '.css',
|
||||
extDot: 'last'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
postcss: {
|
||||
options: {
|
||||
processors: [
|
||||
require('autoprefixer')({ browsers: 'last 2 versions' })
|
||||
]
|
||||
},
|
||||
|
||||
all: {
|
||||
src: [
|
||||
'stylesheets/*.css',
|
||||
'plugins/**/*.css'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
uglify: {
|
||||
build: {
|
||||
theme: {
|
||||
src: [
|
||||
'<%= src %>javascripts/modules/*.js',
|
||||
'<%= src %>javascripts/theme.js'
|
||||
@@ -48,19 +59,21 @@ module.exports = function(grunt) {
|
||||
files: ['<%= src %>sass/**/*.scss'],
|
||||
tasks: ['css']
|
||||
},
|
||||
|
||||
js: {
|
||||
files: ['<%= src %>javascripts/**/*.js'],
|
||||
tasks: ['js']
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
grunt.loadNpmTasks('grunt-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks("grunt-contrib-uglify");
|
||||
grunt.loadNpmTasks('grunt-sass')
|
||||
grunt.loadNpmTasks('grunt-postcss')
|
||||
grunt.loadNpmTasks('grunt-contrib-watch')
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify')
|
||||
|
||||
grunt.registerTask('css', ['sass']);
|
||||
grunt.registerTask('js', ['uglify']);
|
||||
grunt.registerTask('css', ['sass', 'postcss'])
|
||||
grunt.registerTask('js', ['uglify'])
|
||||
|
||||
grunt.registerTask('default', ['css', 'js']);
|
||||
};
|
||||
grunt.registerTask('default', ['css', 'js'])
|
||||
}
|
||||
|
||||
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Grzegorz Rajchman <mrliptontea@griego.pl>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
109
README.md
@@ -2,9 +2,13 @@
|
||||
|
||||
A free Redmine theme for modern browsers.
|
||||
|
||||

|
||||
 [](https://travis-ci.org/mrliptontea/PurpleMine2) [](https://github.com/mrliptontea/PurpleMine2/issues) [](http://standardjs.com/)
|
||||
|
||||
Compatible with Redmine 2.5+ and browsers: IE9+, latest Firefox and Google Chrome (others were not tested).
|
||||
---
|
||||
|
||||

|
||||
|
||||
Compatible with Redmine 2.6+ and browsers: IE10+/Edge, latest Firefox and Google Chrome (others were not tested).
|
||||
|
||||
It's written in [SCSS]. It uses [normalize.css] and benefits from some parts of [Bootstrap][bootstrap-sass] like mixins, structure, and stuff.
|
||||
|
||||
@@ -20,7 +24,7 @@ It's written in [SCSS]. It uses [normalize.css] and benefits from some parts of
|
||||
|
||||
## How install it
|
||||
|
||||
To install PurpleMine, just download [.zip](https://github.com/HolonGlobe/PurpleMine2/archive/master.zip) and unpack it to your Redmine's `public/themes` folder.
|
||||
To install PurpleMine, just download [.zip](https://github.com/mrliptontea/PurpleMine2/archive/master.zip) and unpack it to your Redmine's `public/themes` folder.
|
||||
|
||||
Then go to Redmine > Administration > Settings > Display and select PurpleMine2 from the list and save the changes.
|
||||
|
||||
@@ -34,21 +38,17 @@ Also, [Redmine Time Tracker][redmine_time_tracker] and [Redmine People][redmine_
|
||||
|
||||
If you want to customize PurpleMine to your needs, first, make sure that you have installed [node.js](http://nodejs.org/) and `npm` is available in your terminal.
|
||||
|
||||
If haven't yet, you need to install grunt:
|
||||
|
||||
npm install grunt-cli -g
|
||||
|
||||
Then, from the directory that contains PurpleMine run:
|
||||
|
||||
npm install
|
||||
|
||||
Now all the dependencies should be ready to use. Run one more command:
|
||||
|
||||
grunt watch
|
||||
npm run watch
|
||||
|
||||
And now the grunt is watching for changes in files placed in `src/` folder. Just change what you need, and it'll run SASS preprocessor automatically.
|
||||
And now the grunt is watching for changes in files placed in `src/` folder. Just change what you need, and it'll run Sass preprocessor automatically.
|
||||
|
||||
Regrettably, optional file include is not possible in SASS, so I would recommend creating a new file, e.g. `src/sass/_custom-variables.scss` and importing it a the beginning of the `application.scss` file. That way all the variables with the `!default` flag could be overridden.
|
||||
Regrettably, optional file include is not possible in Sass, so I would recommend creating a new file, e.g. `src/sass/_custom-variables.scss` and importing it a the beginning of the `application.scss` file. That way all the variables with the `!default` flag could be overridden.
|
||||
|
||||
The path `src/sass/_custom-variables.scss` is added to `.gitignore` so it should make upgrading PurpleMine with keeping your changes rather painless, given that the only thing you changed in PurpleMine's source was adding this one line with `@import "custom-variables";`.
|
||||
|
||||
@@ -56,6 +56,88 @@ If you need to customize styles for [Redmine Backlogs][redmine_backlogs] remembe
|
||||
|
||||
## Changelog
|
||||
|
||||
v1.10.0 (2019-03-12):
|
||||
|
||||
* Fixed #86: added support for redmine_hearts plugin
|
||||
|
||||
v1.9.0 (2019-03-01):
|
||||
|
||||
* Fixed #42: override some styles from [RM+](http://rmplus.pro) plugins
|
||||
* Merged #43: fixes for Redmine 3.3.2.devel
|
||||
* Support for responsive menu and further changes for Redmine 3.3.2.devel (fixes #26)
|
||||
* Improved styles for custom flash messages in wiki content (e.g. for [WikiNG](http://www.redmine.org/plugins/wiking) plugin)
|
||||
* Introduce project tiles on projects list page (enabled by default, can be switched off by setting `$use-project-tiles` to `false`)
|
||||
* Fixed #44: adjust width of the label column on the login form
|
||||
* Merged #49: German translations
|
||||
* Fixed #50: printed content on second page onwards was missing in Firefox
|
||||
* Fixed #51: a plugin dropdown in top menu could be too narrow
|
||||
* Fixed #52: delete watcher icon in the sidebar was missing
|
||||
* Fixed #54: long checkbox lists will be scrollable
|
||||
* Fixed #62: anchors won't scroll the page
|
||||
* Fixed #69: fixed "remember me" checkbox layout on login page
|
||||
* Fixed #78: files not visible on list in wiki when there is a lot of them
|
||||
* Updated dependencies
|
||||
* Fixed #81: top watchers checkboxes were not visible on Firefox
|
||||
* Removed `checkbox` and `radio` mixins in favour of `check`
|
||||
* Fixed #83: editor tabs layout in Redmine 4.0
|
||||
|
||||
v1.8.0 (2016-11-20):
|
||||
|
||||
* Fixed #19: missing text wrapping for long text custom fields
|
||||
* Fixed #20: applied Font Awesome font-family for icons in Time Tracker overview
|
||||
* Fixed duplicated pencil icon for Description in issue form in Redmine 3.1.2+
|
||||
* Fixed #21: added styling for compatibility with layout changes in Redmine 3.2.0
|
||||
* Fixed #23: set width for progress bars
|
||||
* Fixed #25: proper styles for pagination
|
||||
* Fixed #28: correct icon will be displayed for users that cannot edit notes in journal
|
||||
* Fixed #30: styles will now compile with latest Sass
|
||||
* Fixed #32, #33: improve @shawndibble's styles for new main menu styles in Redmine 3.3
|
||||
* Various small visual tweaks
|
||||
* Fixed #34: project breadcrumbs in the header should wrap nicely
|
||||
* Fixed #35: `.icon-only` class should now display only icons, buttons with icons should de displayed correctly with Font-Awesome disabled
|
||||
* Fixed #36: npm dependencies can be installed on production environments + update grunt to its latest version
|
||||
* Fixed #37: added support for drag'n'drop re-ordering in issue statuses, roles, and trackers settings
|
||||
* Fixed #38: corrected z-index for dropdown new item menu on backlogs page (thanks to @futaz, see PR #39)
|
||||
* Changed indentation to 2 spaces (to match with Redmine's coding style)
|
||||
* Introduced [autoprefixer](https://github.com/postcss/autoprefixer) via [PostCSS](http://postcss.org)
|
||||
* Updated [scss-lint](https://github.com/brigade/scss-lint) rules
|
||||
* Added [JavaScript Standard Style](http://standardjs.com)
|
||||
|
||||
v1.7.2 (2015-10-12):
|
||||
|
||||
* Fixed `.pagination` float in project members settings
|
||||
* Lists' cells are aligned to center by default (as in Redmine's default theme)
|
||||
|
||||
v1.7.1 (2015-10-10):
|
||||
|
||||
+ Improved styling for [Stuff To Do][stuff_to_do] plugin
|
||||
|
||||
v1.7.0 (2015-09-25):
|
||||
|
||||
* Added styles for optgroup (Firefox only)
|
||||
* Fixed #13: #header was missing clearfix and was breaking the layout is some cases
|
||||
* Coloring issue's title instead of link in Gantt diagram for overdue issues
|
||||
* Updated npm packages: grunt-sass from 0.18.0 to 1.0.0 and grunt-contrib-uglify 0.7.0 to 0.9.1
|
||||
* Use flexbox layout by default (can be changed by setting `$flexbox-layout` to `false`)
|
||||
* Fixed animation issue when showing sidebar
|
||||
* Slightly modified buttons' style
|
||||
* Few visual tweaks: nicer shadows, improved datepickers layout
|
||||
+ Configurable list borders and highlighting of hovered and even/odd rows
|
||||
+ Introduce `$pagination-padding-` variables and make pagination buttons' height equal to buttons by default
|
||||
* Fixed #16: remove `white-space: nowrap` from external links to prevent breaking the page with flexbox layout
|
||||
* Fixed colored trackers in tooltips in Backlogs plugin
|
||||
* Fixed broken codebutton modal after making buttons wider
|
||||
* Changed the license to MIT
|
||||
|
||||
v1.6.0 (2015-06-10):
|
||||
|
||||
* Fixed #8: Setting `$top-menu-collapse` to `true` will enable script allowing to toggle if top menu should be collapsed (no wrapping) or expanded (wrapped, with auto height)
|
||||
+ Header matching current URL fragment will have `#` prepended
|
||||
+ Introduced `$font-weight-normal` and `$font-weight-bold` variables to give better control on the appearance of text with custom fonts
|
||||
* Fixed #9: Added `$main-menu-collapse` and applied the same logic as in #8
|
||||
* Fixed #12: Removed `display: block` from issue's subject link to allow context menu to popup upon right click next to subject
|
||||
* Resolved #11: Company logo can be added to the header
|
||||
|
||||
v1.5.0 (2015-04-15):
|
||||
|
||||
* Fixed #5: Added default style for colored issue links.
|
||||
@@ -79,7 +161,7 @@ v1.4.0 (2015-04-10):
|
||||
* Fixed #2: Make sure that `.sort` with Font Awesome icons won't have background image
|
||||
* Fixed attachments div's layout for wiki pages
|
||||
|
||||
For more details, see [release v1.4.0](https://github.com/HolonGlobe/PurpleMine2/releases/tag/v1.4.0)
|
||||
For more details, see [release v1.4.0](https://github.com/mrliptontea/PurpleMine2/releases/tag/v1.4.0)
|
||||
|
||||
v1.3.0 (2015-04-01):
|
||||
|
||||
@@ -131,13 +213,10 @@ v1.0.0 (2015-02-06):
|
||||
|
||||
Initial version
|
||||
|
||||
## License
|
||||
|
||||
[WTFPL](http://www.wtfpl.net/)
|
||||
|
||||
[SCSS]: http://sass-lang.com/
|
||||
[normalize.css]: https://github.com/necolas/normalize.css
|
||||
[bootstrap-sass]: https://github.com/twbs/bootstrap-sass
|
||||
[redmine_backlogs]: https://github.com/backlogs/redmine_backlogs
|
||||
[redmine_time_tracker]: https://github.com/hicknhack-software/redmine_time_tracker
|
||||
[redmine_crm_people]: http://www.redminecrm.com/projects/people/
|
||||
[stuff_to_do]: https://github.com/raafael911/stuff_to_do_plugin
|
||||
|
||||
3314
package-lock.json
generated
Normal file
41
package.json
@@ -1,27 +1,46 @@
|
||||
{
|
||||
"name": "PurpleMine2",
|
||||
"version": "2.0.0",
|
||||
"description": "A free Redmine 2.5+ theme written in SASS",
|
||||
"description": "A free Redmine 2.6+ theme written in SCSS",
|
||||
"keywords": [
|
||||
"redmine",
|
||||
"theme",
|
||||
"sass",
|
||||
"scss"
|
||||
],
|
||||
"author": "HolonGlobe",
|
||||
"author": "mrliptontea",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:HolonGlobe/PurpleMine2.git"
|
||||
"url": "git@github.com:mrliptontea/PurpleMine2.git"
|
||||
},
|
||||
"license": "WTFPL",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/HolonGlobe/PurpleMine2/issues"
|
||||
"url": "https://github.com/mrliptontea/PurpleMine2/issues"
|
||||
},
|
||||
"homepage": "https://github.com/mrliptontea/PurpleMine2",
|
||||
"scripts": {
|
||||
"build": "grunt",
|
||||
"watch": "grunt watch",
|
||||
"lint": "standard && scss-lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "^9.4.8",
|
||||
"grunt": "^1.0.3",
|
||||
"grunt-contrib-uglify": "^4.0.0",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-postcss": "^0.9.0",
|
||||
"grunt-sass": "^3.0.2",
|
||||
"node-sass": "^4.11.0"
|
||||
},
|
||||
"homepage": "https://github.com/HolonGlobe/PurpleMine2",
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-uglify": "^0.7.0",
|
||||
"grunt-contrib-watch": "^0.6.1",
|
||||
"grunt-sass": "^0.18.0"
|
||||
"standard": "^12.0.1"
|
||||
},
|
||||
"standard": {
|
||||
"globals": [
|
||||
"$",
|
||||
"localStorage"
|
||||
],
|
||||
"ignore": [
|
||||
"/javascripts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
.ui-multiselect{padding:2px 0 2px 4px;text-align:left}.ui-multiselect span.ui-icon{float:right}.ui-multiselect-single .ui-multiselect-checkboxes input{position:absolute !important;top:auto !important;left:-9999px}.ui-multiselect-single .ui-multiselect-checkboxes label{padding:5px !important}.ui-multiselect-header{margin-bottom:3px;padding:3px}.ui-multiselect-header ul{font-size:0.92em}.ui-multiselect-header ul li{padding:0 10px 0 0;float:left}.ui-multiselect-header a{text-decoration:none}.ui-multiselect-header a:hover{text-decoration:underline}.ui-multiselect-header span.ui-icon{float:left}.ui-multiselect-header li.ui-multiselect-close{padding-right:0;float:right;text-align:right}.ui-multiselect-menu{display:none;position:absolute;padding:3px;text-align:left;box-shadow:0 1px 2px rgba(0,0,0,0.1),0 3px 8px rgba(0,0,0,0.07);z-index:10000}.ui-multiselect-checkboxes{position:relative;padding-right:2px;overflow-y:scroll}.ui-multiselect-checkboxes input[type="checkbox"]{top:0;margin:3px 0 0 -20px;float:left}.ui-multiselect-checkboxes input[type="checkbox"]:focus{outline:none}.ui-multiselect-checkboxes label{display:block;padding:3px 1px;padding-left:26px;border:1px solid transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-multiselect-checkboxes label input{position:relative;top:1px}.ui-multiselect-checkboxes li{clear:both;font-size:0.92em}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label{margin-bottom:2px;border-bottom:1px solid #ccc;font-weight:bold;text-align:center}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a{display:block;margin:1px 0;padding:3px;text-decoration:none}* html .ui-multiselect-checkboxes label{border:0 none}
|
||||
.ui-multiselect{padding:2px 0 2px 4px;text-align:left}.ui-multiselect span.ui-icon{float:right}.ui-multiselect-single .ui-multiselect-checkboxes input{position:absolute !important;top:auto !important;left:-9999px}.ui-multiselect-single .ui-multiselect-checkboxes label{padding:5px !important}.ui-multiselect-header{margin-bottom:3px;padding:3px}.ui-multiselect-header ul{font-size:.92em}.ui-multiselect-header ul li{padding:0 10px 0 0;float:left}.ui-multiselect-header a{text-decoration:none}.ui-multiselect-header a:hover{text-decoration:underline}.ui-multiselect-header span.ui-icon{float:left}.ui-multiselect-header li.ui-multiselect-close{padding-right:0;float:right;text-align:right}.ui-multiselect-menu{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);display:none;position:absolute;z-index:10000;padding:3px;text-align:left}.ui-multiselect-checkboxes{position:relative;padding-right:2px;overflow-y:scroll}.ui-multiselect-checkboxes input[type="checkbox"]{top:0;margin:3px 0 0 -20px;float:left}.ui-multiselect-checkboxes input[type="checkbox"]:focus{outline:none}.ui-multiselect-checkboxes label{display:block;padding:3px 1px;padding-left:26px;border:1px solid transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui-multiselect-checkboxes label input{position:relative;top:1px}.ui-multiselect-checkboxes li{clear:both;font-size:.92em}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label{margin-bottom:2px;border-bottom:1px solid #ccc;font-weight:bold;text-align:center}.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a{display:block;margin:1px 0;padding:3px;text-decoration:none}* html .ui-multiselect-checkboxes label{border:0 none}
|
||||
|
||||
@@ -1 +1 @@
|
||||
.qtip{position:absolute;top:-31000px;left:-31000px;width:auto;max-width:500px;outline:none}.ui-tooltip-content{position:relative;padding:10px;border:1px solid #ccc;background-color:#fff;color:#555555;font-size:0.92em;text-align:left;word-wrap:break-word;box-shadow:0 2px 2px rgba(0,0,0,0.2);overflow:hidden}.ui-tooltip-tip{border-color:#ccc;background-color:#fff}.ui-tooltip-tip{position:absolute;margin:0 auto;border:0 none;background:transparent;overflow:hidden;z-index:10}
|
||||
.qtip{position:absolute;top:-31000px;left:-31000px;width:auto;max-width:500px;outline:none}.ui-tooltip-content{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);position:relative;padding:10px;overflow:hidden;border:1px solid #ccc;background-color:#fff;color:#555;font-size:.92em;text-align:left;word-wrap:break-word}.ui-tooltip-tip{border-color:#ccc;background-color:#fff}.ui-tooltip-tip{position:absolute;z-index:10;margin:0 auto;overflow:hidden;border:0 none;background:transparent}
|
||||
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 48 KiB |
BIN
screenshots/issues.png
Normal file
|
After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 34 KiB |
@@ -1,93 +1,107 @@
|
||||
var PurpleMine = PurpleMine || {};
|
||||
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
|
||||
|
||||
PurpleMine.HistoryTabs = (function()
|
||||
{
|
||||
"use strict";
|
||||
PurpleMine.HistoryTabs = (function () {
|
||||
'use strict'
|
||||
|
||||
var self; // Make it work for browsers without Function.prototype.bind
|
||||
var instance
|
||||
var translations = {
|
||||
en: {
|
||||
all : "All",
|
||||
notes : "Notes",
|
||||
details: "Changes"
|
||||
all: 'All',
|
||||
notes: 'Notes',
|
||||
details: 'Changes'
|
||||
},
|
||||
ro: {
|
||||
all: 'Toate',
|
||||
notes: 'Note',
|
||||
details: 'Schimbări'
|
||||
},
|
||||
fr: {
|
||||
all: 'Tout',
|
||||
notes: 'Remarques',
|
||||
details: 'Changements'
|
||||
},
|
||||
pl: {
|
||||
all : "Wszystko",
|
||||
notes : "Notatki",
|
||||
details: "Zmiany"
|
||||
}
|
||||
};
|
||||
|
||||
function HistoryTabs()
|
||||
{
|
||||
self = this;
|
||||
|
||||
this.$tabsContainer = null;
|
||||
this.$tabs = null;
|
||||
this.$history = $("#history");
|
||||
this.lang = document.documentElement.lang;
|
||||
|
||||
if ("undefined" === translations[this.lang])
|
||||
{
|
||||
this.lang = "en";
|
||||
}
|
||||
|
||||
this._ = translations[this.lang];
|
||||
|
||||
if (this.$history.length > 0)
|
||||
{
|
||||
this.buildTabs();
|
||||
this.markFirstOfTypes();
|
||||
all: 'Wszystko',
|
||||
notes: 'Notatki',
|
||||
details: 'Zmiany'
|
||||
},
|
||||
de: {
|
||||
all: 'Alles',
|
||||
notes: 'Kommentare',
|
||||
details: 'Änderungen'
|
||||
},
|
||||
ja: {
|
||||
all: 'すべて',
|
||||
notes: '注記',
|
||||
details: '変更'
|
||||
}
|
||||
}
|
||||
|
||||
HistoryTabs.prototype.buildTabs = function()
|
||||
{
|
||||
var html = "",
|
||||
liStart = "<li><a href=\"javascript:;\" class=\"",
|
||||
liMid = "history-tab\" data-tab=\"",
|
||||
liEnd = "</a></li>";
|
||||
|
||||
html += "<div class=\"tabs\"><ul>";
|
||||
html += liStart + "selected " + liMid + "all\">" + this._.all + liEnd;
|
||||
html += liStart + liMid + "notes\">" + this._.notes + liEnd;
|
||||
html += liStart + liMid + "details\">" + this._.details + liEnd;
|
||||
html += "</ul></div>";
|
||||
|
||||
this.$tabsContainer = $(html);
|
||||
$("#history > h3").after(this.$tabsContainer);
|
||||
|
||||
this.$tabs = this.$tabsContainer.find(".history-tab");
|
||||
this.$tabs.on("click", this.tabClick);
|
||||
};
|
||||
|
||||
HistoryTabs.prototype.markFirstOfTypes = function()
|
||||
{
|
||||
this.$history.find(".has-notes:first").addClass("first-of-notes");
|
||||
this.$history.find(".has-details:first").addClass("first-of-details");
|
||||
};
|
||||
|
||||
HistoryTabs.prototype.tabClick = function()
|
||||
{
|
||||
var $this = $(this),
|
||||
tab = $this.attr("data-tab");
|
||||
|
||||
self.$tabs.removeClass("selected");
|
||||
$this.addClass("selected");
|
||||
|
||||
self.$history
|
||||
.removeClass("hide-details")
|
||||
.removeClass("hide-notes");
|
||||
|
||||
if ("notes" === tab)
|
||||
{
|
||||
self.$history.addClass("hide-details");
|
||||
function HistoryTabs () {
|
||||
if (instance) {
|
||||
return instance
|
||||
}
|
||||
else if ("details" === tab)
|
||||
{
|
||||
self.$history.addClass("hide-notes");
|
||||
}
|
||||
};
|
||||
|
||||
return HistoryTabs;
|
||||
}());
|
||||
instance = this
|
||||
|
||||
this.$tabsContainer = null
|
||||
this.$tabs = null
|
||||
this.$history = $('#history')
|
||||
this.lang = document.documentElement.lang
|
||||
|
||||
if (typeof translations[this.lang] === 'undefined') {
|
||||
this.lang = 'en'
|
||||
}
|
||||
|
||||
this._ = translations[this.lang]
|
||||
|
||||
if (this.$history.length > 0) {
|
||||
buildTabs()
|
||||
markFirstOfTypes()
|
||||
}
|
||||
}
|
||||
|
||||
function buildTabs () {
|
||||
var html = ''
|
||||
var liStart = '<li><a href="javascript:;" class="'
|
||||
var liMid = 'history-tab" data-tab="'
|
||||
var liEnd = '</a></li>'
|
||||
|
||||
html += '<div class="tabs"><ul>'
|
||||
html += liStart + 'selected ' + liMid + 'all">' + instance._.all + liEnd
|
||||
html += liStart + liMid + 'notes">' + instance._.notes + liEnd
|
||||
html += liStart + liMid + 'details">' + instance._.details + liEnd
|
||||
html += '</ul></div>'
|
||||
|
||||
instance.$tabsContainer = $(html)
|
||||
$('#history > h3').after(instance.$tabsContainer)
|
||||
|
||||
instance.$tabs = instance.$tabsContainer.find('.history-tab')
|
||||
instance.$tabs.on('click', tabClick)
|
||||
}
|
||||
|
||||
function markFirstOfTypes () {
|
||||
instance.$history.find('.has-notes:first').addClass('first-of-notes')
|
||||
instance.$history.find('.has-details:first').addClass('first-of-details')
|
||||
}
|
||||
|
||||
var tabClick = function () {
|
||||
var $this = $(this)
|
||||
var tab = $this.attr('data-tab')
|
||||
|
||||
instance.$tabs.removeClass('selected')
|
||||
$this.addClass('selected')
|
||||
|
||||
instance.$history
|
||||
.removeClass('hide-details')
|
||||
.removeClass('hide-notes')
|
||||
|
||||
if (tab === 'notes') {
|
||||
instance.$history.addClass('hide-details')
|
||||
} else if (tab === 'details') {
|
||||
instance.$history.addClass('hide-notes')
|
||||
}
|
||||
}
|
||||
|
||||
return HistoryTabs
|
||||
}())
|
||||
|
||||
128
src/javascripts/modules/MenuCollapse.js
Normal file
@@ -0,0 +1,128 @@
|
||||
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
|
||||
|
||||
PurpleMine.MenuCollapse = (function () {
|
||||
'use strict'
|
||||
|
||||
var instance
|
||||
var translations = {
|
||||
en: {
|
||||
topMenuToggler: 'Expand/collapse top menu'
|
||||
},
|
||||
ro: {
|
||||
topMenuToggler: 'Deschide/închide meniul de sus'
|
||||
},
|
||||
fr: {
|
||||
topMenuToggler: 'Développer/réduire le menu principal'
|
||||
},
|
||||
pl: {
|
||||
topMenuToggler: 'Zwiń/rozwiń górne menu'
|
||||
},
|
||||
de: {
|
||||
topMenuToggler: 'Ein-/Ausklappen Hauptmenu'
|
||||
},
|
||||
ja: {
|
||||
topMenuToggler: 'トップメニューの展開/折りたたみ'
|
||||
}
|
||||
}
|
||||
|
||||
function MenuCollapse () {
|
||||
if (instance) {
|
||||
return instance
|
||||
}
|
||||
|
||||
instance = this
|
||||
|
||||
this.lang = document.documentElement.lang
|
||||
|
||||
if (typeof translations[this.lang] === 'undefined') {
|
||||
this.lang = 'en'
|
||||
}
|
||||
|
||||
this._ = translations[this.lang]
|
||||
|
||||
this.menus = {
|
||||
top: {
|
||||
$el: $('#top-menu')
|
||||
}
|
||||
}
|
||||
|
||||
for (var menu in this.menus) {
|
||||
if (this.menus.hasOwnProperty(menu) && this.menus[menu].$el.length > 0) {
|
||||
handleMenu(menu)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleMenu (menu) {
|
||||
if (instance.menus[menu].$el.css('maxHeight') === 'none') {
|
||||
return false
|
||||
}
|
||||
|
||||
instance.menus[menu].collapsed = true
|
||||
|
||||
if (window.localStorage) {
|
||||
instance.menus[menu].collapsed =
|
||||
localStorage.getItem(getMenuStorageKey(menu)) === null
|
||||
}
|
||||
|
||||
buildToggleButton(menu)
|
||||
|
||||
if (instance.isCollapsed(menu) === false) {
|
||||
instance.expandMenu(menu)
|
||||
}
|
||||
}
|
||||
|
||||
function getMenuStorageKey (menu) {
|
||||
return 'PurpleMine:' + menu + 'MenuExpanded'
|
||||
}
|
||||
|
||||
function buildToggleButton (menu) {
|
||||
var togglerClass = menu + '-menu-toggler'
|
||||
var togglerLabel = instance._[menu + 'MenuToggler']
|
||||
var togglerHtml = '<a href="javascript:;" class="' +
|
||||
togglerClass +
|
||||
'" title="' +
|
||||
togglerLabel +
|
||||
'"></a>'
|
||||
instance.menus[menu].$toggler = $(togglerHtml)
|
||||
|
||||
instance.menus[menu].$el.prepend(instance.menus[menu].$toggler)
|
||||
instance.menus[menu].$toggler.on('click', { menu: menu }, instance.toggleMenu)
|
||||
}
|
||||
|
||||
MenuCollapse.prototype.toggleMenu = function (event) {
|
||||
var menu = event.data.menu || ''
|
||||
|
||||
if (instance.isCollapsed(menu)) {
|
||||
instance.expandMenu(menu)
|
||||
} else {
|
||||
instance.collapseMenu(menu)
|
||||
}
|
||||
}
|
||||
|
||||
MenuCollapse.prototype.isCollapsed = function (menu) {
|
||||
return this.menus[menu].collapsed
|
||||
}
|
||||
|
||||
MenuCollapse.prototype.expandMenu = function (menu) {
|
||||
this.menus[menu].$el.addClass('expanded')
|
||||
this.menus[menu].$toggler.addClass('expanded')
|
||||
this.menus[menu].collapsed = false
|
||||
|
||||
if (window.localStorage) {
|
||||
localStorage.setItem(getMenuStorageKey(menu), 'x')
|
||||
}
|
||||
}
|
||||
|
||||
MenuCollapse.prototype.collapseMenu = function (menu) {
|
||||
this.menus[menu].$el.removeClass('expanded')
|
||||
this.menus[menu].$toggler.removeClass('expanded')
|
||||
this.menus[menu].collapsed = true
|
||||
|
||||
if (window.localStorage) {
|
||||
localStorage.removeItem(getMenuStorageKey(menu))
|
||||
}
|
||||
}
|
||||
|
||||
return MenuCollapse
|
||||
}())
|
||||
@@ -1,157 +1,141 @@
|
||||
var PurpleMine = PurpleMine || {};
|
||||
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
|
||||
/* global Raphael: false, revisionGraph: true */
|
||||
/* jshint camelcase: false */
|
||||
/* jshint maxstatements: false */
|
||||
/* jshint maxlen: 160 */
|
||||
|
||||
PurpleMine.RevisionGraph = function(holder, commits_hash, graph_space)
|
||||
{
|
||||
"use strict";
|
||||
PurpleMine.RevisionGraph = function (holder, commitsHash, graphSpace) {
|
||||
'use strict'
|
||||
|
||||
var XSTEP = 20,
|
||||
CIRCLE_INROW_OFFSET = 17;
|
||||
var commits_by_scmid = commits_hash,
|
||||
commits = $.map(commits_by_scmid, function(val){return val;});
|
||||
var max_rdmid = commits.length - 1;
|
||||
var commit_table_rows = $("table.changesets tr.changeset");
|
||||
var XSTEP = 20
|
||||
var CIRCLE_INROW_OFFSET = 17
|
||||
var commitsByScmid = commitsHash
|
||||
var commits = $.map(commitsByScmid, function (val) { return val })
|
||||
var maxRdmid = commits.length - 1
|
||||
var commitTableRows = $('table.changesets tr.changeset')
|
||||
|
||||
// create graph
|
||||
if (revisionGraph !== null)
|
||||
{
|
||||
revisionGraph.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
revisionGraph = new Raphael(holder);
|
||||
if (revisionGraph !== null) {
|
||||
revisionGraph.clear()
|
||||
} else {
|
||||
revisionGraph = new Raphael(holder)
|
||||
}
|
||||
|
||||
var top = revisionGraph.set();
|
||||
var top = revisionGraph.set()
|
||||
|
||||
// init dimensions
|
||||
var graph_x_offset = commit_table_rows.first().find("td").first().position().left - $(holder).position().left,
|
||||
graph_y_offset = $(holder).position().top,
|
||||
graph_right_side = graph_x_offset + (graph_space + 1) * XSTEP,
|
||||
graph_bottom = commit_table_rows.last().position().top + commit_table_rows.last().height() - graph_y_offset;
|
||||
var graphXOffset = commitTableRows.first().find('td').first().position().left - $(holder).position().left
|
||||
var graphYOffset = $(holder).position().top
|
||||
var graphRightSide = graphXOffset + (graphSpace + 1) * XSTEP
|
||||
var graphBottom = commitTableRows.last().position().top + commitTableRows.last().height() - graphYOffset
|
||||
|
||||
revisionGraph.setSize(graph_right_side, graph_bottom);
|
||||
revisionGraph.setSize(graphRightSide, graphBottom)
|
||||
|
||||
// init colors
|
||||
var colors = [
|
||||
"#e74c3c",
|
||||
"#584492",
|
||||
"#019851",
|
||||
"#ed820c",
|
||||
"#4183c4"
|
||||
];
|
||||
'#e74c3c',
|
||||
'#584492',
|
||||
'#019851',
|
||||
'#ed820c',
|
||||
'#4183c4'
|
||||
]
|
||||
|
||||
// get more colors if needed
|
||||
if (graph_space >= colors.length)
|
||||
{
|
||||
Raphael.getColor.reset();
|
||||
if (graphSpace >= colors.length) {
|
||||
Raphael.getColor.reset()
|
||||
|
||||
for (var k = 0; k <= graph_space; k++)
|
||||
{
|
||||
colors.push(Raphael.getColor(0.9));
|
||||
for (var k = 0; k <= graphSpace; k++) {
|
||||
colors.push(Raphael.getColor(0.9))
|
||||
}
|
||||
}
|
||||
|
||||
var parent_commit;
|
||||
var x, y, parent_x, parent_y;
|
||||
var path, title;
|
||||
var revision_dot_overlay;
|
||||
var parentCommit
|
||||
var x, y, parentX, parentY
|
||||
var path, title
|
||||
var revisionDotOverlay
|
||||
|
||||
$.each(commits, function(index, commit)
|
||||
{
|
||||
if (!commit.hasOwnProperty("space"))
|
||||
{
|
||||
commit.space = 0;
|
||||
$.each(commits, function (index, commit) {
|
||||
if (!commit.hasOwnProperty('space')) {
|
||||
commit.space = 0
|
||||
}
|
||||
|
||||
y = commit_table_rows.eq(max_rdmid - commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET;
|
||||
x = graph_x_offset + XSTEP / 2 + XSTEP * commit.space;
|
||||
y = commitTableRows.eq(maxRdmid - commit.rdmid).position().top - graphYOffset + CIRCLE_INROW_OFFSET
|
||||
x = graphXOffset + XSTEP / 2 + XSTEP * commit.space
|
||||
|
||||
revisionGraph.circle(x, y, 3.5)
|
||||
revisionGraph
|
||||
.circle(x, y, 3.5)
|
||||
.attr({
|
||||
fill: colors[commit.space],
|
||||
stroke: "none"
|
||||
}).toFront();
|
||||
stroke: 'none'
|
||||
})
|
||||
.toFront()
|
||||
|
||||
// paths to parents
|
||||
$.each(commit.parent_scmids, function(index, parent_scmid)
|
||||
{
|
||||
parent_commit = commits_by_scmid[parent_scmid];
|
||||
$.each(commit.parent_scmids, function (index, parentScmid) {
|
||||
parentCommit = commitsByScmid[parentScmid]
|
||||
|
||||
if (parent_commit)
|
||||
{
|
||||
if (!parent_commit.hasOwnProperty("space"))
|
||||
{
|
||||
parent_commit.space = 0;
|
||||
if (parentCommit) {
|
||||
if (!parentCommit.hasOwnProperty('space')) {
|
||||
parentCommit.space = 0
|
||||
}
|
||||
|
||||
parent_y = commit_table_rows.eq(max_rdmid - parent_commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET;
|
||||
parent_x = graph_x_offset + XSTEP / 2 + XSTEP * parent_commit.space;
|
||||
parentY = commitTableRows.eq(maxRdmid - parentCommit.rdmid).position().top - graphYOffset + CIRCLE_INROW_OFFSET
|
||||
parentX = graphXOffset + XSTEP / 2 + XSTEP * parentCommit.space
|
||||
|
||||
if (parent_commit.space === commit.space)
|
||||
{
|
||||
if (parentCommit.space === commit.space) {
|
||||
// vertical path
|
||||
path = revisionGraph.path([
|
||||
"M", x, y,
|
||||
"V", parent_y]);
|
||||
}
|
||||
else
|
||||
{
|
||||
'M', x, y,
|
||||
'V', parentY])
|
||||
} else {
|
||||
// path to a commit in a different branch (Bezier curve)
|
||||
path = revisionGraph.path([
|
||||
"M", x, y,
|
||||
"C", x, y, x, y + (parent_y - y) / 2, x + (parent_x - x) / 2, y + (parent_y - y) / 2,
|
||||
"C", x + (parent_x - x) / 2, y + (parent_y - y) / 2, parent_x, parent_y-(parent_y-y)/2, parent_x, parent_y
|
||||
]);
|
||||
'M', x, y,
|
||||
'C', x, y, x, y + (parentY - y) / 2, x + (parentX - x) / 2, y + (parentY - y) / 2,
|
||||
'C', x + (parentX - x) / 2, y + (parentY - y) / 2, parentX, parentY - (parentY - y) / 2, parentX, parentY
|
||||
])
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// vertical path ending at the bottom of the revisionGraph
|
||||
path = revisionGraph.path([
|
||||
"M", x, y,
|
||||
"V", graph_bottom
|
||||
]);
|
||||
'M', x, y,
|
||||
'V', graphBottom
|
||||
])
|
||||
}
|
||||
|
||||
path.attr({stroke: colors[commit.space], "stroke-width": 1.5}).toBack();
|
||||
});
|
||||
|
||||
revision_dot_overlay = revisionGraph.circle(x, y, 10);
|
||||
revision_dot_overlay
|
||||
path
|
||||
.attr({
|
||||
fill : "#000",
|
||||
stroke: colors[commit.space],
|
||||
'stroke-width': 1.5
|
||||
})
|
||||
.toBack()
|
||||
})
|
||||
|
||||
revisionDotOverlay = revisionGraph.circle(x, y, 10)
|
||||
revisionDotOverlay
|
||||
.attr({
|
||||
fill: '#000',
|
||||
opacity: 0,
|
||||
cursor : "pointer",
|
||||
cursor: 'pointer',
|
||||
href: commit.href
|
||||
});
|
||||
})
|
||||
|
||||
if (commit.refs !== null && commit.refs.length > 0)
|
||||
{
|
||||
title = document.createElementNS(revisionGraph.canvas.namespaceURI, "title");
|
||||
title.appendChild(document.createTextNode(commit.refs));
|
||||
revision_dot_overlay.node.appendChild(title);
|
||||
if (commit.refs !== null && commit.refs.length > 0) {
|
||||
title = document.createElementNS(revisionGraph.canvas.namespaceURI, 'title')
|
||||
title.appendChild(document.createTextNode(commit.refs))
|
||||
revisionDotOverlay.node.appendChild(title)
|
||||
}
|
||||
|
||||
top.push(revision_dot_overlay);
|
||||
});
|
||||
top.push(revisionDotOverlay)
|
||||
})
|
||||
|
||||
top.toFront();
|
||||
};
|
||||
top.toFront()
|
||||
}
|
||||
|
||||
$(function()
|
||||
{
|
||||
"use strict";
|
||||
$(function () {
|
||||
'use strict'
|
||||
|
||||
if (window.drawRevisionGraph)
|
||||
{
|
||||
if (window.drawRevisionGraph) {
|
||||
// override Redmine's function
|
||||
window.drawRevisionGraph = PurpleMine.RevisionGraph;
|
||||
window.drawRevisionGraph = PurpleMine.RevisionGraph
|
||||
// make graph redraw itself
|
||||
$(window).resize();
|
||||
$(window).resize()
|
||||
}
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
@@ -1,128 +1,146 @@
|
||||
var PurpleMine = PurpleMine || {};
|
||||
var PurpleMine = PurpleMine || {} // eslint-disable-line no-use-before-define
|
||||
|
||||
PurpleMine.SidebarToggler = (function()
|
||||
{
|
||||
"use strict";
|
||||
PurpleMine.SidebarToggler = (function () {
|
||||
'use strict'
|
||||
|
||||
var self; // Make it work for browsers without Function.prototype.bind
|
||||
var instance
|
||||
var translations = {
|
||||
en: {
|
||||
toggler: 'Toggle sidebar'
|
||||
},
|
||||
ro: {
|
||||
toggler: 'Deschide/închide bara laterală'
|
||||
},
|
||||
fr: {
|
||||
toggler: 'Basculer la barre latérale'
|
||||
},
|
||||
pl: {
|
||||
toggler: 'Pokaż/ukryj panel boczny'
|
||||
},
|
||||
ja: {
|
||||
toggler: 'サイドバーの切り替え'
|
||||
}
|
||||
}
|
||||
|
||||
function SidebarToggler()
|
||||
{
|
||||
self = this;
|
||||
function SidebarToggler () {
|
||||
if (instance) {
|
||||
return instance
|
||||
}
|
||||
|
||||
this.sidebarVisible = true;
|
||||
this.sidebarHiding = null;
|
||||
this.$toggler = null;
|
||||
this.$main = $("#main");
|
||||
this.$sidebar = $("#sidebar");
|
||||
instance = this
|
||||
|
||||
this.sidebarVisible = true
|
||||
this.sidebarHiding = null
|
||||
this.$toggler = null
|
||||
this.$main = $('#main')
|
||||
this.$sidebar = $('#sidebar')
|
||||
this.lang = document.documentElement.lang
|
||||
|
||||
if (typeof translations[this.lang] === 'undefined') {
|
||||
this.lang = 'en'
|
||||
}
|
||||
|
||||
this._ = translations[this.lang]
|
||||
|
||||
// Fix issue with context menu position
|
||||
if ("relative" === this.$main.css("position"))
|
||||
{
|
||||
$("#context-menu").appendTo("#wrapper3");
|
||||
if (this.$main.css('position') === 'relative') {
|
||||
$(window).load(function () {
|
||||
$('#context-menu').appendTo('#wrapper3')
|
||||
})
|
||||
}
|
||||
|
||||
if (window.localStorage)
|
||||
{
|
||||
this.sidebarVisible =
|
||||
null === localStorage.getItem("PurpleMine:sidebarHidden");
|
||||
handleSidebar()
|
||||
}
|
||||
|
||||
if (this.$sidebar.length > 0 &&
|
||||
false === this.$main.hasClass("nosidebar"))
|
||||
{
|
||||
this.buildButton();
|
||||
this.bindKeyHandler();
|
||||
function handleSidebar () {
|
||||
if (window.localStorage) {
|
||||
instance.sidebarVisible =
|
||||
localStorage.getItem('PurpleMine:sidebarHidden') === null
|
||||
}
|
||||
|
||||
if (false === this.sidebarVisible)
|
||||
{
|
||||
this.hideSidebar(true);
|
||||
if (
|
||||
instance.$sidebar.length > 0 &&
|
||||
instance.$main.hasClass('nosidebar') === false
|
||||
) {
|
||||
buildButton()
|
||||
bindKeyHandler()
|
||||
|
||||
if (instance.sidebarVisible === false) {
|
||||
instance.hideSidebar(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SidebarToggler.prototype.bindKeyHandler = function()
|
||||
{
|
||||
var body = document.getElementsByTagName("body")[0];
|
||||
function bindKeyHandler () {
|
||||
var body = document.getElementsByTagName('body')[0]
|
||||
|
||||
window.onkeydown = function(event)
|
||||
{
|
||||
if (body === event.target && 83 === event.keyCode && // "s"
|
||||
false === event.ctrlKey && false === event.altKey &&
|
||||
false === event.shiftKey)
|
||||
{
|
||||
self.toggleSidebar();
|
||||
window.onkeydown = function (event) {
|
||||
if (
|
||||
body === event.target &&
|
||||
event.keyCode === 83 && // "s"
|
||||
event.ctrlKey === false &&
|
||||
event.altKey === false &&
|
||||
event.shiftKey === false
|
||||
) {
|
||||
instance.toggleSidebar()
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
SidebarToggler.prototype.buildButton = function()
|
||||
{
|
||||
var togglerLabel = document.documentElement.lang === "pl" ?
|
||||
"Pokaż/ukryj panel boczny" :
|
||||
"Toggle sidebar",
|
||||
togglerClass = "sidebar-toggler",
|
||||
togglerHtml;
|
||||
|
||||
togglerHtml = "<a href=\"javascript:;\" class=\"" + togglerClass +
|
||||
"\" title=\"" + togglerLabel + "\"></a>";
|
||||
this.$toggler = $(togglerHtml);
|
||||
|
||||
this.$main.append(this.$toggler);
|
||||
this.$toggler.on("click", this.toggleSidebar);
|
||||
};
|
||||
|
||||
SidebarToggler.prototype.toggleSidebar = function()
|
||||
{
|
||||
if (self.sidebarVisible)
|
||||
{
|
||||
self.hideSidebar();
|
||||
}
|
||||
else
|
||||
{
|
||||
self.showSidebar();
|
||||
}
|
||||
};
|
||||
|
||||
SidebarToggler.prototype.hideSidebar = function(immediate)
|
||||
{
|
||||
if (true === immediate)
|
||||
{
|
||||
this.$sidebar.addClass("sidebar-hiding sidebar-hidden");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.$sidebar.addClass("sidebar-hiding");
|
||||
this.sidebarHiding = setTimeout(function sidebarTimeout()
|
||||
{
|
||||
self.$sidebar.addClass("sidebar-hidden");
|
||||
}, 500);
|
||||
}
|
||||
|
||||
this.$toggler.addClass("sidebar-hidden");
|
||||
this.sidebarVisible = false;
|
||||
function buildButton () {
|
||||
var togglerClass = 'sidebar-toggler'
|
||||
var togglerHtml = '<a href="javascript:;" class="' +
|
||||
togglerClass +
|
||||
'" title="' +
|
||||
instance._.toggler +
|
||||
'"></a>'
|
||||
instance.$toggler = $(togglerHtml)
|
||||
|
||||
if (window.localStorage)
|
||||
{
|
||||
localStorage.setItem("PurpleMine:sidebarHidden", "x");
|
||||
instance.$main.append(instance.$toggler)
|
||||
instance.$toggler.on('click', instance.toggleSidebar)
|
||||
}
|
||||
};
|
||||
|
||||
SidebarToggler.prototype.showSidebar = function()
|
||||
{
|
||||
clearTimeout(this.sidebarHiding);
|
||||
this.$sidebar
|
||||
.removeClass("sidebar-hidden", 0)
|
||||
.removeClass("sidebar-hiding");
|
||||
|
||||
this.$toggler.removeClass("sidebar-hidden");
|
||||
this.sidebarVisible = true;
|
||||
|
||||
if (window.localStorage)
|
||||
{
|
||||
localStorage.removeItem("PurpleMine:sidebarHidden");
|
||||
SidebarToggler.prototype.toggleSidebar = function () {
|
||||
if (instance.sidebarVisible) {
|
||||
instance.hideSidebar()
|
||||
} else {
|
||||
instance.showSidebar()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return SidebarToggler;
|
||||
}());
|
||||
SidebarToggler.prototype.hideSidebar = function (immediate) {
|
||||
if (immediate === true) {
|
||||
this.$sidebar.addClass('sidebar-hiding sidebar-hidden')
|
||||
} else {
|
||||
this.$sidebar.addClass('sidebar-hiding')
|
||||
this.sidebarHiding = setTimeout(function sidebarTimeout () {
|
||||
instance.$sidebar.addClass('sidebar-hidden')
|
||||
}, 500)
|
||||
}
|
||||
|
||||
this.$toggler.addClass('sidebar-hidden')
|
||||
this.sidebarVisible = false
|
||||
|
||||
if (window.localStorage) {
|
||||
localStorage.setItem('PurpleMine:sidebarHidden', 'x')
|
||||
}
|
||||
}
|
||||
|
||||
SidebarToggler.prototype.showSidebar = function () {
|
||||
clearTimeout(this.sidebarHiding)
|
||||
|
||||
instance.$sidebar.removeClass('sidebar-hidden')
|
||||
setTimeout(function sidebarTimeout () {
|
||||
instance.$sidebar.removeClass('sidebar-hiding')
|
||||
}, 50)
|
||||
|
||||
this.$toggler.removeClass('sidebar-hidden')
|
||||
this.sidebarVisible = true
|
||||
|
||||
if (window.localStorage) {
|
||||
localStorage.removeItem('PurpleMine:sidebarHidden')
|
||||
}
|
||||
}
|
||||
|
||||
return SidebarToggler
|
||||
}())
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
$(function()
|
||||
{
|
||||
$(function () {
|
||||
/* global PurpleMine */
|
||||
"use strict";
|
||||
'use strict'
|
||||
|
||||
new PurpleMine.SidebarToggler();
|
||||
new PurpleMine.HistoryTabs();
|
||||
});
|
||||
/* eslint-disable no-new */
|
||||
new PurpleMine.SidebarToggler()
|
||||
new PurpleMine.HistoryTabs()
|
||||
new PurpleMine.MenuCollapse()
|
||||
})
|
||||
|
||||
@@ -5,10 +5,9 @@
|
||||
@import "mixins/center-block";
|
||||
@import "mixins/clearfix";
|
||||
@import "mixins/forms";
|
||||
@import "mixins/gradients";
|
||||
@import "mixins/opacity";
|
||||
@import "mixins/image";
|
||||
@import "mixins/text-overflow";
|
||||
@import "mixins/vendor-prefixes";
|
||||
|
||||
@import "mixins/issues";
|
||||
@import "mixins/link-variant";
|
||||
@import "mixins/shadows";
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
$fixed-layout: false !default;
|
||||
$flexbox-layout: true !default;
|
||||
$sidebar-position: left !default;
|
||||
$color-priorities: true !default;
|
||||
$color-trackers: true !default;
|
||||
@@ -14,9 +15,13 @@ $colored-issue: true !default;
|
||||
$color-status: true !default;
|
||||
$use-gravatars: true !default;
|
||||
$use-font-awesome: true !default;
|
||||
$use-logo: false !default;
|
||||
$use-retina-logo: false !default;
|
||||
$use-project-tiles: true !default;
|
||||
$issue-subject-large: true !default;
|
||||
$enable-sidebar-toggler: true !default;
|
||||
$wiki-page-more-vertical-space: true !default;
|
||||
$top-menu-collapse: false !default;
|
||||
|
||||
|
||||
//== Colors
|
||||
@@ -68,12 +73,15 @@ $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, freesans, sa
|
||||
|
||||
$font-family-monospace: Consolas, "Liberation Mono", Menlo, "Courier New", Courier, monospace !default;
|
||||
$font-family-base: $font-family-sans-serif !default;
|
||||
$font-weight-normal: normal !default;
|
||||
$font-weight-bold: bold !default;
|
||||
|
||||
$font-size-base: 14px !default;
|
||||
$font-size-large: 1.285em !default;
|
||||
$font-size-large-px: 18px !default;
|
||||
$font-size-small: .86em !default;
|
||||
$font-size-small-px: 12px !default;
|
||||
$font-size-small-unitless: .86 !default;
|
||||
$font-size-small: $font-size-small-unitless * 1em !default;
|
||||
$font-size-small-px: floor($font-size-small-unitless * $font-size-base) !default;
|
||||
|
||||
$font-size-h1: 2.25em !default;
|
||||
$font-size-h2: 1.75em !default;
|
||||
@@ -88,6 +96,8 @@ $line-height-computed: floor(($font-size-base * $line-height-base)) !de
|
||||
|
||||
$headings-font-weight: 700 !default;
|
||||
$headings-line-height: 1.4 !default;
|
||||
$headings-anchor-color: $gray-lighter !default;
|
||||
$headings-anchor-color-active: $gray-light !default;
|
||||
|
||||
|
||||
//== Wiki
|
||||
@@ -96,6 +106,7 @@ $headings-line-height: 1.4 !default;
|
||||
$wiki-text: #333 !default;
|
||||
$wiki-font-size: 16px !default;
|
||||
$wiki-line-height: 1.6 !default;
|
||||
$wiki-preview-bg: #fcfcfc !default;
|
||||
|
||||
$toc-active-link: darken($link-color, 10%) !default;
|
||||
$toc-active-link-hover: darken($toc-active-link, 10%) !default;
|
||||
@@ -121,7 +132,6 @@ $border-radius-small: 2px !default;
|
||||
|
||||
$hr-border: $gray-light !default;
|
||||
$abbr-border-color: $gray-light !default;
|
||||
$blockquote-border-color-fallback: $gray-lighter !default;
|
||||
$blockquote-border-color: rgba(#000, .15) !default;
|
||||
|
||||
$component-color: $gray-dark !default;
|
||||
@@ -135,6 +145,7 @@ $component-active-border: $brand-primary !default;
|
||||
$font-size-list: .92em !default;
|
||||
|
||||
$collapsible-animation-time: .3s !default;
|
||||
$collapsible-max-height: 10000px !default;
|
||||
|
||||
|
||||
//== Tables
|
||||
@@ -143,9 +154,17 @@ $collapsible-animation-time: .3s !default;
|
||||
$table-cell-padding: 8px !default;
|
||||
$table-condensed-cell-padding: 5px !default;
|
||||
|
||||
$table-list-header-border: 0 0 2px !default;
|
||||
$table-list-item-border: 0 0 1px !default;
|
||||
$table-list-color-odd-rows: true !default;
|
||||
$table-list-color-even-rows: false !default;
|
||||
$table-list-highlight-rows: false !default;
|
||||
|
||||
$table-bg: transparent !default;
|
||||
$table-bg-accent: rgba(#000, .03) !default;
|
||||
$table-bg-hover: #f1f1f1 !default;
|
||||
$table-accent-factor: .03 !default;
|
||||
$table-hover-factor: .03 !default;
|
||||
$table-bg-accent: rgba(#000, $table-accent-factor) !default;
|
||||
$table-bg-hover: rgba(#000, $table-hover-factor) !default;
|
||||
$table-bg-active: $table-bg-hover !default;
|
||||
|
||||
$table-border-color: darken($body-bg, 13.5%) !default;
|
||||
@@ -232,6 +251,7 @@ $diff-in-bg-light: rgba($diff-in-bg, .3) !default;
|
||||
|
||||
//== Journal changes
|
||||
//
|
||||
|
||||
$journal-old-value-color: #430 !default;
|
||||
$journal-old-value-bg: rgba(#ffeaaa, .3) !default;
|
||||
$journal-new-value-color: #350 !default;
|
||||
@@ -252,6 +272,9 @@ $changeset-deleted-color: $brand-danger !default;
|
||||
//
|
||||
|
||||
$btn-font-weight: normal !default;
|
||||
$btn-padding-vertical: 3px !default;
|
||||
$btn-padding-horizontal: 12px !default;
|
||||
$btn-padding-horizontal-small: 8px !default;
|
||||
|
||||
$btn-link-color: $link-color !default;
|
||||
$btn-link-bg: $body-bg !default;
|
||||
@@ -263,11 +286,11 @@ $btn-default-border: $gray-lighter !default;
|
||||
|
||||
$btn-primary-color: #fff !default;
|
||||
$btn-primary-bg: $brand-info !default;
|
||||
$btn-primary-border: darken($btn-primary-bg, 5%) !default;
|
||||
$btn-primary-border: $btn-primary-bg !default;
|
||||
|
||||
$btn-success-color: #fff !default;
|
||||
$btn-success-bg: $brand-success !default;
|
||||
$btn-success-border: darken($btn-success-bg, 5%) !default;
|
||||
$btn-success-border: $btn-success-bg !default;
|
||||
|
||||
|
||||
//== Highlights
|
||||
@@ -291,10 +314,12 @@ $input-border: #ccc !default;
|
||||
$input-border-radius: $border-radius-small !default;
|
||||
$input-border-radius-large: $border-radius-large !default;
|
||||
|
||||
$input-border-focus: #51a7e8 !default;
|
||||
$input-border-focus: $brand-primary !default;
|
||||
$input-border-focus-alpha: .6 !default;
|
||||
$input-shadow-focus-alpha: .2 !default;
|
||||
$input-color-placeholder: #999 !default;
|
||||
|
||||
$input-padding-vertical: 3px !default;
|
||||
$input-padding-vertical: $btn-padding-vertical !default;
|
||||
$input-padding-horizontal: 8px !default;
|
||||
|
||||
$input-height-base: ($line-height-computed + ($input-padding-vertical * 2) + 2) !default;
|
||||
@@ -306,6 +331,12 @@ $label-space: 10px !default;
|
||||
$legend-color: $gray-dark !default;
|
||||
$legend-border-color: #e5e5e5 !default;
|
||||
|
||||
$check-input-gutter: 20px !default;
|
||||
$check-input-margin-vertical: 3px !default;
|
||||
$check-input-margin-horizontal: 8px !default;
|
||||
|
||||
$check-list-max-height: 20 * $line-height-computed;
|
||||
$check-list-offset-top: $input-padding-vertical + 1px;
|
||||
|
||||
//== Top
|
||||
//
|
||||
@@ -319,10 +350,37 @@ $header-bg: $brand-primary !default;
|
||||
$header-text: $brand-text !default;
|
||||
$header-link: $brand-text !default;
|
||||
$header-root: $brand-accent !default;
|
||||
$header-padding-vertical: 10px !default;
|
||||
$header-padding-horizontal: $padding-side !default;
|
||||
$header-title-size: $font-size-h3 !default;
|
||||
$header-title-line-height: $line-height-computed * 1.5 !default;
|
||||
|
||||
$responsive-header-height: 54px !default;
|
||||
|
||||
$flyout-menu-bg: darken($header-bg, 15%) !default;
|
||||
$flyout-menu-text: #fff !default;
|
||||
$flyout-menu-link: #fff !default;
|
||||
$flyout-menu-link-active-bg: $header-bg !default;
|
||||
$flyout-menu-link-active: #fff !default;
|
||||
$flyout-menu-header-bg: darken($header-bg, 25%) !default;
|
||||
$flyout-menu-header-border: darken($header-bg, 25%) !default;
|
||||
$flyout-menu-header-text: #fff !default;
|
||||
|
||||
$quick-search-width: 200px !default;
|
||||
$quick-search-border: darken($header-bg, 15%) !default;
|
||||
$quick-search-border-focus: lighten($header-bg, 25%) !default;
|
||||
$quick-search-box-width: 300px !default;
|
||||
$quick-search-dropdown-bg: $body-bg !default;
|
||||
$quick-search-dropdown-border: $gray-lighter !default;
|
||||
|
||||
$logo-image-width: 60px !default;
|
||||
$logo-image-height: 40px !default;
|
||||
$logo-position-horizontal: $header-padding-vertical !default;
|
||||
$logo-position-vertical: center !default;
|
||||
$logo-space: floor($header-padding-vertical / 2) !default;
|
||||
|
||||
$main-menu-bg: $gray-lightest !default;
|
||||
$main-menu-bg-hover: $gray-lightest !default;
|
||||
$main-menu-link: $gray-darker !default;
|
||||
$main-menu-link-active: #000 !default;
|
||||
$main-menu-border: $gray-lighter !default;
|
||||
@@ -331,23 +389,31 @@ $main-menu-shadow-width: 3px !default;
|
||||
$main-menu-shadow-active: $brand-primary !default;
|
||||
$main-menu-padding-vertical: $padding-large-vertical !default;
|
||||
$main-menu-padding-horizontal: 5px !default;
|
||||
$main-menu-dropdown-bg: lighten($main-menu-bg, 3%);
|
||||
|
||||
|
||||
//== Pagination
|
||||
//
|
||||
|
||||
$pagination-padding-vertical: $btn-padding-vertical !default;
|
||||
$pagination-padding-horizontal: 10px !default;
|
||||
|
||||
$pagination-color: $link-color !default;
|
||||
$pagination-bg: #fff !default;
|
||||
$pagination-bg: #fafafa !default;
|
||||
$pagination-border: #ddd !default;
|
||||
|
||||
$pagination-hover-color: $link-hover-color !default;
|
||||
$pagination-hover-bg: $gray-lightest !default;
|
||||
$pagination-hover-border: #ddd !default;
|
||||
$pagination-hover-border: #bbb !default;
|
||||
|
||||
$pagination-active-color: #fff !default;
|
||||
$pagination-active-bg: $brand-primary !default;
|
||||
$pagination-active-border: $brand-primary !default;
|
||||
|
||||
$pagination-inactive-color: #ccc !default;
|
||||
$pagination-inactive-bg: #fff !default;
|
||||
$pagination-inactive-border: #eee !default;
|
||||
|
||||
|
||||
//== Tabs
|
||||
//
|
||||
@@ -368,6 +434,7 @@ $tab-active-border: $tab-border !default;
|
||||
$sidebar-width: 270px !default;
|
||||
$sidebar-padding-vertical: $padding-base-vertical !default;
|
||||
$sidebar-padding-horizontal: $padding-side !default;
|
||||
$sidebar-width-computed: $sidebar-width - ($sidebar-padding-horizontal * 2) - 1px !default;
|
||||
$sidebar-link-hover-bg: $gray-lightest !default;
|
||||
$sidebar-link-active-bg: $body-bg !default;
|
||||
$sidebar-link-active-border: $gray-lighter !default;
|
||||
@@ -407,9 +474,11 @@ $progress-bar-info-bg: lighten($brand-info, 20%) !default;
|
||||
//== Panels
|
||||
//
|
||||
|
||||
$panel-body-padding: 15px !default;
|
||||
$panel-body-padding-vertical: 15px !default;
|
||||
$panel-body-padding-horizontal: 15px !default;
|
||||
$panel-body-padding: $panel-body-padding-vertical $panel-body-padding-horizontal !default;
|
||||
$panel-color: #555 !default;
|
||||
$panel-bg: #f5f5f5 !default;
|
||||
$panel-bg: #f9f9f9 !default;
|
||||
$panel-border: #ccc !default;
|
||||
$panel-border-radius: $border-radius-base !default;
|
||||
$panel-shadow: 0 1px 2px rgba(#000, .1),
|
||||
@@ -420,6 +489,7 @@ $panel-shadow: 0 1px 2px rgba(#000, .1),
|
||||
//
|
||||
|
||||
$tooltip-bg: #fff !default;
|
||||
$tooltip-border-width: 0 !default;
|
||||
$tooltip-border: #ccc !default;
|
||||
$tooltip-text: $gray-dark !default;
|
||||
$tooltip-link: $link-color !default;
|
||||
@@ -442,6 +512,7 @@ $issue-attribute-padding-h: 5px !default;
|
||||
|
||||
//== Speech "bubbles"
|
||||
//
|
||||
|
||||
$bubble-gravatar-size: 24px !default;
|
||||
$bubble-gravatar-space: 12px !default;
|
||||
$bubble-padding-vertical: 8px !default;
|
||||
@@ -452,6 +523,7 @@ $bubble-padding-horizontal: 15px !default;
|
||||
//
|
||||
|
||||
$screen-xs: 480px !default;
|
||||
$screen-xs-min: $screen-xs !default;
|
||||
|
||||
$screen-sm: 768px !default;
|
||||
$screen-sm-min: $screen-sm !default;
|
||||
@@ -466,6 +538,24 @@ $screen-xs-max: ($screen-sm-min - 1) !default;
|
||||
$screen-sm-max: ($screen-md-min - 1) !default;
|
||||
$screen-md-max: ($screen-lg-min - 1) !default;
|
||||
|
||||
$redmine-responsive-max: 899px !default;
|
||||
$redmine-responsive-min: 900px !default;
|
||||
|
||||
$top-menu-collapse-breakpoint: $screen-lg-min !default;
|
||||
|
||||
|
||||
//== Login form
|
||||
//
|
||||
|
||||
$login-form-width: 24em !default;
|
||||
$login-form-label-width: 8em !default;
|
||||
$login-form-box-breakpoint: $screen-xs-min !default;
|
||||
$login-form-adjustments-map: (
|
||||
-2: da en en-GB ko pl tr uk,
|
||||
1: fr hr nl sr-YU sv,
|
||||
2: el eu lt pt sk sr th
|
||||
) !default;
|
||||
|
||||
|
||||
//== Content widths
|
||||
//
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
@import "mixins";
|
||||
|
||||
@import "lib/normalize";
|
||||
@import "lib/font-awesome";
|
||||
|
||||
|
||||
//== Redmine's core elements
|
||||
//
|
||||
@@ -11,7 +13,6 @@
|
||||
@import "components/forms";
|
||||
@import "components/tabs";
|
||||
@import "components/pagination";
|
||||
@import "components/top";
|
||||
@import "components/content";
|
||||
@import "components/gravatar";
|
||||
@import "components/list";
|
||||
@@ -20,6 +21,7 @@
|
||||
@import "components/login";
|
||||
@import "components/admin";
|
||||
@import "components/coderay";
|
||||
@import "components/rouge";
|
||||
@import "components/gantt";
|
||||
@import "components/calendar";
|
||||
@import "components/progress";
|
||||
@@ -27,9 +29,12 @@
|
||||
@import "components/elements";
|
||||
@import "components/jquery-ui";
|
||||
@import "components/icons";
|
||||
@import "components/dropdown";
|
||||
@import "components/top";
|
||||
@import "components/jstoolbar";
|
||||
@import "components/flash";
|
||||
@import "components/image-base64";
|
||||
@import "components/responsive";
|
||||
@import "components/print";
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
li {
|
||||
list-style-type: none;
|
||||
|
||||
> a {
|
||||
> a:not(.icon-only) {
|
||||
padding-left: $sidebar-padding-horizontal + 5px + 20px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: $sidebar-padding-horizontal center;
|
||||
@@ -32,9 +32,8 @@
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Groups
|
||||
*/
|
||||
//== Groups
|
||||
//
|
||||
|
||||
table.members,
|
||||
table.memberships {
|
||||
@@ -44,9 +43,8 @@ table.memberships {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Permissions
|
||||
*/
|
||||
//== Permissions
|
||||
//
|
||||
|
||||
table.permissions {
|
||||
td.role {
|
||||
@@ -58,9 +56,8 @@ table.permissions {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Workflows
|
||||
*/
|
||||
//== Workflows
|
||||
//
|
||||
|
||||
table.transitions {
|
||||
td.enabled {
|
||||
@@ -88,36 +85,16 @@ table.fields_permissions {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enumerations
|
||||
*/
|
||||
|
||||
.controller-enumerations.action-index {
|
||||
#content {
|
||||
> h3,
|
||||
> .list {
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
}
|
||||
|
||||
> p {
|
||||
margin-bottom: $line-height-computed * 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Settings labels
|
||||
*/
|
||||
//== Settings labels
|
||||
//
|
||||
|
||||
fieldset.settings label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Settings -> Notifications
|
||||
*/
|
||||
//== Settings -> Notifications
|
||||
//
|
||||
|
||||
fieldset#notified_events {
|
||||
.parent {
|
||||
@@ -126,9 +103,8 @@ fieldset#notified_events {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Settings -> Repositories
|
||||
*/
|
||||
//== Settings -> Repositories
|
||||
//
|
||||
|
||||
.settings.enabled_scm {
|
||||
table {
|
||||
@@ -136,6 +112,6 @@ fieldset#notified_events {
|
||||
}
|
||||
|
||||
td.scm_name {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ body {
|
||||
color: $text-color;
|
||||
font-family: $font-family-base;
|
||||
font-size: $font-size-base;
|
||||
font-weight: $font-weight-normal;
|
||||
line-height: $line-height-base;
|
||||
}
|
||||
|
||||
@@ -105,7 +106,7 @@ dl {
|
||||
|
||||
dt {
|
||||
margin-top: $line-height-computed;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
@@ -136,8 +137,7 @@ abbr[title] {
|
||||
blockquote {
|
||||
margin: 0 0 $line-height-computed;
|
||||
padding: floor($line-height-computed / 4) $padding-large-horizontal;
|
||||
border-left: 4px solid $blockquote-border-color-fallback;
|
||||
border-left-color: $blockquote-border-color;
|
||||
border-left: 4px solid $blockquote-border-color;
|
||||
|
||||
>:first-child {
|
||||
margin-top: 0;
|
||||
|
||||
@@ -5,20 +5,23 @@
|
||||
input[type="button"],
|
||||
input[type="submit"],
|
||||
button {
|
||||
@include button-size($btn-padding-vertical, $btn-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
transition: background-color ease-in-out .07s,
|
||||
border-color ease-in-out .07s,
|
||||
box-shadow ease-in-out .07s;
|
||||
border: 1px solid;
|
||||
cursor: pointer;
|
||||
font-weight: $btn-font-weight;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
@include button-size($input-padding-vertical, $input-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
||||
@include user-select(none);
|
||||
@include transition(background-color ease-in-out .07s, border-color ease-in-out .07s, box-shadow ease-in-out .07s);
|
||||
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border); // scss-lint:disable DeclarationOrder
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -29,19 +32,17 @@ button {
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
pointer-events: none; // Future-proof disabling of clicks
|
||||
opacity: .65;
|
||||
box-shadow: none;
|
||||
@include opacity(.65);
|
||||
pointer-events: none; // Future-proof disabling of clicks
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Issue form buttons layout
|
||||
*/
|
||||
//== Form buttons layout
|
||||
//
|
||||
|
||||
#issue-form,
|
||||
#history .journal form {
|
||||
form {
|
||||
input[type="submit"] {
|
||||
margin-right: 5px;
|
||||
|
||||
@@ -51,83 +52,28 @@ button {
|
||||
|
||||
+ a {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
+ a + a {
|
||||
+ a {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Project's repository form buttons layout
|
||||
*/
|
||||
|
||||
#repository-form {
|
||||
input[type="submit"] {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Repository's 'View differences' button
|
||||
*/
|
||||
//== Repository's 'View differences' button
|
||||
//
|
||||
|
||||
form[action*="repository/diff"] {
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* New _something_ form buttons layout
|
||||
*/
|
||||
|
||||
#add_attachment_form,
|
||||
#new_time_entry,
|
||||
#new_project,
|
||||
#new_document,
|
||||
#new_group,
|
||||
#new_user {
|
||||
input[type="submit"] {
|
||||
margin-right: 5px;
|
||||
|
||||
+ input {
|
||||
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Wiki form buttons layout
|
||||
*/
|
||||
|
||||
#wiki_form {
|
||||
input[type="submit"] {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Forum and news message form buttons layout
|
||||
*/
|
||||
//== Forum and news message form buttons layout
|
||||
//
|
||||
|
||||
#message-form,
|
||||
#news-form {
|
||||
input[type="submit"] {
|
||||
margin-right: 5px;
|
||||
|
||||
+ a {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
+ a + a {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#message_sticky,
|
||||
#message_locked {
|
||||
position: relative;
|
||||
@@ -137,45 +83,127 @@ form[action*="repository/diff"] {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Query builder buttons
|
||||
*/
|
||||
//== Button links
|
||||
//
|
||||
p.buttons,
|
||||
.other-formats > span,
|
||||
#wiki_add_attachment > p {
|
||||
> a {
|
||||
display: inline-block;
|
||||
padding: $btn-padding-vertical $btn-padding-horizontal-small;
|
||||
border: 1px solid $pagination-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $pagination-bg;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $pagination-hover-border;
|
||||
outline: 0;
|
||||
background-color: $pagination-hover-bg;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:active {
|
||||
outline: 0;
|
||||
box-shadow: inset 0 3px 4px -2px rgba(#000, .1);
|
||||
}
|
||||
|
||||
&.icon {
|
||||
padding-left: 20px + $btn-padding-horizontal-small;
|
||||
background-position: $btn-padding-horizontal-small 50%;
|
||||
}
|
||||
|
||||
@if $use-font-awesome == false {
|
||||
&.atom {
|
||||
padding-left: 20px + $btn-padding-horizontal-small;
|
||||
background-position: $btn-padding-horizontal-small 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Action buttons group
|
||||
//
|
||||
|
||||
p.buttons {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
|
||||
|
||||
//== Export actions
|
||||
//
|
||||
|
||||
.other-formats {
|
||||
margin: $line-height-computed 0 0;
|
||||
text-align: right;
|
||||
|
||||
.pagination + &,
|
||||
#wiki_add_attachment + & {
|
||||
margin-top: 0;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Query builder buttons
|
||||
//
|
||||
|
||||
.query-columns {
|
||||
select {
|
||||
width: auto !important;
|
||||
width: auto !important; // scss-lint:disable ImportantRule
|
||||
min-width: 130px;
|
||||
}
|
||||
|
||||
@at-root span#{&} {
|
||||
> span {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
vertical-align: middle;
|
||||
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="button"] {
|
||||
display: block;
|
||||
width: 32px;
|
||||
margin-bottom: 4px;
|
||||
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
||||
padding-right: 1px;
|
||||
padding-left: 1px;
|
||||
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border); // scss-lint:disable DeclarationOrder
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Button for toggling multiselect (in filters)
|
||||
*/
|
||||
//== Button for toggling multiselect (in filters)
|
||||
//
|
||||
|
||||
a[data-expands],
|
||||
.toggle-multiselect {
|
||||
@extend %image-toggle-plus;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid;
|
||||
border-radius: $border-radius-base;
|
||||
@extend %image-toggle-plus;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 2px 2px;
|
||||
cursor: pointer;
|
||||
vertical-align: top;
|
||||
@include user-select(none);
|
||||
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border); // scss-lint:disable DeclarationOrder
|
||||
}
|
||||
|
||||
a[data-expands] {
|
||||
@@ -183,6 +211,12 @@ a[data-expands] {
|
||||
margin-right: 10px;
|
||||
padding: 10px;
|
||||
|
||||
> .toggle-multiselect {
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ table.cal {
|
||||
background: $highlight-bg;
|
||||
|
||||
p.day-num {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
}
|
||||
|
||||
.debug {
|
||||
// scss-lint:disable ImportantRule
|
||||
background: #00f !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
@@ -52,7 +53,7 @@
|
||||
|
||||
.class {
|
||||
color: #795da3;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.class-variable {
|
||||
@@ -86,7 +87,7 @@
|
||||
|
||||
.definition {
|
||||
color: #099;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.delimiter {
|
||||
@@ -95,7 +96,7 @@
|
||||
|
||||
.directive {
|
||||
color: #088;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.doc {
|
||||
@@ -104,7 +105,7 @@
|
||||
|
||||
.doc-string {
|
||||
color: #d42;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.doctype {
|
||||
@@ -113,7 +114,7 @@
|
||||
|
||||
.entity {
|
||||
color: #800;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.error {
|
||||
@@ -127,7 +128,7 @@
|
||||
|
||||
.exception {
|
||||
color: #c00;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.float {
|
||||
@@ -136,7 +137,7 @@
|
||||
|
||||
.function {
|
||||
color: #06b;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.global-variable {
|
||||
@@ -153,7 +154,7 @@
|
||||
|
||||
.include {
|
||||
color: #b44;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.inline {
|
||||
@@ -163,7 +164,7 @@
|
||||
|
||||
.inline-delimiter {
|
||||
color: #666;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.instance-variable {
|
||||
@@ -188,12 +189,12 @@
|
||||
|
||||
.keyword {
|
||||
color: #b3113e;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #970;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.local-variable {
|
||||
@@ -202,7 +203,7 @@
|
||||
|
||||
.namespace {
|
||||
color: #707;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.octal {
|
||||
@@ -219,7 +220,7 @@
|
||||
|
||||
.predefined-type {
|
||||
color: #0a5;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.preprocessor {
|
||||
@@ -228,7 +229,7 @@
|
||||
|
||||
.pseudo-class {
|
||||
color: #00c;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.regexp {
|
||||
@@ -249,7 +250,7 @@
|
||||
|
||||
.reserved {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.shell {
|
||||
@@ -288,7 +289,7 @@
|
||||
|
||||
.type {
|
||||
color: #339;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.value {
|
||||
@@ -301,36 +302,13 @@
|
||||
|
||||
.insert {
|
||||
background: hsla(120, 100%, 50%, .12);
|
||||
}
|
||||
|
||||
.delete {
|
||||
background: hsla(0, 100%, 50%, .12);
|
||||
}
|
||||
|
||||
.change {
|
||||
background: #007;
|
||||
color: #bbf;
|
||||
}
|
||||
|
||||
.head {
|
||||
background: #505;
|
||||
color: #f8f;
|
||||
|
||||
.filename {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.delete .eyecatcher {
|
||||
margin: -1px;
|
||||
border: 1px solid hsla(0, 100%, 45%, .5);
|
||||
border-bottom: 0 none;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
background-color: hsla(0, 100%, 50%, .2);
|
||||
}
|
||||
|
||||
.insert {
|
||||
background: transparent;
|
||||
color: #0c0;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.eyecatcher {
|
||||
margin: -1px;
|
||||
border: 1px solid hsla(120, 100%, 25%, .5);
|
||||
@@ -339,25 +317,46 @@
|
||||
border-bottom-right-radius: 5px;
|
||||
background-color: hsla(120, 100%, 50%, .2);
|
||||
}
|
||||
|
||||
.insert {
|
||||
background: transparent;
|
||||
color: #0c0;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.delete .delete {
|
||||
.delete {
|
||||
background: hsla(0, 100%, 50%, .12);
|
||||
|
||||
.delete {
|
||||
background: transparent;
|
||||
color: #c00;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.change .change {
|
||||
.eyecatcher {
|
||||
margin: -1px;
|
||||
border: 1px solid hsla(0, 100%, 45%, .5);
|
||||
border-bottom: 0 none;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
background-color: hsla(0, 100%, 50%, .2);
|
||||
}
|
||||
}
|
||||
|
||||
.change {
|
||||
background: #007;
|
||||
color: #bbf;
|
||||
|
||||
.change {
|
||||
color: #88f;
|
||||
}
|
||||
}
|
||||
|
||||
.head .head {
|
||||
.head {
|
||||
background: #505;
|
||||
color: #f8f;
|
||||
|
||||
.head {
|
||||
color: #f4f;
|
||||
}
|
||||
|
||||
.filename {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#main {
|
||||
@if $flexbox-layout {
|
||||
display: flex;
|
||||
} @else {
|
||||
@extend %clearfix;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
@@ -9,8 +13,15 @@
|
||||
|
||||
#content {
|
||||
padding: $padding-side;
|
||||
|
||||
@if $flexbox-layout {
|
||||
$side-space: $sidebar-width + $padding-side * 2;
|
||||
flex: 1 1 auto;
|
||||
width: calc(100% - #{$side-space});
|
||||
} @else {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
@@ -18,39 +29,47 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
#sidebar {
|
||||
width: $sidebar-width - ($sidebar-padding-horizontal * 2) - 1px;
|
||||
padding: $padding-side $sidebar-padding-horizontal;
|
||||
float: $sidebar-position;
|
||||
|
||||
@media screen and (min-width: 1px) {
|
||||
// scss-lint:disable VendorPrefixes
|
||||
$border: $sidebar-link-active-border;
|
||||
$body: $body-bg;
|
||||
|
||||
padding-bottom: $padding-side * 3;
|
||||
background-image: -webkit-linear-gradient($body 1%, $border 10%, $border 85%, $body);
|
||||
background-image: -o-linear-gradient($body 1%, $border 10%, $border 85%, $body);
|
||||
background-image: linear-gradient($body 1%, $border 10%, $border 85%, $body);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1px 100%;
|
||||
@if $flexbox-layout {
|
||||
flex: 0 0 $sidebar-width-computed;
|
||||
|
||||
@if $sidebar-position == "left" {
|
||||
padding-right: $sidebar-padding-horizontal + 1px;
|
||||
background-position: right 0;
|
||||
order: -1;
|
||||
} @else {
|
||||
order: 1;
|
||||
}
|
||||
} @else {
|
||||
width: $sidebar-width-computed;
|
||||
float: $sidebar-position;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1px) {
|
||||
@if not $flexbox-layout {
|
||||
padding-bottom: $padding-side * 3;
|
||||
}
|
||||
|
||||
@if $sidebar-position == "left" {
|
||||
border-right: 1px solid $sidebar-link-active-border;
|
||||
box-shadow: inset -9px 0 6px -6px rgba(0, 0, 0, .05);
|
||||
} @else {
|
||||
padding-left: $sidebar-padding-horizontal + 1px;
|
||||
background-position: left 0;
|
||||
border-left: 1px solid $sidebar-link-active-border;
|
||||
box-shadow: inset 9px 0 6px -6px rgba(0, 0, 0, .05);
|
||||
}
|
||||
}
|
||||
|
||||
.nosidebar & {
|
||||
width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
|
||||
@if $flexbox-layout {
|
||||
flex: 0 0 auto;
|
||||
} @else {
|
||||
width: 0;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: $line-height-computed * 1.5;
|
||||
@@ -77,7 +96,7 @@
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
|
||||
> a {
|
||||
> a:not(.icon-only) {
|
||||
display: block;
|
||||
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
|
||||
border: 1px solid transparent;
|
||||
@@ -117,7 +136,7 @@
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin: $line-height-computed $padding-side;
|
||||
margin: 0 $padding-side $line-height-computed;
|
||||
padding-top: $line-height-computed;
|
||||
border-top: 1px solid $gray-lighter;
|
||||
color: $gray-light;
|
||||
|
||||
98
src/sass/components/_dropdown.scss
Normal file
@@ -0,0 +1,98 @@
|
||||
.drdn {
|
||||
position: relative;
|
||||
|
||||
&.expanded {
|
||||
> .drdn-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
> .drdn-trigger {
|
||||
@if $use-font-awesome {
|
||||
&::after {
|
||||
content: $fa-var-caret-up;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-up;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-trigger {
|
||||
@extend %form-field;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
@if $use-font-awesome {
|
||||
@extend %fa-icon-after;
|
||||
|
||||
&::after {
|
||||
content: $fa-var-caret-down;
|
||||
position: absolute;
|
||||
top: ($font-size-base / 2);
|
||||
right: $input-padding-horizontal;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-down;
|
||||
background-repeat: no-repeat;
|
||||
background-position: right ($input-padding-horizontal / 2) center;
|
||||
}
|
||||
}
|
||||
|
||||
&-content {
|
||||
@include nice-shadow(2);
|
||||
display: none;
|
||||
position: absolute;
|
||||
z-index: 1002;
|
||||
top: $input-height-base + $btn-padding-vertical;
|
||||
right: 0;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-base;
|
||||
background: $main-menu-dropdown-bg;
|
||||
}
|
||||
|
||||
&-items {
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
color: $gray-light;
|
||||
|
||||
&:empty {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&.selection {
|
||||
> a,
|
||||
> span {
|
||||
&::before {
|
||||
content: " ";
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@if $use-font-awesome {
|
||||
@extend %fa-icon;
|
||||
}
|
||||
}
|
||||
|
||||
> .selected::before {
|
||||
@if $use-font-awesome {
|
||||
content: $fa-var-check;
|
||||
} @else {
|
||||
content: "\2713 ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a,
|
||||
> span {
|
||||
display: block;
|
||||
padding: $btn-padding-vertical $btn-padding-horizontal;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,128 +3,108 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
/**
|
||||
* Action buttons group
|
||||
*/
|
||||
|
||||
.buttons {
|
||||
margin-top: $line-height-computed;
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Export actions
|
||||
*/
|
||||
|
||||
.other-formats {
|
||||
margin: ($line-height-computed / 2) 0 0;
|
||||
text-align: right;
|
||||
|
||||
span + span:before {
|
||||
content: "/ ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Collapsible
|
||||
*/
|
||||
//== Collapsible
|
||||
//
|
||||
|
||||
a.collapsible,
|
||||
.collapsible > legend {
|
||||
cursor: pointer;
|
||||
color: $link-color;
|
||||
@include user-select(none);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
&:hover {
|
||||
color: $link-hover-color;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
margin-right: 3px;
|
||||
transform: rotate(0);
|
||||
border-top: 6px solid;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
content: "";
|
||||
vertical-align: middle;
|
||||
@include rotate(0);
|
||||
|
||||
@if $collapsible-animation-time > 0 {
|
||||
@include transition-transform($collapsible-animation-time);
|
||||
transition: transform $collapsible-animation-time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a.collapsible.collapsed,
|
||||
.collapsible.collapsed > legend {
|
||||
&:before {
|
||||
@include rotate(-90deg);
|
||||
&::before {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
}
|
||||
|
||||
@if $collapsible-animation-time > 0 {
|
||||
fieldset.collapsible {
|
||||
min-height: $line-height-computed;
|
||||
max-height: 2500px; // should be enough with all the possible filters
|
||||
max-height: $collapsible-max-height;
|
||||
overflow: hidden;
|
||||
@include transition(max-height $collapsible-animation-time ease-out);
|
||||
transition: max-height $collapsible-animation-time ease-out;
|
||||
|
||||
> div {
|
||||
display: block !important;
|
||||
opacity: 1;
|
||||
display: block !important; // scss-lint:disable ImportantRule
|
||||
visibility: visible;
|
||||
@include transition(visibility 0s 0s, opacity $collapsible-animation-time);
|
||||
transition: visibility 0s 0s, opacity $collapsible-animation-time;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&.collapsed {
|
||||
max-height: 0;
|
||||
@include transition(max-height $collapsible-animation-time);
|
||||
transition: max-height $collapsible-animation-time;
|
||||
|
||||
> div {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
@include transition(visibility 0s $collapsible-animation-time, opacity $collapsible-animation-time);
|
||||
transition: visibility 0s $collapsible-animation-time, opacity $collapsible-animation-time;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Elements with context menus (doesn't really work on Windows)
|
||||
*/
|
||||
//== Elements with context menus (doesn't really work on Windows)
|
||||
//
|
||||
|
||||
.hascontextmenu {
|
||||
cursor: context-menu;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Actions for block
|
||||
*/
|
||||
//== Actions for block
|
||||
//
|
||||
|
||||
.contextual {
|
||||
padding-left: $padding-base-vertical;
|
||||
float: right;
|
||||
cursor: default;
|
||||
white-space: nowrap;
|
||||
|
||||
input,
|
||||
select {
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-left: $padding-small-vertical;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
> :first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Accessibility specific styles
|
||||
*/
|
||||
//== Accessibility specific styles
|
||||
//
|
||||
|
||||
.hidden-for-sighted {
|
||||
position: absolute;
|
||||
@@ -136,19 +116,17 @@ a.collapsible.collapsed,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Responsive autoscroll
|
||||
*/
|
||||
//== Responsive autoscroll
|
||||
//
|
||||
|
||||
.autoscroll {
|
||||
overflow-x: auto;
|
||||
margin-bottom: $line-height-computed;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Container
|
||||
*/
|
||||
//== Container
|
||||
//
|
||||
|
||||
.box {
|
||||
margin-bottom: $line-height-computed;
|
||||
@@ -165,12 +143,20 @@ a.collapsible.collapsed,
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:last-child,
|
||||
>:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> h3 {
|
||||
margin-bottom: $panel-body-padding-vertical;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Column form layout
|
||||
*/
|
||||
//== Column form layout
|
||||
//
|
||||
|
||||
.splitcontent {
|
||||
@extend %clearfix;
|
||||
@@ -178,8 +164,12 @@ a.collapsible.collapsed,
|
||||
|
||||
.splitcontentleft,
|
||||
.splitcontentright {
|
||||
box-sizing: border-box;
|
||||
width: 50%;
|
||||
@include box-sizing(border-box);
|
||||
|
||||
> .wiki {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
}
|
||||
|
||||
.splitcontentleft {
|
||||
@@ -193,24 +183,22 @@ a.collapsible.collapsed,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Watchers selection list
|
||||
*/
|
||||
//== Watchers selection list
|
||||
//
|
||||
|
||||
#users_for_watcher {
|
||||
height: 200px;
|
||||
overflow: auto;
|
||||
|
||||
label {
|
||||
@include check;
|
||||
display: block;
|
||||
@include checkbox;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Watchers list
|
||||
*/
|
||||
//== Watchers list
|
||||
//
|
||||
|
||||
#watchers {
|
||||
select {
|
||||
@@ -220,9 +208,9 @@ a.collapsible.collapsed,
|
||||
|
||||
> .watchers {
|
||||
> li {
|
||||
@extend %clearfix;
|
||||
display: block;
|
||||
margin-bottom: $sidebar-padding-vertical;
|
||||
@extend %clearfix;
|
||||
|
||||
@if $sidebar-position == "left" {
|
||||
padding-right: $sidebar-padding-horizontal;
|
||||
@@ -230,7 +218,7 @@ a.collapsible.collapsed,
|
||||
padding-left: $sidebar-padding-horizontal;
|
||||
}
|
||||
|
||||
> a {
|
||||
> a:not(.icon-only) {
|
||||
display: inline;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
@@ -257,9 +245,25 @@ a.collapsible.collapsed,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Subtitle paragraph (can be seen on activity list)
|
||||
*/
|
||||
//== Users selection list
|
||||
//
|
||||
|
||||
#principals {
|
||||
label {
|
||||
@include check;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.roles-selection {
|
||||
label {
|
||||
@include check-inline;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Subtitle paragraph (can be seen on activity list)
|
||||
//
|
||||
|
||||
p.subtitle {
|
||||
margin-top: ($line-height-computed / -2);
|
||||
@@ -268,18 +272,8 @@ p.subtitle {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Breadcrumbs (can be seen in time entries report)
|
||||
* No need to style them, but let this selector be here.
|
||||
*/
|
||||
|
||||
// p.breadcrumb {
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* My page layout
|
||||
*/
|
||||
//== My page layout
|
||||
//
|
||||
|
||||
#block-form {
|
||||
display: inline;
|
||||
@@ -301,8 +295,8 @@ p.subtitle {
|
||||
}
|
||||
|
||||
&.ui-sortable-handle {
|
||||
outline: 1px solid $gray-lighter;
|
||||
overflow: hidden;
|
||||
outline: 1px solid $gray-lighter;
|
||||
|
||||
&:hover {
|
||||
outline: 1px solid $gray-light;
|
||||
@@ -310,14 +304,14 @@ p.subtitle {
|
||||
}
|
||||
|
||||
&.ui-sortable-placeholder {
|
||||
visibility: visible !important; // scss-lint:disable ImportantRule
|
||||
outline: 1px dashed $highlight-border;
|
||||
background: $highlight-bg;
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
&.ui-sortable-helper {
|
||||
@include nice-shadow(4);
|
||||
background: $body-bg;
|
||||
box-shadow: $panel-shadow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,20 +324,62 @@ a.close-icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin-top: 5px;
|
||||
overflow: hidden;
|
||||
background-image: url("../../../images/close.png");
|
||||
background-repeat: no-repeat;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover {
|
||||
background-image: url("../../../images/close_hl.png");
|
||||
}
|
||||
}
|
||||
|
||||
// For Redmine 3.4+
|
||||
#my-page {
|
||||
.block-receiver {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&.dragging .block-receiver {
|
||||
box-sizing: border-box;
|
||||
min-height: 20px;
|
||||
margin: $padding-side / -2;
|
||||
margin-bottom: $line-height-computed;
|
||||
padding: $padding-side / 2;
|
||||
outline: 2px dashed $gray-light;
|
||||
}
|
||||
|
||||
.mypage-box {
|
||||
> .contextual {
|
||||
transition: opacity .2s;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover > .contextual {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
#list-left {
|
||||
width: 50%;
|
||||
padding-right: ($padding-side / 2);
|
||||
float: left;
|
||||
}
|
||||
|
||||
#list-right {
|
||||
width: 50%;
|
||||
padding-left: ($padding-side / 2);
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Resetting font for SCM (repository files)
|
||||
//
|
||||
|
||||
/**
|
||||
* Resetting font for SCM (repository files)
|
||||
*/
|
||||
#content table.filecontent {
|
||||
width: 100%;
|
||||
background: $body-bg;
|
||||
@@ -416,9 +452,8 @@ a.close-icon {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Projects list
|
||||
*/
|
||||
//== Projects list
|
||||
//
|
||||
|
||||
ul.projects {
|
||||
padding-left: $padding-side;
|
||||
@@ -434,6 +469,33 @@ ul.projects {
|
||||
}
|
||||
|
||||
#projects-index ul.projects {
|
||||
@if $use-project-tiles {
|
||||
&.root {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-right: -($padding-side / 2);
|
||||
margin-left: -($padding-side / 2);
|
||||
|
||||
> li {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
flex: 0 1 auto;
|
||||
width: 100%;
|
||||
margin-right: $padding-side / 2;
|
||||
margin-left: $padding-side / 2;
|
||||
padding: $panel-body-padding;
|
||||
border: 1px solid $panel-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $panel-bg;
|
||||
color: $panel-color;
|
||||
|
||||
@media screen and (min-width: $screen-sm-min) { width: calc(50% - #{$padding-side}); }
|
||||
@media screen and (min-width: $screen-md-min) { width: calc(33.333% - #{$padding-side}); }
|
||||
@media screen and (min-width: $screen-lg-min) { width: calc(25% - #{$padding-side}); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.projects {
|
||||
border-left: 2px solid $gray-lighter;
|
||||
}
|
||||
@@ -448,7 +510,7 @@ ul.projects {
|
||||
|
||||
a.project {
|
||||
font-size: $font-size-h3;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
&.child {
|
||||
font-weight: normal;
|
||||
@@ -472,9 +534,8 @@ ul.projects {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Time report
|
||||
*/
|
||||
//== Time report
|
||||
//
|
||||
|
||||
#time-report {
|
||||
th {
|
||||
@@ -497,7 +558,7 @@ ul.projects {
|
||||
&.total {
|
||||
border-top: 2px solid darken($table-border-color, 5%);
|
||||
background-color: $table-bg-active;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -507,7 +568,7 @@ ul.projects {
|
||||
}
|
||||
|
||||
.total-hours {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
.hours-int {
|
||||
font-size: $font-size-large * 1.1;
|
||||
@@ -519,9 +580,8 @@ ul.projects {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Version issue list and page layout
|
||||
*/
|
||||
//== Version issue list and page layout
|
||||
//
|
||||
|
||||
div#roadmap {
|
||||
.related-issues {
|
||||
@@ -575,36 +635,35 @@ div#version-summary {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add form bottom space
|
||||
*/
|
||||
//== Add form bottom space
|
||||
//
|
||||
|
||||
#new_document,
|
||||
#add-message,
|
||||
#add-news {
|
||||
#add-news,
|
||||
#edit-news {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ajax indicator
|
||||
*/
|
||||
//== Ajax indicator
|
||||
//
|
||||
|
||||
#ajax-indicator {
|
||||
@include nice-shadow(3);
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 200px;
|
||||
margin: (($line-height-computed + $padding-large-vertical * 2 + 1px * 2) / -2) ((200px + $padding-large-horizontal * 2 + 1px * 2) / -2);
|
||||
padding: $padding-large-vertical $padding-large-horizontal;
|
||||
border: 1px solid $highlight-border;
|
||||
opacity: .9;
|
||||
background-color: $highlight-bg;
|
||||
color: $highlight-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: center;
|
||||
box-shadow: $panel-shadow;
|
||||
opacity: .9;
|
||||
z-index: 100;
|
||||
|
||||
span {
|
||||
padding-left: 26px;
|
||||
@@ -616,9 +675,8 @@ div#version-summary {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Boards (forum)
|
||||
*/
|
||||
//== Boards (forum)
|
||||
//
|
||||
|
||||
tr.message {
|
||||
&.locked {
|
||||
@@ -626,7 +684,7 @@ tr.message {
|
||||
}
|
||||
|
||||
&.sticky td.subject {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
td {
|
||||
@@ -640,7 +698,7 @@ tr.message {
|
||||
white-space: nowrap;
|
||||
|
||||
a:last-child {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -654,16 +712,21 @@ table.boards {
|
||||
white-space: nowrap;
|
||||
|
||||
a:last-child {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.table-list.boards {
|
||||
.table-list-cell.name {
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Topic page
|
||||
*/
|
||||
|
||||
//== Topic page
|
||||
//
|
||||
|
||||
.controller-messages.action-show {
|
||||
h2 {
|
||||
@@ -687,7 +750,7 @@ table.boards {
|
||||
color: $gray-darker;
|
||||
|
||||
&.user {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -700,8 +763,8 @@ table.boards {
|
||||
|
||||
.contextual {
|
||||
position: relative;
|
||||
margin-right: $bubble-padding-vertical;
|
||||
z-index: 1;
|
||||
margin-right: $bubble-padding-vertical;
|
||||
|
||||
@if $use-font-awesome {
|
||||
margin-top: $padding-small-vertical;
|
||||
@@ -726,8 +789,9 @@ table.boards {
|
||||
> h4 {
|
||||
position: relative;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
&::before,
|
||||
&::after {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
@@ -737,18 +801,17 @@ table.boards {
|
||||
height: 0;
|
||||
border-style: solid solid outset;
|
||||
border-color: transparent;
|
||||
content: " ";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
margin-top: 1px;
|
||||
margin-left: 2px;
|
||||
border-width: 6px;
|
||||
border-right-color: $panel-bg;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
border-width: 7px;
|
||||
border-right-color: $panel-border;
|
||||
}
|
||||
@@ -768,9 +831,31 @@ table.boards {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* News comments
|
||||
*/
|
||||
//== News
|
||||
//
|
||||
|
||||
.news-article {
|
||||
margin-bottom: $line-height-computed;
|
||||
|
||||
header {
|
||||
h3 {
|
||||
margin-bottom: .3em;
|
||||
line-height: 1.2;
|
||||
|
||||
> a {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.author .user {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
|
||||
//== News comments
|
||||
//
|
||||
|
||||
#comments {
|
||||
> h4 {
|
||||
@@ -788,9 +873,8 @@ table.boards {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Diff
|
||||
*/
|
||||
//== Diff
|
||||
//
|
||||
|
||||
.text-diff {
|
||||
margin-bottom: $line-height-computed;
|
||||
@@ -818,9 +902,8 @@ table.boards {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Repository view
|
||||
*/
|
||||
//== Repository view
|
||||
//
|
||||
|
||||
.revision-info {
|
||||
margin-bottom: $line-height-computed;
|
||||
@@ -892,12 +975,6 @@ tr.changeset {
|
||||
}
|
||||
}
|
||||
|
||||
.revision-graph {
|
||||
circle {
|
||||
// @include translate(0, $table-cell-padding - 1px);
|
||||
}
|
||||
}
|
||||
|
||||
#content #changes-legend {
|
||||
font-size: 1em;
|
||||
|
||||
@@ -923,22 +1000,22 @@ tr.changeset {
|
||||
}
|
||||
|
||||
.change-A {
|
||||
&:before { color: $changeset-add-color; }
|
||||
&::before { color: $changeset-add-color; }
|
||||
a { @include link-variant($changeset-add-color); }
|
||||
}
|
||||
|
||||
.change-M {
|
||||
&:before { color: $changeset-modified-color; }
|
||||
&::before { color: $changeset-modified-color; }
|
||||
a { @include link-variant($changeset-modified-color); }
|
||||
}
|
||||
|
||||
.change-C {
|
||||
&:before { color: $changeset-copied-color; }
|
||||
&::before { color: $changeset-copied-color; }
|
||||
a { @include link-variant($changeset-copied-color); }
|
||||
}
|
||||
|
||||
.change-R {
|
||||
&:before { color: $changeset-renamed-color; }
|
||||
&::before { color: $changeset-renamed-color; }
|
||||
a { @include link-variant($changeset-renamed-color); }
|
||||
}
|
||||
|
||||
|
||||
@@ -13,23 +13,20 @@
|
||||
padding-left: $padding-large-horizontal + 8px + 16px;
|
||||
border: 1px solid;
|
||||
border-radius: $border-radius-large;
|
||||
background-repeat: no-repeat;
|
||||
background-position: $padding-large-horizontal 50%;
|
||||
|
||||
@if $use-font-awesome {
|
||||
@extend %fa-icon;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
margin-left: -(8px + 16px);
|
||||
float: left;
|
||||
line-height: $line-height-computed;
|
||||
}
|
||||
} @else {
|
||||
background-repeat: no-repeat;
|
||||
background-position: $padding-large-horizontal 50%;
|
||||
}
|
||||
|
||||
p:last-child,
|
||||
ol:last-child,
|
||||
ul:last-child {
|
||||
>:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@@ -40,11 +37,15 @@
|
||||
border-color: $border;
|
||||
|
||||
@if $use-font-awesome {
|
||||
@if $icon == "true" { $icon: $fa-var-check; }
|
||||
@elseif $icon == "warning" { $icon: $fa-var-warning; }
|
||||
@elseif $icon == "exclamation" { $icon: $fa-var-exclamation-circle; }
|
||||
@if $icon == "true" {
|
||||
$icon: $fa-var-check;
|
||||
} @elseif $icon == "warning" {
|
||||
$icon: $fa-var-warning;
|
||||
} @elseif $icon == "exclamation" {
|
||||
$icon: $fa-var-exclamation-circle;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: $icon;
|
||||
}
|
||||
} @else {
|
||||
@@ -53,7 +54,7 @@
|
||||
|
||||
a {
|
||||
color: $link;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +78,7 @@
|
||||
text-align: center;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&:before {
|
||||
&::before {
|
||||
margin-left: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ form {
|
||||
}
|
||||
|
||||
.contextual > & {
|
||||
display: inline;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,15 +16,24 @@ button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
font-family: inherit;
|
||||
font-size: $font-size-base;
|
||||
line-height: $line-height-base;
|
||||
@include box-sizing(border-box);
|
||||
}
|
||||
|
||||
%form-field {
|
||||
height: $input-height-base;
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
border: 1px solid $input-border;
|
||||
border-radius: $input-border-radius;
|
||||
background-color: $input-bg;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
color: $input-color;
|
||||
}
|
||||
|
||||
select,
|
||||
textarea,
|
||||
/*
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="date"],
|
||||
@@ -34,36 +43,34 @@ input[type="week"],
|
||||
input[type="number"],
|
||||
input[type="url"],
|
||||
input[type="tel"],
|
||||
input[type="color"]
|
||||
*/
|
||||
input[type="color"],
|
||||
input[type="search"],
|
||||
input[type="email"],
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
height: $input-height-base;
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
border: 1px solid $input-border;
|
||||
border-radius: $input-border-radius;
|
||||
background-color: $input-bg;
|
||||
color: $input-color;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
@include transition(border-color ease-in-out .1s, box-shadow ease-in-out .1s);
|
||||
@include form-control-focus();
|
||||
@include placeholder();
|
||||
@extend %form-field;
|
||||
@include form-control-focus;
|
||||
@include placeholder;
|
||||
transition: border-color ease-in-out .1s, box-shadow ease-in-out .1s;
|
||||
|
||||
&[disabled],
|
||||
&[readonly],
|
||||
fieldset[disabled] & {
|
||||
border-color: $input-border;
|
||||
opacity: 1;
|
||||
background-color: $input-bg-disabled;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
height: auto;
|
||||
resize: vertical;
|
||||
|
||||
&.text_cf {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
@@ -86,9 +93,10 @@ input[type="range"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input.autocomplete {
|
||||
padding-right: 30px;
|
||||
input {
|
||||
&.autocomplete {
|
||||
@extend %image-aci;
|
||||
padding-right: 30px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: right center;
|
||||
|
||||
@@ -97,6 +105,12 @@ input.autocomplete {
|
||||
}
|
||||
}
|
||||
|
||||
&.string_cf,
|
||||
&.link_cf {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
&[multiple],
|
||||
&[size] {
|
||||
@@ -110,29 +124,44 @@ select {
|
||||
option[disabled] {
|
||||
color: $gray-lighter;
|
||||
}
|
||||
|
||||
&.expandable {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/**
|
||||
* Browser hacks: unfortunately every browser has different capabilities when it
|
||||
* comes to styling <select> and <option> tags.
|
||||
*/
|
||||
&.bool_cf {
|
||||
width: auto !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Browser hacks: unfortunately every browser has different capabilities when
|
||||
// it comes to styling <select> and <option> tags.
|
||||
//
|
||||
|
||||
// Mozilla Firefox
|
||||
|
||||
@-moz-document url-prefix() {
|
||||
select {
|
||||
&[multiple] {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
option {
|
||||
option,
|
||||
optgroup::before {
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
border-bottom: 1px dotted $gray-lighter;
|
||||
}
|
||||
|
||||
optgroup > option {
|
||||
padding-right: $input-padding-horizontal * 2;
|
||||
padding-left: $input-padding-horizontal * 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Google Chrome and Safari
|
||||
|
||||
@supports (-webkit-appearance: none) {
|
||||
select[multiple] {
|
||||
padding: 0;
|
||||
@@ -150,16 +179,16 @@ select:-moz-focusring {
|
||||
text-shadow: 0 0 0 #000;
|
||||
}
|
||||
|
||||
select.expandable {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: ($line-height-computed / 2) 0;
|
||||
border: 0 none;
|
||||
border-top: 1px solid $legend-border-color;
|
||||
|
||||
> p > label:first-child {
|
||||
margin-right: $label-space;
|
||||
}
|
||||
}
|
||||
|
||||
legend {
|
||||
@@ -168,9 +197,8 @@ legend {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Required fields' asterisk
|
||||
*/
|
||||
//== Required fields' asterisk
|
||||
//
|
||||
|
||||
span.required {
|
||||
position: relative;
|
||||
@@ -183,9 +211,8 @@ span.required {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Field's hint
|
||||
*/
|
||||
//== Field's hint
|
||||
//
|
||||
|
||||
em.info {
|
||||
display: block;
|
||||
@@ -196,9 +223,9 @@ em.info {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Wiki editor
|
||||
*/
|
||||
//== Wiki editor
|
||||
//
|
||||
|
||||
.wiki-edit {
|
||||
color: $wiki-text;
|
||||
font-family: $font-family-monospace;
|
||||
@@ -206,9 +233,8 @@ em.info {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tabular forms
|
||||
*/
|
||||
//== Tabular forms
|
||||
//
|
||||
|
||||
.tabular {
|
||||
&.settings {
|
||||
@@ -223,10 +249,10 @@ em.info {
|
||||
}
|
||||
|
||||
p {
|
||||
@extend %clearfix;
|
||||
margin: 0 0 ($line-height-computed / 2);
|
||||
padding-left: $label-width + $label-space;
|
||||
clear: left;
|
||||
@extend %clearfix;
|
||||
|
||||
.jstEditor {
|
||||
margin-bottom: 0;
|
||||
@@ -262,7 +288,7 @@ em.info {
|
||||
margin-left: -($label-width + $label-space);
|
||||
float: left;
|
||||
text-align: right;
|
||||
@include user-select(none);
|
||||
user-select: none;
|
||||
|
||||
&.floating {
|
||||
width: 270px;
|
||||
@@ -277,19 +303,12 @@ em.info {
|
||||
margin-left: 0;
|
||||
padding-left: 16px;
|
||||
float: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
|
||||
> input {
|
||||
margin-top: 0;
|
||||
margin-left: -16px;
|
||||
float: left;
|
||||
}
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.inline {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
&.role-visibility {
|
||||
@@ -303,10 +322,32 @@ em.info {
|
||||
}
|
||||
}
|
||||
|
||||
label.inline {
|
||||
display: inline-block;
|
||||
margin-right: $padding-base-horizontal;
|
||||
padding-left: 16px;
|
||||
float: none;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
label.inline,
|
||||
label.block {
|
||||
> input {
|
||||
margin-top: .2em;
|
||||
margin-left: -16px;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Hack: align description edit icon with label
|
||||
//
|
||||
|
||||
/**
|
||||
* Hack: align description edit icon with label
|
||||
*/
|
||||
label[for=issue_description] + a {
|
||||
display: inline-block;
|
||||
margin-top: $input-padding-vertical + 1px;
|
||||
@@ -317,19 +358,18 @@ label[for=issue_description] + a {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Hack: better looking filter checkbox in sidebar in projects list
|
||||
*/
|
||||
//== Hack: better looking filter checkbox in sidebar in projects list
|
||||
//
|
||||
|
||||
label[for=closed] {
|
||||
@include check;
|
||||
display: block;
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
@include checkbox;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Input sizes
|
||||
*/
|
||||
//== Input sizes
|
||||
//
|
||||
|
||||
.wiki-edit,
|
||||
#principal_search,
|
||||
@@ -348,22 +388,6 @@ label[for=closed] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea.text_cf {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
input {
|
||||
&.string_cf,
|
||||
&.link_cf {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
select.bool_cf {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
@if $issue-subject-large {
|
||||
$input-padding-large-vertical: 8px;
|
||||
$input-padding-large-horizontal: 12px;
|
||||
@@ -382,20 +406,32 @@ select.bool_cf {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add space below WYSIWYG
|
||||
*/
|
||||
//== Add space below WYSIWYG
|
||||
//
|
||||
|
||||
.jstEditor {
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
}
|
||||
|
||||
//== User form
|
||||
//
|
||||
|
||||
/**
|
||||
* Attachments
|
||||
*/
|
||||
#user_form {
|
||||
@extend %clearfix;
|
||||
margin-bottom: $line-height-computed;
|
||||
|
||||
#attachments_fields {
|
||||
~ p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Attachments
|
||||
//
|
||||
|
||||
#attachments_fields,
|
||||
#existing-attachments,
|
||||
.attachments_fields {
|
||||
> span {
|
||||
display: block;
|
||||
margin-bottom: $line-height-computed / 4;
|
||||
@@ -405,14 +441,14 @@ select.bool_cf {
|
||||
width: 21.5em;
|
||||
margin-right: .5em;
|
||||
margin-bottom: $line-height-computed / 4;
|
||||
}
|
||||
|
||||
input.filename {
|
||||
&.filename {
|
||||
padding-left: $input-padding-horizontal + 16px;
|
||||
background-image: url("../../../images/attachment.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 4px center;
|
||||
}
|
||||
}
|
||||
|
||||
.ajax-waiting input.filename {
|
||||
background-image: url("../../../images/hourglass.png");
|
||||
@@ -437,9 +473,8 @@ select.bool_cf {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Issue form elements
|
||||
*/
|
||||
//== Issue form elements
|
||||
//
|
||||
|
||||
#issue-form {
|
||||
fieldset {
|
||||
@@ -451,9 +486,7 @@ select.bool_cf {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#issue-form {
|
||||
.splitcontentleft,
|
||||
.splitcontentright {
|
||||
width: 100%;
|
||||
@@ -490,14 +523,15 @@ select.bool_cf {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Hack: first <p> in issue form ("private" option) is moved to the right with
|
||||
* inline styles. Don't allow it break the layout
|
||||
*/
|
||||
//== #all_attributes > p[style] is targeting Redmine 2.x
|
||||
//
|
||||
|
||||
#issue_is_private_wrap,
|
||||
#all_attributes > p[style] {
|
||||
margin-right: 0 !important;
|
||||
margin-right: 0 !important; // scss-lint:disable ImportantRule
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
float: right;
|
||||
|
||||
input {
|
||||
top: 2px;
|
||||
@@ -510,79 +544,49 @@ select.bool_cf {
|
||||
}
|
||||
|
||||
|
||||
#watchers_form {
|
||||
overflow: hidden;
|
||||
|
||||
.search_for_watchers {
|
||||
display: block;
|
||||
}
|
||||
|
||||
// scss-lint:disable VendorPrefixes
|
||||
#watchers_inputs {
|
||||
display: block;
|
||||
max-width: 64em;
|
||||
margin-top: $input-padding-vertical + 1px;
|
||||
max-height: $check-list-max-height;
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
-webkit-columns: 18em 3;
|
||||
-moz-columns: 18em 3;
|
||||
columns: 18em 3;
|
||||
padding-top: $check-list-offset-top;
|
||||
overflow: auto;
|
||||
}
|
||||
columns: 18em 3;
|
||||
|
||||
label.floating {
|
||||
display: block;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
float: none;
|
||||
@include checkbox;
|
||||
|
||||
input[type="checkbox"] {
|
||||
top: -1px;
|
||||
}
|
||||
@include check-list;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Custom logic (boolean) field displayed as radio buttons
|
||||
*/
|
||||
//== List of custom field values
|
||||
//
|
||||
|
||||
.check_box_group {
|
||||
display: block;
|
||||
width: 90%;
|
||||
max-height: $check-list-max-height;
|
||||
padding-top: $check-list-offset-top;
|
||||
overflow-y: auto;
|
||||
|
||||
label {
|
||||
display: block;
|
||||
width: auto;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
float: none;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
@include check-list;
|
||||
}
|
||||
|
||||
// Boolean field displayed as inline radio buttons
|
||||
&.bool_cf {
|
||||
overflow: initial;
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
padding-left: 20px;
|
||||
@include user-select(none);
|
||||
@extend %clearfix;
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
top: 0;
|
||||
margin-left: -20px;
|
||||
float: left;
|
||||
}
|
||||
margin-right: $check-input-margin-horizontal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Filters
|
||||
*/
|
||||
//== Filters
|
||||
//
|
||||
|
||||
fieldset#filters {
|
||||
table {
|
||||
@@ -591,6 +595,10 @@ fieldset#filters {
|
||||
}
|
||||
}
|
||||
|
||||
.add-filter {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
td {
|
||||
&.field {
|
||||
min-width: 180px;
|
||||
@@ -616,16 +624,23 @@ fieldset#filters {
|
||||
|
||||
&.add-filter {
|
||||
padding-top: $table-condensed-cell-padding * 2;
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
div.add-filter {
|
||||
padding-top: $table-condensed-cell-padding;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
#filters-table {
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reset label style for trackers selector in custom field editor
|
||||
*/
|
||||
//== Reset label style for trackers selector in custom field editor
|
||||
//
|
||||
|
||||
label.no-css {
|
||||
width: auto;
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 16px;
|
||||
overflow: hidden;
|
||||
border: 1px solid $gray-lighter;
|
||||
border-left-width: 0;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
|
||||
&.nwday {
|
||||
background-color: $gray-lightest;
|
||||
@@ -20,9 +20,9 @@
|
||||
font-size: $font-size-small;
|
||||
|
||||
div {
|
||||
@include text-overflow;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
@include text-overflow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,33 @@
|
||||
|
||||
&.project,
|
||||
&.version {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
&.parent {
|
||||
height: 3px;
|
||||
|
||||
&.marker {
|
||||
&.starting {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: 0;
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
margin-left: -4px;
|
||||
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
|
||||
}
|
||||
|
||||
&.ending {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
right: 0;
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
margin-left: -4px;
|
||||
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -66,32 +92,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.task.parent {
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
.task.parent.marker {
|
||||
&.starting {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: 0;
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
margin-left: -4px;
|
||||
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
|
||||
}
|
||||
|
||||
&.ending {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
right: 0;
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
margin-left: -4px;
|
||||
background: url("../../../images/task_parent_end.png") no-repeat 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.project,
|
||||
.version {
|
||||
&.task_late,
|
||||
@@ -115,36 +115,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
.version-behind-schedule a,
|
||||
.issue-behind-schedule a {
|
||||
.version-behind-schedule,
|
||||
.issue-behind-schedule {
|
||||
color: $brand-warning;
|
||||
|
||||
@if $color-trackers {
|
||||
&.issue {
|
||||
background-color: $brand-warning;
|
||||
color: $brand-text;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.version-overdue a,
|
||||
.issue-overdue a,
|
||||
.project-overdue a {
|
||||
.version-overdue,
|
||||
.issue-overdue,
|
||||
.project-overdue {
|
||||
color: $brand-danger;
|
||||
|
||||
@if $color-trackers {
|
||||
&.issue {
|
||||
background-color: $brand-danger;
|
||||
color: $brand-text;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tooltips
|
||||
*/
|
||||
|
||||
//== Tooltips
|
||||
//
|
||||
|
||||
.tooltip {
|
||||
position: relative;
|
||||
@@ -152,21 +136,25 @@
|
||||
|
||||
&:hover {
|
||||
z-index: 25;
|
||||
|
||||
.tip {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.tip {
|
||||
@include nice-shadow(3);
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
left: 24px;
|
||||
width: 270px;
|
||||
padding: $padding-base-vertical;
|
||||
border: 1px solid $tooltip-border;
|
||||
border: $tooltip-border-width solid $tooltip-border;
|
||||
background-color: $tooltip-bg;
|
||||
color: $tooltip-text;
|
||||
font-size: $font-size-small;
|
||||
text-align: left;
|
||||
box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
|
||||
}
|
||||
|
||||
@if $sidebar-position == "left" {
|
||||
@@ -177,10 +165,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.tip {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
img.gravatar {
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-large;
|
||||
line-height: 1;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
|
||||
h2 &,
|
||||
@@ -18,7 +18,8 @@ img.gravatar {
|
||||
}
|
||||
|
||||
|
||||
// For Administration -> /users
|
||||
//== Administration -> /users
|
||||
//
|
||||
|
||||
.username img.gravatar {
|
||||
position: relative;
|
||||
@@ -27,7 +28,9 @@ img.gravatar {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Used on 12px Gravatar img tags without the icon background */
|
||||
//== Gravatar
|
||||
// Used on 12px Gravatar img tags without the icon background
|
||||
|
||||
.icon-gravatar {
|
||||
margin-right: 5px;
|
||||
float: left;
|
||||
|
||||
@@ -2,17 +2,33 @@
|
||||
// Base64 encoded images
|
||||
// --------------------------------------------------
|
||||
|
||||
/* ACI = AutoComplete Indicator */
|
||||
// ACI = AutoComplete Indicator
|
||||
%image-aci {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAKBAMAAAAnY0GXAAAAD1BMVEUAAACzs7Ozs7Ozs7Ozs7NJvZFvAAAABHRSTlMA5kpJG2qUMwAAABtJREFUCNdjIBMYCkMRDIg4QhBuAUUhKCIPAAAlaQNk5qF21gAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
%image-arrow-up {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFe2wwFmA2CKQAAAArSURBVAjXYyASGBlAGYoKEJpNUAzCKBEUKQDRzIGCgsEgBpOgoKAQA5kAAOOzAuqv1pGxAAAAAElFTkSuQmCC);
|
||||
}
|
||||
|
||||
%image-arrow-right {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgF1mUUUMBwa6cf6pAAAAIklEQVQI12PADwJgDBEYQ1ADxhBOgDIEFdBF1GG6EOYQCQC/wwKE7b2bNAAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
%image-arrow-down {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgFIFbDAWVn1ccuIAAAAsSURBVAjXYyANMAkKCgqBGMyOgoLOYKFEQcEEMINVUBSqSlEByjA3YCARAADFOwKnW3vw7AAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
%image-arrow-left {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAACHRSTlMAgF1mUUUMBtml7EIAAAAjSURBVAjXYyAAWGEMRyhdJAih2QyhDCZBhAhcDVwXwhziAACuywJHmKAVPgAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
%image-arrow-right {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgF1mUUUMBwa6cf6pAAAAIklEQVQI12PADwJgDBEYQ1ADxhBOgDIEFdBF1GG6EOYQCQC/wwKE7b2bNAAAAABJRU5ErkJggg==);
|
||||
%image-arrow-up-white {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYUlEQVR4Xu2SMQqAMAxFVUxOID2FQ+9R3cRjesX4A5lCoaUFB2nhkeQPLxQyi8jU8xbwYwGBC1CrIIFda4sgKq6vFgS/1eZQI2BwZ/5NlnNJcIAtt8ny04ermx/l4zsYgheccgigTIfmMAAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
%image-arrow-down-white {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAD////////////////////////////////rTT7CAAAACXRSTlMAgFIFbBZWMTBl3YBFAAAALElEQVQI12MgDTAJCgoKgRjMjoKCzmChQEHBADCDQ1AcqkpRAcowM2AgEQAAvM4CiwrixCQAAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
%image-calendar {
|
||||
|
||||
@@ -12,8 +12,30 @@
|
||||
color: $issue-text;
|
||||
word-wrap: break-word;
|
||||
|
||||
@if $use-gravatars
|
||||
{
|
||||
@if $use-gravatars {
|
||||
// For Redmine 3.4+
|
||||
.gravatar-with-child {
|
||||
position: relative;
|
||||
|
||||
> img.gravatar {
|
||||
width: $issue-gravatar-size;
|
||||
height: $issue-gravatar-size;
|
||||
margin-right: 10px;
|
||||
margin-bottom: $line-height-computed / 2;
|
||||
float: left;
|
||||
|
||||
&:nth-child(2) {
|
||||
position: absolute;
|
||||
top: $issue-gravatar-size * .6;
|
||||
left: $issue-gravatar-size * .6;
|
||||
width: $issue-gravatar-size * .5;
|
||||
height: $issue-gravatar-size * .5;
|
||||
border: 2px solid rgba(255, 255, 255, .9);
|
||||
border-radius: 20%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> img.gravatar {
|
||||
width: $issue-gravatar-size;
|
||||
height: $issue-gravatar-size;
|
||||
@@ -22,7 +44,7 @@
|
||||
float: left;
|
||||
}
|
||||
|
||||
table img.gravatar {
|
||||
.assigned-to img.gravatar {
|
||||
position: relative;
|
||||
top: -3px;
|
||||
margin-right: 5px;
|
||||
@@ -30,13 +52,13 @@
|
||||
|
||||
> .subject,
|
||||
> .author {
|
||||
padding-left: $issue-gravatar-size + 10px;
|
||||
padding-left: $issue-gravatar-size * 1.1 + 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&.assigned-to-me {
|
||||
.assigned-to .user {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +67,7 @@
|
||||
margin-bottom: .3em;
|
||||
color: $gray-darkest;
|
||||
font-size: $issue-heading-size * 1em;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
@@ -128,7 +150,8 @@
|
||||
}
|
||||
|
||||
@if $color-status {
|
||||
.attributes td.status {
|
||||
.attributes td.status,
|
||||
.attribute.status .value {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
min-width: 1em;
|
||||
@@ -138,23 +161,67 @@
|
||||
background-color: $brand-primary;
|
||||
color: $brand-text;
|
||||
font-size: $font-size-small;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&.status-1 .attributes td.status {
|
||||
&.status-1 {
|
||||
.attributes td.status,
|
||||
.attribute.status .value {
|
||||
background-color: $brand-info;
|
||||
}
|
||||
}
|
||||
|
||||
&.closed .attributes td.status {
|
||||
&.closed {
|
||||
.attributes td.status,
|
||||
.attribute.status .value {
|
||||
background-color: $brand-danger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.splitcontentleft {
|
||||
@media screen and (min-width: $screen-lg-min) {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.attribute {
|
||||
@extend %clearfix;
|
||||
|
||||
.label,
|
||||
.value {
|
||||
padding: $issue-attribute-padding-v $issue-attribute-padding-h $issue-attribute-padding-v 0;
|
||||
}
|
||||
|
||||
.label {
|
||||
width: 25%;
|
||||
float: left;
|
||||
|
||||
@media screen and (min-width: $screen-lg-min) {
|
||||
width: 14em;
|
||||
}
|
||||
}
|
||||
|
||||
.value {
|
||||
color: $gray-darkest;
|
||||
|
||||
@media screen and (min-width: $screen-lg-min) {
|
||||
width: auto;
|
||||
min-width: 14em + 16em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table.progress {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
div.attachments {
|
||||
margin: $issue-padding (-$issue-padding) (-$issue-padding);
|
||||
margin: -$issue-padding;
|
||||
padding: $issue-padding;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,12 +233,18 @@ div.attachments {
|
||||
padding: $line-height-computed 0;
|
||||
border-top: 1px solid $issue-border;
|
||||
|
||||
@at-root .collapsible #{&} {
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0 0;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p:first-child,
|
||||
.contextual + p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -279,7 +352,7 @@ div.thumbnails {
|
||||
&.hide-details {
|
||||
.journal,
|
||||
.details,
|
||||
.first-of-notes:before {
|
||||
.first-of-notes::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -291,7 +364,7 @@ div.thumbnails {
|
||||
&.hide-notes {
|
||||
.journal,
|
||||
.wiki,
|
||||
.first-of-details:before {
|
||||
.first-of-details::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -309,19 +382,19 @@ div.thumbnails {
|
||||
margin-left: $bubble-gravatar-size + $bubble-gravatar-space;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: -($line-height-computed + 2px);
|
||||
left: 22px;
|
||||
width: 4px;
|
||||
height: $line-height-computed;
|
||||
background-color: darken($body-bg, 5%);
|
||||
content: "";
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.tabs + &:before {
|
||||
.tabs + &::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -333,14 +406,39 @@ div.thumbnails {
|
||||
border-color: darken($issue-border, 25%);
|
||||
|
||||
@if $use-gravatars {
|
||||
h4:before {
|
||||
h4::before {
|
||||
border-right-color: darken($issue-border, 25%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
// For Redmine 4.0+
|
||||
> div > .contextual {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0;
|
||||
padding: $bubble-padding-vertical $bubble-padding-horizontal;
|
||||
font-size: $font-size-list;
|
||||
|
||||
> .journal-actions > a {
|
||||
opacity: .5;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
> a.journal-link {
|
||||
color: $gray;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> div > h4 {
|
||||
margin: 0;
|
||||
padding: $bubble-padding-vertical $bubble-padding-horizontal;
|
||||
border-radius: $panel-border-radius $panel-border-radius 0 0;
|
||||
@@ -352,7 +450,7 @@ div.thumbnails {
|
||||
color: $gray-darker;
|
||||
|
||||
&.user {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,11 +460,12 @@ div.thumbnails {
|
||||
}
|
||||
|
||||
@if $use-gravatars {
|
||||
h4 {
|
||||
> div > h4 {
|
||||
position: relative;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
&::before,
|
||||
&::after {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
@@ -376,18 +475,17 @@ div.thumbnails {
|
||||
height: 0;
|
||||
border-style: solid solid outset;
|
||||
border-color: transparent;
|
||||
content: " ";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
margin-top: 1px;
|
||||
margin-left: 2px;
|
||||
border-width: 6px;
|
||||
border-right-color: $issue-bg;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
border-width: 7px;
|
||||
border-right-color: $issue-border;
|
||||
}
|
||||
@@ -404,9 +502,9 @@ div.thumbnails {
|
||||
margin: 0;
|
||||
padding: $bubble-padding-vertical 0;
|
||||
padding-left: $bubble-padding-horizontal * 3;
|
||||
list-style: none;
|
||||
border-top: 1px solid mix($body-bg, $issue-border, 50%);
|
||||
font-size: $font-size-list;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
@@ -416,7 +514,8 @@ div.thumbnails {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
@@ -425,7 +524,6 @@ div.thumbnails {
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: $gray-light;
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -434,6 +532,15 @@ div.thumbnails {
|
||||
}
|
||||
}
|
||||
|
||||
.thumbnails {
|
||||
margin: 0;
|
||||
padding: 0 $bubble-padding-horizontal $bubble-padding-vertical;
|
||||
|
||||
img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.wiki,
|
||||
form {
|
||||
padding: $issue-padding;
|
||||
@@ -485,7 +592,7 @@ div.thumbnails {
|
||||
> div {
|
||||
border-left-color: $brand-warning;
|
||||
|
||||
h4:before {
|
||||
h4::before {
|
||||
border-right-color: $brand-warning;
|
||||
}
|
||||
}
|
||||
@@ -506,7 +613,7 @@ span.private {
|
||||
background: $brand-warning;
|
||||
color: $brand-text;
|
||||
font-size: $font-size-small;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@@ -526,34 +633,32 @@ span.private {
|
||||
|
||||
div.changeset {
|
||||
margin-top: $line-height-computed / 2 + 2px * 2;
|
||||
overflow: hidden;
|
||||
border: 1px solid $issue-border;
|
||||
border-radius: $panel-border-radius;
|
||||
background-color: $issue-bg;
|
||||
font-size: $font-size-list;
|
||||
overflow: hidden;
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> p {
|
||||
@include clearfix;
|
||||
margin: 0;
|
||||
padding: $padding-base-vertical $padding-base-horizontal;
|
||||
color: $gray;
|
||||
@include clearfix;
|
||||
|
||||
> a {
|
||||
margin-left: .5em;
|
||||
float: right;
|
||||
font-family: $font-family-monospace;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.author a {
|
||||
color: $gray-darker;
|
||||
|
||||
&.user {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
/**
|
||||
* Component containers
|
||||
*/
|
||||
//== Component containers
|
||||
//
|
||||
|
||||
.ui-widget {
|
||||
&,
|
||||
@@ -19,9 +18,8 @@
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
//== Widgets
|
||||
//
|
||||
|
||||
.ui-widget-content {
|
||||
border: 1px solid $panel-border;
|
||||
@@ -37,7 +35,7 @@
|
||||
border: 0 none;
|
||||
background: $header-bg;
|
||||
color: $header-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
a {
|
||||
color: $header-text;
|
||||
@@ -58,24 +56,23 @@
|
||||
}
|
||||
|
||||
.ui-icon {
|
||||
background-image: url("/stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
|
||||
background-image: url("../../../stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Interaction states
|
||||
*/
|
||||
//== Interaction states
|
||||
//
|
||||
|
||||
.ui-state-default,
|
||||
.ui-widget-content .ui-state-default,
|
||||
.ui-widget-header .ui-state-default {
|
||||
border: 1px solid $component-border;
|
||||
background: $component-bg;
|
||||
box-shadow: none;
|
||||
color: $component-color;
|
||||
font-weight: normal;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ui-state-default a,
|
||||
@@ -118,7 +115,7 @@
|
||||
font-weight: normal;
|
||||
|
||||
.ui-icon {
|
||||
background-image: url("/stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
|
||||
background-image: url("../../../stylesheets/jquery/images/ui-icons_ffffff_256x240.png");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,15 +126,18 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ui-sortable-helper {
|
||||
@include nice-shadow(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu (e.g. autocomplete)
|
||||
*/
|
||||
|
||||
//== Menu (e.g. autocomplete)
|
||||
//
|
||||
|
||||
.ui-menu {
|
||||
@include nice-shadow(2);
|
||||
padding: 3px;
|
||||
border-radius: $panel-border-radius;
|
||||
box-shadow: $panel-shadow;
|
||||
}
|
||||
|
||||
.ui-menu-item {
|
||||
@@ -145,13 +145,12 @@
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Dialogs
|
||||
*/
|
||||
//== Dialogs
|
||||
//
|
||||
|
||||
.modal {
|
||||
background: $body-bg;
|
||||
z-index: 50;
|
||||
background: $body-bg;
|
||||
|
||||
h3.title {
|
||||
display: none;
|
||||
@@ -165,14 +164,14 @@
|
||||
|
||||
.ui-dialog {
|
||||
&.ui-widget-content {
|
||||
@include nice-shadow(5);
|
||||
padding: 3px;
|
||||
border: 0 none;
|
||||
box-shadow: $panel-shadow;
|
||||
}
|
||||
|
||||
.ui-dialog-content {
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-dialog-titlebar-close {
|
||||
right: .5em;
|
||||
@@ -188,21 +187,22 @@
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Datepicker
|
||||
*/
|
||||
//== Datepicker
|
||||
//
|
||||
|
||||
img.ui-datepicker-trigger {
|
||||
margin-left: 4px;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ui-datepicker {
|
||||
padding: 3px;
|
||||
box-shadow: $panel-shadow;
|
||||
@include nice-shadow(3);
|
||||
padding: .3em .6em .6em;
|
||||
border: 0 none;
|
||||
|
||||
.ui-datepicker-header {
|
||||
margin: 0 -.3em;
|
||||
padding: .3em;
|
||||
}
|
||||
|
||||
@@ -237,6 +237,7 @@ img.ui-datepicker-trigger {
|
||||
}
|
||||
|
||||
.ui-datepicker-calendar {
|
||||
margin: 0;
|
||||
table-layout: fixed;
|
||||
|
||||
.ui-state-default {
|
||||
@@ -285,4 +286,15 @@ img.ui-datepicker-trigger {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ui-datepicker-buttonpane {
|
||||
@include clearfix;
|
||||
margin: .6em 0 0;
|
||||
padding: .6em 0 0;
|
||||
|
||||
button {
|
||||
margin: 0;
|
||||
padding: $btn-padding-vertical $btn-padding-horizontal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,26 +2,69 @@
|
||||
// WYSIWYG icons
|
||||
// --------------------------------------------------
|
||||
|
||||
// For Redmine 4.0+
|
||||
#content {
|
||||
div.jstTabs.tabs {
|
||||
height: auto;
|
||||
@if $flexbox-layout {
|
||||
@media screen and (max-width: $redmine-responsive-max) {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
li {
|
||||
height: auto;
|
||||
margin: 0;
|
||||
|
||||
&::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
&:not(.tab-elements) {
|
||||
@if $flexbox-layout {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.selected {
|
||||
border-color: $input-border $input-border $tab-active-bg;
|
||||
}
|
||||
}
|
||||
|
||||
&.tab-elements {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.jstElements {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.jstEditor {
|
||||
.wiki-preview {
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
border: 1px solid $input-border;
|
||||
border-radius: $input-border-radius;
|
||||
background-color: $wiki-preview-bg;
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.jstElements {
|
||||
@extend %clearfix;
|
||||
|
||||
.box & {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
margin-bottom: 5px;
|
||||
box-shadow: none;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.jstb_help {
|
||||
margin-right: 0;
|
||||
margin-left: -6px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.box & {
|
||||
button {
|
||||
margin-right: 2px;
|
||||
}
|
||||
@@ -30,6 +73,14 @@
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
@media (min-width: $screen-md) {
|
||||
.jstb_help {
|
||||
margin-right: 0;
|
||||
margin-left: -6px;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: $screen-lg) {
|
||||
button {
|
||||
margin-right: 4px;
|
||||
@@ -40,19 +91,24 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
margin-bottom: 5px;
|
||||
box-shadow: none;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
@if $use-font-awesome
|
||||
{
|
||||
@if $use-font-awesome {
|
||||
.jstElements {
|
||||
%jstb-icon {
|
||||
@include fa-icon;
|
||||
padding: 0;
|
||||
background: $body-bg;
|
||||
background-image: none;
|
||||
color: $btn-default-color;
|
||||
@include fa-icon();
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -60,105 +116,106 @@
|
||||
.jstb_strong {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-bold; }
|
||||
&::before { content: $fa-var-bold; }
|
||||
}
|
||||
|
||||
.jstb_em {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-italic; }
|
||||
&::before { content: $fa-var-italic; }
|
||||
}
|
||||
|
||||
.jstb_ins {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-underline; }
|
||||
&::before { content: $fa-var-underline; }
|
||||
}
|
||||
|
||||
.jstb_del {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-strikethrough; }
|
||||
&::before { content: $fa-var-strikethrough; }
|
||||
}
|
||||
|
||||
.jstb_code {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-code; }
|
||||
&::before { content: $fa-var-code; }
|
||||
}
|
||||
|
||||
.jstb_h1 {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-header; }
|
||||
&::before { content: $fa-var-header; }
|
||||
}
|
||||
|
||||
.jstb_h2 {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { font-size: .7857em; content: $fa-var-header; }
|
||||
&::before { content: $fa-var-header; font-size: .7857em; }
|
||||
}
|
||||
|
||||
.jstb_h3 {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { font-size: .6429em; content: $fa-var-header; }
|
||||
&::before { content: $fa-var-header; font-size: .6429em; }
|
||||
}
|
||||
|
||||
.jstb_ul {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-list-ul; }
|
||||
&::before { content: $fa-var-list-ul; }
|
||||
}
|
||||
|
||||
.jstb_ol {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-list-ol; }
|
||||
&::before { content: $fa-var-list-ol; }
|
||||
}
|
||||
|
||||
.jstb_bq {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-indent; }
|
||||
&::before { content: $fa-var-indent; }
|
||||
}
|
||||
|
||||
.jstb_unbq {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-outdent; }
|
||||
&::before { content: $fa-var-outdent; }
|
||||
}
|
||||
|
||||
.jstb_pre {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-terminal; }
|
||||
&::before { content: $fa-var-terminal; }
|
||||
}
|
||||
|
||||
.jstb_link {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-link; }
|
||||
&::before { content: $fa-var-link; }
|
||||
}
|
||||
|
||||
.jstb_img {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-image; }
|
||||
&::before { content: $fa-var-image; }
|
||||
}
|
||||
|
||||
.jstb_cut {
|
||||
@extend %jstb-icon;
|
||||
|
||||
&:before { content: $fa-var-scissors; }
|
||||
&::before { content: $fa-var-scissors; }
|
||||
}
|
||||
|
||||
.jstb_precode,
|
||||
// For plugin https://github.com/mediatainment/redmine_codebutton
|
||||
.jstb_codehighlight {
|
||||
@extend %jstb-icon;
|
||||
color: $brand-danger;
|
||||
|
||||
&:before { content: $fa-var-code; }
|
||||
&::before { content: $fa-var-code; }
|
||||
}
|
||||
|
||||
button.jstb_help {
|
||||
@@ -169,7 +226,7 @@
|
||||
color: $link-hover-color;
|
||||
}
|
||||
|
||||
&:before { content: $fa-var-question-circle; }
|
||||
&::before { content: $fa-var-question-circle; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,15 @@ table.list {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
th {
|
||||
&.changesets {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
|
||||
th,
|
||||
.table-list-header {
|
||||
padding: $table-cell-padding;
|
||||
border-bottom: 2px solid $table-border-color;
|
||||
border: 2px solid $table-border-color;
|
||||
border-width: $table-list-header-border;
|
||||
color: $gray;
|
||||
vertical-align: bottom;
|
||||
|
||||
@@ -22,16 +28,32 @@ table.list {
|
||||
}
|
||||
}
|
||||
|
||||
tr.ui-sortable-helper {
|
||||
background-color: $highlight-bg;
|
||||
}
|
||||
|
||||
@if $table-list-highlight-rows {
|
||||
> tbody > tr:hover {
|
||||
background-color: $table-bg-hover;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: $table-cell-padding;
|
||||
border-bottom: 1px solid $table-border-color;
|
||||
text-align: left;
|
||||
border: 1px solid $table-border-color;
|
||||
border-width: $table-list-item-border;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&.icon {
|
||||
padding-left: $table-cell-padding + 20px;
|
||||
}
|
||||
}
|
||||
|
||||
&.checkbox {
|
||||
width: 15px;
|
||||
padding: $table-cell-padding 0 0;
|
||||
text-align: center;
|
||||
|
||||
input {
|
||||
margin: 2px 0 0;
|
||||
@@ -46,10 +68,32 @@ table.list {
|
||||
}
|
||||
|
||||
&.id {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.assigned_to,
|
||||
&.attachments,
|
||||
&.author,
|
||||
&.activity,
|
||||
&.category,
|
||||
&.comments,
|
||||
&.description,
|
||||
&.fixed_version,
|
||||
&.last_notes,
|
||||
&.last_updated_by,
|
||||
&.name,
|
||||
&.priority,
|
||||
&.relations,
|
||||
&.roles,
|
||||
&.status,
|
||||
&.string,
|
||||
&.subject,
|
||||
&.text,
|
||||
&.user {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&.estimated_hours,
|
||||
&.remaining_hours,
|
||||
&.spent_hours,
|
||||
@@ -59,6 +103,17 @@ table.list {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.reorder {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&.attachments a {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
td,
|
||||
div {
|
||||
&.buttons {
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
@@ -66,22 +121,10 @@ table.list {
|
||||
a {
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&.project,
|
||||
&.created_on,
|
||||
&.updated_on,
|
||||
&.start_date,
|
||||
&.due_date,
|
||||
&.is_private,
|
||||
&.reorder,
|
||||
&.bool,
|
||||
&.date {
|
||||
text-align: center;
|
||||
img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.reorder {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,6 +134,12 @@ table.list {
|
||||
}
|
||||
}
|
||||
|
||||
.table-list-cell {
|
||||
display: table-cell;
|
||||
padding: $table-cell-padding;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
tr.project {
|
||||
.name a {
|
||||
white-space: nowrap;
|
||||
@@ -104,8 +153,8 @@ tr.project {
|
||||
}
|
||||
|
||||
&.idnt .name span {
|
||||
padding-left: 16px;
|
||||
@extend %image-arrow-right;
|
||||
padding-left: 16px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: -5px 50%;
|
||||
}
|
||||
@@ -121,20 +170,14 @@ tr.issue {
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
|
||||
&.string,
|
||||
&.text,
|
||||
.string,
|
||||
.text,
|
||||
.subject,
|
||||
.category {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.autoscroll & {
|
||||
.subject > a {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.relations {
|
||||
.relations {
|
||||
text-align: left;
|
||||
white-space: normal;
|
||||
|
||||
@@ -143,29 +186,19 @@ tr.issue {
|
||||
}
|
||||
}
|
||||
|
||||
&.done_ratio table.progress {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
&.idnt .subject a {
|
||||
padding-left: 16px;
|
||||
@extend %image-arrow-right;
|
||||
padding-left: 10px;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
@if $color-trackers {
|
||||
background-position: 0 0;
|
||||
} @else {
|
||||
background-position: -5px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.controller-issues.action-index & {
|
||||
&.assigned-to-me {
|
||||
.assigned_to,
|
||||
.subject {
|
||||
a {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -179,8 +212,9 @@ tr.issue {
|
||||
}
|
||||
|
||||
.issues {
|
||||
.description {
|
||||
padding: 0;
|
||||
.description,
|
||||
.last_notes {
|
||||
padding: $table-cell-padding;
|
||||
text-align: left;
|
||||
|
||||
@media screen and (min-width: $screen-sm-min) {
|
||||
@@ -199,13 +233,13 @@ tr.issue {
|
||||
|
||||
tr {
|
||||
span.expander {
|
||||
@extend %image-toggle-plus;
|
||||
margin-left: 0;
|
||||
padding-left: 8px;
|
||||
@extend %image-toggle-plus;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
cursor: pointer;
|
||||
@include user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&.open span.expander {
|
||||
@@ -213,9 +247,6 @@ tr {
|
||||
}
|
||||
}
|
||||
|
||||
// /* do you */ .even {
|
||||
// }
|
||||
|
||||
td.center {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -266,12 +297,26 @@ tr.entry {
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-color-odd-rows {
|
||||
table.list:not(.odd-even) tbody tr:nth-child(odd),
|
||||
.odd {
|
||||
background-color: $table-bg-accent;
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-color-even-rows {
|
||||
table.list:not(.odd-even) tbody tr:nth-child(even),
|
||||
.even {
|
||||
background-color: $table-bg-accent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Priorities
|
||||
//
|
||||
|
||||
/**
|
||||
* Priorities
|
||||
*/
|
||||
// scss-lint:disable SpaceAfterComma
|
||||
@if $color-priorities {
|
||||
// scss-lint:disable SpaceAfterComma
|
||||
@include priority(".priority-lowest", $priority-lowest-bg, $priority-lowest-text, $priority-lowest-link);
|
||||
@include priority(".priority-default", $priority-default-bg, $priority-default-text, $priority-default-link);
|
||||
@include priority(".priority-high3", $priority-high3-bg, $priority-high3-text, $priority-high3-link);
|
||||
@@ -310,20 +355,20 @@ tr.entry {
|
||||
color: mix($tracker-default-text, $tracker-default-bg, 75%);
|
||||
text-decoration: none;
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
bottom: 0;
|
||||
left: 5px;
|
||||
height: calc(50% - 2px/2);
|
||||
transform: rotate(-4deg);
|
||||
transition: border-color .1s;
|
||||
border-top: 2px solid rgba($tracker-default-text, .95);
|
||||
content: "";
|
||||
@include rotate(-4deg);
|
||||
@include transition(border-color .1s);
|
||||
}
|
||||
|
||||
&:hover:after {
|
||||
&:hover::after {
|
||||
border-top-color: rgba($tracker-default-text, .25);
|
||||
}
|
||||
}
|
||||
@@ -333,9 +378,9 @@ tr.entry {
|
||||
display: block;
|
||||
padding: $tracker-list-padding;
|
||||
|
||||
&:before {
|
||||
color: mix($tracker-default-text, $tracker-default-bg, 50%);
|
||||
&::before {
|
||||
content: "#";
|
||||
color: mix($tracker-default-text, $tracker-default-bg, 50%);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,19 +403,14 @@ tr.entry {
|
||||
}
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: $table-bg-accent;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* List groups
|
||||
*/
|
||||
//== List groups
|
||||
//
|
||||
|
||||
tr.group {
|
||||
> td {
|
||||
border-bottom: 1px solid $table-border-color;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: left;
|
||||
|
||||
a {
|
||||
@@ -406,9 +446,8 @@ tr.group {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Time entry in report
|
||||
*/
|
||||
//== Time entry in report
|
||||
//
|
||||
|
||||
tr.time-entry {
|
||||
text-align: center;
|
||||
@@ -430,7 +469,7 @@ tr.time-entry {
|
||||
}
|
||||
|
||||
td.hours {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -449,7 +488,7 @@ tr.time-entry {
|
||||
|
||||
.mypage-box {
|
||||
td.hours {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
@@ -461,9 +500,8 @@ tr.time-entry {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Wiki page history entry
|
||||
*/
|
||||
//== Wiki page history entry
|
||||
//
|
||||
|
||||
tr.wiki-page-version {
|
||||
td.updated_on,
|
||||
@@ -472,9 +510,8 @@ tr.wiki-page-version {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Project versions list
|
||||
*/
|
||||
//== Project versions list
|
||||
//
|
||||
|
||||
tr.version {
|
||||
&.closed {
|
||||
@@ -496,9 +533,8 @@ tr.version {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Users list
|
||||
*/
|
||||
//== Users list
|
||||
//
|
||||
|
||||
tr.user {
|
||||
td {
|
||||
@@ -526,9 +562,8 @@ tr.user {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Plugins list
|
||||
*/
|
||||
//== Plugins list
|
||||
//
|
||||
|
||||
table.plugins {
|
||||
.configure {
|
||||
@@ -538,7 +573,7 @@ table.plugins {
|
||||
span.name {
|
||||
margin-bottom: .5em;
|
||||
font-size: $font-size-large;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.description,
|
||||
@@ -548,9 +583,8 @@ table.plugins {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Files list
|
||||
*/
|
||||
//== Files list
|
||||
//
|
||||
|
||||
table.files {
|
||||
tbody th {
|
||||
@@ -569,9 +603,9 @@ table.files {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin lists
|
||||
*/
|
||||
|
||||
//== Admin lists
|
||||
//
|
||||
|
||||
.controller-enumerations {
|
||||
td.name {
|
||||
@@ -581,5 +615,36 @@ table.files {
|
||||
td.tick,
|
||||
td.reorder {
|
||||
width: 15%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
table.list.enumerations {
|
||||
table-layout: fixed;
|
||||
|
||||
+ h3 {
|
||||
margin-top: $line-height-computed * 2;
|
||||
}
|
||||
|
||||
+ p {
|
||||
margin-bottom: $line-height-computed * 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//== Totals
|
||||
//
|
||||
|
||||
.query-totals {
|
||||
> span {
|
||||
margin-right: $padding-base-horizontal;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.value {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,46 +2,86 @@
|
||||
// Login form
|
||||
// --------------------------------------------------
|
||||
|
||||
$login-form-width: 350px;
|
||||
$login-input-width: 200px;
|
||||
|
||||
#login-form {
|
||||
box-sizing: border-box;
|
||||
margin: $line-height-computed * 2 auto;
|
||||
|
||||
label,
|
||||
input:not([type="checkbox"]) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: $padding-base-vertical;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
&[for="autologin"] {
|
||||
@include check;
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
|
||||
> a {
|
||||
float: right;
|
||||
font-weight: $font-weight-normal;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
margin-bottom: $panel-body-padding-vertical;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: auto;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $screen-sm-min) {
|
||||
width: $login-form-width;
|
||||
td {
|
||||
padding: 0;
|
||||
|
||||
padding: $panel-body-padding;
|
||||
&:first-child {
|
||||
width: $login-form-label-width;
|
||||
padding-right: $table-cell-padding;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
> label {
|
||||
margin-bottom: $panel-body-padding-vertical;
|
||||
}
|
||||
|
||||
> input[type="submit"] {
|
||||
width: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $login-form-box-breakpoint) {
|
||||
width: $login-form-width;
|
||||
padding: $padding-side;
|
||||
border: 1px solid $panel-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $panel-bg;
|
||||
color: $panel-color;
|
||||
box-shadow: $panel-shadow;
|
||||
color: $panel-color;
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
td {
|
||||
width: 90%; // make columns expand
|
||||
padding: $table-cell-padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#username,
|
||||
#password,
|
||||
#openid_url {
|
||||
width: $login-input-width;
|
||||
@each $adjustment, $languages in $login-form-adjustments-map {
|
||||
@each $language in $languages {
|
||||
html[lang="#{$language}"] & td:first-child {
|
||||
width: $login-form-label-width + $adjustment * 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#openid_url {
|
||||
padding-right: 8px + 24px;
|
||||
padding-right: $input-padding-horizontal + 24px;
|
||||
background-image: url("../../../images/openid-bg.gif");
|
||||
background-repeat: no-repeat;
|
||||
background-position: ($login-input-width - 24px) center;
|
||||
background-position: right $input-padding-horizontal center;
|
||||
}
|
||||
|
||||
@@ -2,17 +2,48 @@
|
||||
// Pagination (multiple pages)
|
||||
// --------------------------------------------------
|
||||
.pagination {
|
||||
.previous,
|
||||
.next,
|
||||
.page {
|
||||
.pages {
|
||||
display: inline-block;
|
||||
padding: $padding-small-vertical $padding-small-horizontal;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin-right: .3em;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li > a,
|
||||
li > span,
|
||||
> .previous,
|
||||
> .next,
|
||||
> .page {
|
||||
display: inline-block;
|
||||
padding: $pagination-padding-vertical $pagination-padding-horizontal;
|
||||
border: 1px solid $pagination-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $pagination-bg;
|
||||
color: $pagination-color;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
li > span {
|
||||
border-color: $pagination-inactive-border;
|
||||
background-color: $pagination-inactive-bg;
|
||||
color: $pagination-inactive-color;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.spacer > span {
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
background: transparent;
|
||||
color: $text-color;
|
||||
}
|
||||
|
||||
a {
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $pagination-hover-border;
|
||||
@@ -21,16 +52,32 @@
|
||||
}
|
||||
}
|
||||
|
||||
.page.current {
|
||||
.page.current,
|
||||
.current > span {
|
||||
z-index: 2;
|
||||
border-color: $pagination-active-border;
|
||||
background-color: $pagination-active-bg;
|
||||
cursor: default;
|
||||
color: $pagination-active-color;
|
||||
z-index: 2;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.items,
|
||||
.per-page {
|
||||
margin-left: $padding-small-vertical;
|
||||
display: inline-block;
|
||||
margin: ($pagination-padding-vertical + 1px) 0 ($pagination-padding-vertical + 1px) $pagination-padding-vertical;
|
||||
}
|
||||
}
|
||||
|
||||
p.pagination {
|
||||
margin-bottom: 0;
|
||||
float: left;
|
||||
|
||||
+ h1,
|
||||
+ h2,
|
||||
+ h3,
|
||||
+ h4,
|
||||
+ h5,
|
||||
+ h6 {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,70 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.flyout-menu & {
|
||||
a {
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.burndown_chart {
|
||||
max-width: $sidebar-width-computed;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Redmine Hearts
|
||||
// https://github.com/cat-in-136/redmine_hearts
|
||||
// --------------------------------------------------
|
||||
|
||||
.journal > div + .contextual {
|
||||
border: 0;
|
||||
|
||||
> .heart-link-with-count {
|
||||
display: block;
|
||||
position: relative;
|
||||
margin: -($line-height-computed / 2 + 1px) $bubble-padding-vertical 0;
|
||||
float: right;
|
||||
border: 0;
|
||||
background-color: $body-bg;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
@if $use-font-awesome {
|
||||
.icon.icon-heart,
|
||||
.icon.icon-heart-off {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.icon.icon-heart {
|
||||
&::before {
|
||||
color: #eb5286;
|
||||
}
|
||||
}
|
||||
|
||||
.heart-link-with-count {
|
||||
margin-left: $padding-small-vertical;
|
||||
|
||||
> .heart-count-number {
|
||||
display: inline-block;
|
||||
min-width: 1em;
|
||||
margin: 0 0 0 3px;
|
||||
padding: 1px 4px;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $btn-default-bg;
|
||||
color: $btn-default-color;
|
||||
text-align: center;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,12 +102,19 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
@if $use-font-awesome {
|
||||
.icon.icon-start,
|
||||
.icon.icon-stop {
|
||||
.tt_list_button {
|
||||
@extend %fa-icon;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.icon,
|
||||
.tt_list_button {
|
||||
&.icon-start,
|
||||
&.icon-stop {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.icon.icon-start {
|
||||
&.icon-start {
|
||||
color: $icon-success-color;
|
||||
|
||||
&:hover,
|
||||
@@ -51,12 +122,12 @@
|
||||
color: $icon-success-color;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: $fa-var-clock-o;
|
||||
}
|
||||
}
|
||||
|
||||
.icon.icon-stop {
|
||||
&.icon-stop {
|
||||
color: $icon-danger-color;
|
||||
|
||||
&:hover,
|
||||
@@ -64,14 +135,19 @@
|
||||
color: $icon-danger-color;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: $fa-var-history;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.time-tracker-quick-menu:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#user-time-bookings-list {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +156,12 @@
|
||||
// http://www.redminecrm.com/projects/people/
|
||||
// --------------------------------------------------
|
||||
|
||||
#people_list {
|
||||
table.index {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
}
|
||||
|
||||
#content {
|
||||
.person.details {
|
||||
margin-bottom: $line-height-computed;
|
||||
@@ -166,8 +248,8 @@
|
||||
td a {
|
||||
display: block;
|
||||
max-width: floor($sidebar-width / 3);
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:hover {
|
||||
position: absolute;
|
||||
@@ -212,8 +294,124 @@
|
||||
}
|
||||
|
||||
.buttons {
|
||||
> input {
|
||||
margin-left: .5em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Redmine Stuff To Do
|
||||
// https://github.com/raafael911/stuff_to_do_plugin
|
||||
// --------------------------------------------------
|
||||
|
||||
#stuff-to-do {
|
||||
p {
|
||||
@if $sidebar-position == "left" {
|
||||
margin-right: -($sidebar-padding-horizontal);
|
||||
} @else {
|
||||
margin-left: -($sidebar-padding-horizontal);
|
||||
}
|
||||
|
||||
> a {
|
||||
display: block;
|
||||
padding: $sidebar-padding-vertical $sidebar-padding-horizontal;
|
||||
|
||||
@if $sidebar-position == "left" {
|
||||
border-radius: $border-radius-large 0 0 $border-radius-large;
|
||||
} @else {
|
||||
border-radius: 0 $border-radius-large $border-radius-large 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $sidebar-link-hover-bg;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
> br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Note: the following applies to the latest version
|
||||
// of Stuff To Do plugin from the master branch.
|
||||
|
||||
.controller-stuff_to_do {
|
||||
.menu {
|
||||
label,
|
||||
select {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.stuff-to-do-item {
|
||||
padding: $table-cell-padding;
|
||||
border: 1px solid $table-border-color;
|
||||
border-width: $table-list-item-border;
|
||||
background-color: $body-bg;
|
||||
}
|
||||
|
||||
.pane {
|
||||
ol {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.issue-details {
|
||||
width: 80%;
|
||||
margin: 0;
|
||||
|
||||
@if $use-font-awesome {
|
||||
a {
|
||||
img {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.progress {
|
||||
width: 20%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.estimate {
|
||||
top: $table-cell-padding - 1px;
|
||||
right: $table-cell-padding;
|
||||
left: auto;
|
||||
width: 20%;
|
||||
font-size: $font-size-small;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Redmine WikiNG
|
||||
// https://github.com/martin-denizet/wiking
|
||||
// --------------------------------------------------
|
||||
|
||||
div.wiking {
|
||||
&.flash {
|
||||
@if $use-font-awesome {
|
||||
&.warning,
|
||||
&.notice,
|
||||
&.tip {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
&.tip {
|
||||
&::before {
|
||||
content: $fa-var-lightbulb-o;
|
||||
}
|
||||
}
|
||||
} @else {
|
||||
&.warning,
|
||||
&.notice,
|
||||
&.tip {
|
||||
background-position: $padding-large-horizontal 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,16 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
.pages,
|
||||
.per-page {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#main {
|
||||
display: block;
|
||||
overflow: visible !important; // scss-lint:disable ImportantRule
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -23,19 +32,48 @@
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: visible !important; // scss-lint:disable ImportantRule
|
||||
border: 0;
|
||||
background: #fff;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.autoscroll {
|
||||
overflow-x: visible;
|
||||
}
|
||||
|
||||
a {
|
||||
// scss-lint:disable ImportantRule
|
||||
padding: 0 !important;
|
||||
background-color: transparent !important;
|
||||
color: #000 !important;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
&.issue.closed {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
|
||||
table.list {
|
||||
tr {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
border: 1px solid #aaa;
|
||||
background-color: transparent;
|
||||
|
||||
&.buttons {
|
||||
padding: 0;
|
||||
|
||||
a {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,16 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
table.progress {
|
||||
width: 80px;
|
||||
margin-top: 1px;
|
||||
margin-right: 5px;
|
||||
float: left;
|
||||
border: 1px solid rgba(#000, .1);
|
||||
empty-cells: show;
|
||||
border: 1px solid rgba(#000, .1);
|
||||
|
||||
.version-overview & {
|
||||
width: 40em;
|
||||
}
|
||||
|
||||
td.done_ratio & {
|
||||
margin-right: auto;
|
||||
|
||||
209
src/sass/components/_responsive.scss
Normal file
@@ -0,0 +1,209 @@
|
||||
.theme-Purplemine2 {
|
||||
@media screen and (max-width: $redmine-responsive-max) {
|
||||
.flyout-menu + div {
|
||||
#header {
|
||||
height: $responsive-header-height;
|
||||
background-color: $header-bg;
|
||||
|
||||
.jump-box-arrow {
|
||||
&::before {
|
||||
line-height: $responsive-header-height;
|
||||
}
|
||||
}
|
||||
|
||||
#quick-search {
|
||||
select {
|
||||
top: 0;
|
||||
height: $responsive-header-height;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#main {
|
||||
padding-top: $responsive-header-height;
|
||||
}
|
||||
}
|
||||
|
||||
#header {
|
||||
#project-jump {
|
||||
padding: 0 $responsive-header-height 0 0;
|
||||
|
||||
.drdn-trigger {
|
||||
display: block;
|
||||
height: $responsive-header-height;
|
||||
padding: 0 0 0 ($padding-base-horizontal + 30px);
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
line-height: $responsive-header-height;
|
||||
|
||||
&::before {
|
||||
padding-left: $padding-base-horizontal;
|
||||
font-size: 1.2em;
|
||||
font-weight: normal;
|
||||
line-height: $responsive-header-height * .9;
|
||||
}
|
||||
|
||||
@if $use-font-awesome {
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.drdn-content {
|
||||
top: $responsive-header-height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-toggle-button {
|
||||
width: $responsive-header-height;
|
||||
height: $responsive-header-height;
|
||||
line-height: $responsive-header-height;
|
||||
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.flyout-menu {
|
||||
background-color: $flyout-menu-bg;
|
||||
color: $flyout-menu-text;
|
||||
|
||||
&__search {
|
||||
height: $responsive-header-height;
|
||||
padding: ($padding-side / 2);
|
||||
line-height: normal;
|
||||
|
||||
input[type='text'] {
|
||||
height: $responsive-header-height - $padding-side;
|
||||
line-height: $responsive-header-height - $padding-side;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $flyout-menu-link;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
border-top: 1px solid $flyout-menu-header-border;
|
||||
border-bottom: 1px solid $flyout-menu-header-border;
|
||||
background-color: $flyout-menu-header-bg;
|
||||
color: $flyout-menu-header-text;
|
||||
}
|
||||
|
||||
#admin-menu {
|
||||
a {
|
||||
background-position: 8px center;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
&::before {
|
||||
color: $flyout-menu-link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background-color: $body-bg;
|
||||
color: $text-color;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&::before {
|
||||
color: $text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#query_form_content {
|
||||
fieldset {
|
||||
margin-bottom: $line-height-computed;
|
||||
}
|
||||
}
|
||||
|
||||
.search-magnifier {
|
||||
&--flyout {
|
||||
line-height: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.splitcontentleft {
|
||||
padding-right: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.splitcontentright {
|
||||
padding-left: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
p.buttons,
|
||||
.other-formats > span,
|
||||
#wiki_add_attachment > p,
|
||||
#content > .contextual {
|
||||
margin-bottom: $line-height-computed - $padding-small-horizontal;
|
||||
padding: 0;
|
||||
float: none;
|
||||
text-align: left;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin: 0 $padding-small-vertical $padding-small-horizontal 0;
|
||||
padding: ($btn-padding-vertical * 2) $btn-padding-horizontal;
|
||||
border: 1px solid $pagination-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $pagination-bg;
|
||||
background-position: $btn-padding-horizontal center;
|
||||
font-weight: $btn-font-weight;
|
||||
|
||||
&:active,
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $pagination-hover-border;
|
||||
outline: 0;
|
||||
background-color: $pagination-hover-bg;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.icon {
|
||||
padding-left: 20px + $btn-padding-horizontal;
|
||||
}
|
||||
|
||||
@if $use-font-awesome == false {
|
||||
&.atom {
|
||||
padding-left: 20px + $btn-padding-horizontal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// For Redmine 3.4+
|
||||
#my-page {
|
||||
#list-left {
|
||||
width: 100%;
|
||||
padding-right: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
#list-right {
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
380
src/sass/components/_rouge.scss
Normal file
@@ -0,0 +1,380 @@
|
||||
//
|
||||
// Syntax highlight - Rouge
|
||||
// --------------------------------------------------
|
||||
|
||||
.syntaxhl {
|
||||
background: #fafafa;
|
||||
|
||||
.hll {
|
||||
background-color: #ffc;
|
||||
}
|
||||
|
||||
// Comment
|
||||
.c {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Error
|
||||
.err {
|
||||
background-color: #faa;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
// Keyword
|
||||
.k {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Operator
|
||||
.o {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
// Comment.Hashbang
|
||||
.ch {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Comment.Multiline
|
||||
.cm {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Comment.Preproc
|
||||
.cp {
|
||||
color: #579;
|
||||
}
|
||||
|
||||
// Comment.PreprocFile
|
||||
.cpf {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Comment.Single
|
||||
.c1 {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Comment.Special
|
||||
.cs {
|
||||
color: #c00;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Generic.Deleted
|
||||
.gd {
|
||||
color: #a00000;
|
||||
}
|
||||
|
||||
// Generic.Emph
|
||||
.ge {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Generic.Error
|
||||
.gr {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
// Generic.Heading
|
||||
.gh {
|
||||
color: #000080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Generic.Inserted
|
||||
.gi {
|
||||
color: #00a000;
|
||||
}
|
||||
|
||||
// Generic.Output
|
||||
.go {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
// Generic.Prompt
|
||||
.gp {
|
||||
color: #c65d09;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Generic.Strong
|
||||
.gs {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Generic.Subheading
|
||||
.gu {
|
||||
color: #800080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Generic.Traceback
|
||||
.gt {
|
||||
color: #04d;
|
||||
}
|
||||
|
||||
// Keyword.Constant
|
||||
.kc {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Keyword.Declaration
|
||||
.kd {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Keyword.Namespace
|
||||
.kn {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Keyword.Pseudo
|
||||
.kp {
|
||||
color: #038;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Keyword.Reserved
|
||||
.kr {
|
||||
color: #080;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Keyword.Type
|
||||
.kt {
|
||||
color: #339;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.Number
|
||||
.m {
|
||||
color: #60e;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.String
|
||||
.s {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Name.Attribute
|
||||
.na {
|
||||
color: #00c;
|
||||
}
|
||||
|
||||
// Name.Builtin
|
||||
.nb {
|
||||
color: #007020;
|
||||
}
|
||||
|
||||
// Name.Class
|
||||
.nc {
|
||||
color: #b06;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Constant
|
||||
.no {
|
||||
color: #036;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Decorator
|
||||
.nd {
|
||||
color: #555;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Entity
|
||||
.ni {
|
||||
color: #800;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Exception
|
||||
.ne {
|
||||
color: #f00;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Function
|
||||
.nf {
|
||||
color: #06b;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Label
|
||||
.nl {
|
||||
color: #970;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Namespace
|
||||
.nn {
|
||||
color: #0e84b5;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Tag
|
||||
.nt {
|
||||
color: #070;
|
||||
}
|
||||
|
||||
// Name.Variable
|
||||
.nv {
|
||||
color: #963;
|
||||
}
|
||||
|
||||
// Operator.Word
|
||||
.ow {
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Text.Whitespace
|
||||
.w {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
// Literal.Number.Bin
|
||||
.mb {
|
||||
color: #60e;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.Number.Float
|
||||
.mf {
|
||||
color: #60e;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.Number.Hex
|
||||
.mh {
|
||||
color: #058;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.Number.Integer
|
||||
.mi {
|
||||
color: #00d;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.Number.Oct
|
||||
.mo {
|
||||
color: #40e;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.String.Affix
|
||||
.sa {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Backtick
|
||||
.sb {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Char
|
||||
.sc {
|
||||
color: #04d;
|
||||
}
|
||||
|
||||
// Literal.String.Delimiter
|
||||
.dl {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Doc
|
||||
.sd {
|
||||
color: #d42;
|
||||
}
|
||||
|
||||
// Literal.String.Double
|
||||
.s2 {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Escape
|
||||
.se {
|
||||
background-color: #fff0f0;
|
||||
color: #666;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Literal.String.Heredoc
|
||||
.sh {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Interpol
|
||||
.si {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
// Literal.String.Other
|
||||
.sx {
|
||||
background-color: #fff0f0;
|
||||
color: #d20;
|
||||
}
|
||||
|
||||
// Literal.String.Regex
|
||||
.sr {
|
||||
background-color: #fff0ff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
// Literal.String.Single
|
||||
.s1 {
|
||||
background-color: #fff0f0;
|
||||
}
|
||||
|
||||
// Literal.String.Symbol
|
||||
.ss {
|
||||
color: #a60;
|
||||
}
|
||||
|
||||
// Name.Builtin.Pseudo
|
||||
.bp {
|
||||
color: #007020;
|
||||
}
|
||||
|
||||
// Name.Function.Magic
|
||||
.fm {
|
||||
color: #06b;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Variable.Class
|
||||
.vc {
|
||||
color: #369;
|
||||
}
|
||||
|
||||
// Name.Variable.Global
|
||||
.vg {
|
||||
color: #d70;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Name.Variable.Instance
|
||||
.vi {
|
||||
color: #33b;
|
||||
}
|
||||
|
||||
// Name.Variable.Magic
|
||||
.vm {
|
||||
color: #963;
|
||||
}
|
||||
|
||||
// Literal.Number.Integer.Long
|
||||
.il {
|
||||
color: #00d;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
background-position: 0 center;
|
||||
}
|
||||
|
||||
span.project:after {
|
||||
span.project::after {
|
||||
content: " -";
|
||||
}
|
||||
|
||||
@@ -72,8 +72,8 @@
|
||||
}
|
||||
|
||||
dd {
|
||||
font-size: $font-size-small;
|
||||
overflow: hidden;
|
||||
font-size: $font-size-small;
|
||||
|
||||
&.grouped {
|
||||
margin-left: $activity-indent;
|
||||
@@ -99,15 +99,15 @@
|
||||
// Search form
|
||||
|
||||
#search-form {
|
||||
margin-bottom: $line-height-computed;
|
||||
|
||||
input,
|
||||
select {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
@include checkbox;
|
||||
@include check-inline;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
|
||||
@@ -2,47 +2,51 @@
|
||||
// Tabs
|
||||
// --------------------------------------------------
|
||||
|
||||
$tabs-height: $line-height-computed + $tab-padding-vertical * 2 + 1px + 1px;
|
||||
|
||||
.tabs {
|
||||
$tabs-buttons-width: 40px;
|
||||
|
||||
position: relative;
|
||||
margin-bottom: $line-height-computed;
|
||||
padding-right: $tabs-buttons-width;
|
||||
overflow: hidden;
|
||||
|
||||
@if not $flexbox-layout {
|
||||
padding-right: $tabs-buttons-width;
|
||||
}
|
||||
|
||||
> ul {
|
||||
width: 2000px; // stop it from breaking
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
border-bottom: 1px solid $tab-border;
|
||||
list-style: none;
|
||||
|
||||
@if $flexbox-layout {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
height: $tabs-height;
|
||||
} @else {
|
||||
width: 2000px;
|
||||
@extend %clearfix;
|
||||
}
|
||||
|
||||
> li {
|
||||
margin-bottom: -1px;
|
||||
@if $flexbox-layout {
|
||||
flex: 0 1 auto;
|
||||
} @else {
|
||||
float: left;
|
||||
}
|
||||
|
||||
> a {
|
||||
display: block;
|
||||
min-width: 2em;
|
||||
box-sizing: border-box;
|
||||
min-width: 3em;
|
||||
height: $tabs-height;
|
||||
margin-right: 2px;
|
||||
padding: $tab-padding-vertical $tab-padding-horizontal;
|
||||
border: 1px solid transparent;
|
||||
border-radius: $border-radius-base $border-radius-base 0 0;
|
||||
text-align: center;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $tab-hover-border $tab-hover-border $tab-border;
|
||||
background-color: $tab-hover-bg;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
border-color: $tab-active-border $tab-active-border $tab-active-bg;
|
||||
background: $tab-active-bg;
|
||||
color: $tab-active-text;
|
||||
}
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,22 +56,23 @@
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: $tabs-buttons-width;
|
||||
padding-left: 5px;
|
||||
background-color: $body-bg;
|
||||
|
||||
> button {
|
||||
width: 50%;
|
||||
height: $tab-padding-vertical * 2 + $line-height-computed;
|
||||
height: $tabs-height;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
transition: opacity .1s;
|
||||
border: 0 none;
|
||||
border-bottom: 1px solid $tab-border;
|
||||
border-radius: 0;
|
||||
opacity: .8;
|
||||
background-color: $body-bg;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
box-shadow: none;
|
||||
opacity: .8;
|
||||
@include transition(opacity .1s);
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
@@ -89,9 +94,46 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Specific tabs content layout
|
||||
*/
|
||||
div.tabs:not(#main-menu) {
|
||||
height: $tabs-height;
|
||||
margin-bottom: $line-height-computed;
|
||||
|
||||
> ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-bottom: 1px solid $tab-border;
|
||||
|
||||
> li {
|
||||
margin: 0 0 -1px;
|
||||
background: transparent;
|
||||
|
||||
> a {
|
||||
padding: $tab-padding-vertical $tab-padding-horizontal;
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: $link-color;
|
||||
font: inherit;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $tab-hover-border $tab-hover-border $tab-border;
|
||||
background-color: $tab-hover-bg;
|
||||
color: $link-hover-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
border-color: $tab-active-border $tab-active-border $tab-active-bg;
|
||||
background: $tab-active-bg;
|
||||
color: $tab-active-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//== Specific tabs content layout
|
||||
//
|
||||
|
||||
#tab-content-modules fieldset p {
|
||||
margin: 3px 0 4px;
|
||||
@@ -112,13 +154,13 @@
|
||||
margin-bottom: $line-height-computed;
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
label {
|
||||
@include check;
|
||||
display: block;
|
||||
margin-bottom: 3px;
|
||||
@include checkbox;
|
||||
}
|
||||
|
||||
label[for=principal_search] {
|
||||
@@ -142,3 +184,9 @@
|
||||
#tab-content-memberships .splitcontentright select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#principals_for_new_member {
|
||||
.pagination {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,88 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
#top-menu {
|
||||
@extend %clearfix;
|
||||
position: relative;
|
||||
padding: $padding-small-vertical $padding-side;
|
||||
background: $top-menu-bg;
|
||||
color: $top-menu-text;
|
||||
font-size: $font-size-small;
|
||||
@extend %clearfix;
|
||||
|
||||
@if $top-menu-collapse {
|
||||
$toggler-position-v: $padding-small-vertical + 1px;
|
||||
$toggler-position-h: 1px;
|
||||
|
||||
max-height: floor($font-size-base * $font-size-small-unitless * $line-height-base) + $padding-small-vertical;
|
||||
padding-bottom: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&.expanded {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-bottom: $padding-small-vertical;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.top-menu-toggler {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: $toggler-position-v;
|
||||
@if $sidebar-position == "left" {
|
||||
left: $toggler-position-h;
|
||||
} @else {
|
||||
right: $toggler-position-h;
|
||||
}
|
||||
user-select: none;
|
||||
|
||||
@if $use-font-awesome {
|
||||
@extend %fa-icon;
|
||||
color: mix($top-menu-link, $top-menu-bg, 33%);
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-down;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: mix($top-menu-link-hover, $top-menu-bg, 50%);
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-down-white;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: $border-radius-base;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: lighten($top-menu-bg, 15%);
|
||||
}
|
||||
}
|
||||
|
||||
&.expanded {
|
||||
@if $use-font-awesome {
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-up;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-up-white;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $top-menu-collapse-breakpoint) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
@@ -19,11 +96,12 @@
|
||||
margin: 0 .5em 0 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $top-menu-link;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
&:hover {
|
||||
color: $top-menu-link-hover;
|
||||
@@ -32,6 +110,7 @@
|
||||
}
|
||||
|
||||
#loggedas {
|
||||
margin-left: 1em;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
@@ -51,21 +130,42 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
#header {
|
||||
@extend %clearfix;
|
||||
position: relative;
|
||||
background-color: $header-bg;
|
||||
color: $header-text;
|
||||
|
||||
> h1 {
|
||||
padding: 10px $padding-side;
|
||||
padding: $header-padding-vertical $header-padding-horizontal;
|
||||
|
||||
> .root {
|
||||
@if $use-logo {
|
||||
padding-left: $logo-image-width + $logo-position-horizontal + $logo-space;
|
||||
background-image: url("../images/logo/logo.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: $logo-position-horizontal $logo-position-vertical;
|
||||
|
||||
@if $use-retina-logo {
|
||||
@include img-retina("../images/logo/logo@2x.png", $logo-image-width, $logo-image-height);
|
||||
}
|
||||
}
|
||||
|
||||
.root {
|
||||
color: $header-root;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
> .ancestor {
|
||||
.ancestor {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.root,
|
||||
.ancestor {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.current-project {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -74,32 +174,25 @@
|
||||
}
|
||||
|
||||
#quick-search {
|
||||
margin-top: ($header-title-line-height + $padding-large-vertical * 2 - $input-height-base - 1px) / 2;
|
||||
margin-right: $padding-side;
|
||||
margin-top: floor(($header-title-line-height + $header-padding-vertical * 2 - $input-height-base) / 2) - 1px;
|
||||
margin-right: $header-padding-horizontal;
|
||||
float: right;
|
||||
color: $header-text;
|
||||
|
||||
label {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
form {
|
||||
display: inline;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
input,
|
||||
select {
|
||||
margin-left: 5px;
|
||||
border-color: darken($header-bg, 15%);
|
||||
background: darken($header-bg, 10%);
|
||||
color: $header-root;
|
||||
@include transition(color ease-in-out .1s, background-color ease-in-out .1s, border-color ease-in-out .1s);
|
||||
input {
|
||||
width: $quick-search-width;
|
||||
}
|
||||
|
||||
> form > input,
|
||||
> select {
|
||||
border-color: $quick-search-border;
|
||||
|
||||
&:focus {
|
||||
border-color: darken($header-bg, 35%);
|
||||
background-color: $input-bg;
|
||||
color: $input-color;
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
|
||||
border-color: $quick-search-border-focus;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,41 +204,118 @@
|
||||
color: $gray-lighter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
width: 200px;
|
||||
#project-jump {
|
||||
display: inline-block;
|
||||
|
||||
&.expanded {
|
||||
.drdn-trigger {
|
||||
z-index: 1003;
|
||||
height: auto;
|
||||
padding-bottom: $header-padding-horizontal / 2;
|
||||
border-color: $quick-search-dropdown-bg;
|
||||
background-color: $quick-search-dropdown-bg;
|
||||
}
|
||||
}
|
||||
|
||||
.drdn {
|
||||
&-trigger {
|
||||
min-width: $quick-search-width;
|
||||
border-color: $quick-search-border;
|
||||
}
|
||||
|
||||
&-content {
|
||||
min-width: $quick-search-box-width;
|
||||
background: $quick-search-dropdown-bg;
|
||||
|
||||
> .quick-search {
|
||||
padding: $header-padding-horizontal / 2;
|
||||
|
||||
> input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-items {
|
||||
border-top: 1px solid $quick-search-dropdown-border;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $main-menu-link;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
outline: 0 none;
|
||||
background-color: $component-active-bg;
|
||||
color: $component-active-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.all-projects a {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
#main-menu {
|
||||
border-bottom: 1px solid $main-menu-border;
|
||||
$tabs-height: $main-menu-padding-vertical * 2 + $line-height-computed;
|
||||
|
||||
clear: both;
|
||||
background-color: $main-menu-bg;
|
||||
box-shadow: inset 0 -1px $main-menu-border;
|
||||
color: $text-color;
|
||||
|
||||
@media screen and (max-width: $screen-sm-max) {
|
||||
font-size: $font-size-small-px;
|
||||
}
|
||||
&.tabs {
|
||||
margin-bottom: 0;
|
||||
overflow: inherit;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0 ($padding-side - $main-menu-padding-horizontal);
|
||||
color: $main-menu-link;
|
||||
list-style: none;
|
||||
@extend %clearfix;
|
||||
> ul {
|
||||
height: $tabs-height;
|
||||
|
||||
> li {
|
||||
> a {
|
||||
height: $tabs-height;
|
||||
border: 0 none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> ul {
|
||||
@extend %clearfix;
|
||||
margin: 0;
|
||||
padding: 0 ($padding-side - $main-menu-padding-horizontal);
|
||||
list-style: none;
|
||||
color: $main-menu-link;
|
||||
|
||||
> li {
|
||||
position: relative;
|
||||
margin-right: .5em;
|
||||
margin-bottom: -1px;
|
||||
float: left;
|
||||
|
||||
&:hover {
|
||||
> .new-object {
|
||||
z-index: 100;
|
||||
border-bottom: 1px solid $main-menu-dropdown-bg;
|
||||
}
|
||||
|
||||
> .menu-children {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
display: block;
|
||||
padding: $main-menu-padding-vertical 0;
|
||||
@include transition(box-shadow .2s);
|
||||
|
||||
@media screen and (min-width: $screen-md-min) {
|
||||
padding-right: $main-menu-padding-horizontal;
|
||||
padding-left: $main-menu-padding-horizontal;
|
||||
}
|
||||
padding: $main-menu-padding-vertical $main-menu-padding-horizontal;
|
||||
transition: box-shadow .15s;
|
||||
color: $main-menu-link;
|
||||
line-height: $line-height-computed;
|
||||
white-space: nowrap;
|
||||
|
||||
@media screen and (min-width: $screen-lg-min) {
|
||||
padding-right: $main-menu-padding-horizontal * 2;
|
||||
@@ -155,16 +325,34 @@
|
||||
&:hover,
|
||||
&:focus {
|
||||
outline: 0 none;
|
||||
text-decoration: none;
|
||||
box-shadow: inset 0 (-$main-menu-shadow-width) 0 $main-menu-shadow-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
padding-bottom: $main-menu-padding-vertical - $main-menu-shadow-width;
|
||||
border-bottom: 3px solid $main-menu-shadow-active;
|
||||
color: $main-menu-link-active;
|
||||
font-weight: bold;
|
||||
box-shadow: none;
|
||||
color: $main-menu-link-active;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
&.new-object {
|
||||
position: relative;
|
||||
min-width: 1.6em;
|
||||
padding-bottom: $main-menu-padding-vertical - 1px;
|
||||
border: 1px solid $main-menu-border;
|
||||
border-width: 0 1px;
|
||||
background-color: $main-menu-dropdown-bg;
|
||||
color: $icon-success-color;
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -173,4 +361,57 @@
|
||||
a {
|
||||
color: $main-menu-link;
|
||||
}
|
||||
|
||||
.menu-children {
|
||||
@include nice-shadow(2);
|
||||
display: none;
|
||||
position: absolute;
|
||||
z-index: 1001;
|
||||
min-width: 130px;
|
||||
margin: 0 1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
border-radius: 0 0 $border-radius-base $border-radius-base;
|
||||
background: $main-menu-dropdown-bg;
|
||||
|
||||
&.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: $tab-padding-vertical ($tab-padding-horizontal * 2);
|
||||
border-top: 1px solid $main-menu-border;
|
||||
color: $main-menu-link;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
outline: 0 none;
|
||||
background-color: $component-active-bg;
|
||||
color: $component-active-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
> li:first-child > a {
|
||||
border: 0 none;
|
||||
}
|
||||
}
|
||||
|
||||
.tabs-buttons {
|
||||
display: none !important; // scss-lint:disable ImportantRule
|
||||
padding-left: 0;
|
||||
background-color: $main-menu-bg;
|
||||
|
||||
> button {
|
||||
box-sizing: border-box;
|
||||
height: $tabs-height;
|
||||
background-color: $main-menu-bg;
|
||||
}
|
||||
}
|
||||
|
||||
ul + .tabs-buttons {
|
||||
display: block !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,18 +3,7 @@
|
||||
font-size: $wiki-font-size;
|
||||
|
||||
@if $wiki-page-more-vertical-space {
|
||||
/**
|
||||
* Anchors will make headers more separated,
|
||||
* and it will look better when you open page with hash in URL
|
||||
*/
|
||||
a[name]:empty {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add some space between list items
|
||||
*/
|
||||
// Add some space between list items
|
||||
ul,
|
||||
ol {
|
||||
li {
|
||||
@@ -55,21 +44,36 @@ div.wiki {
|
||||
line-height: $headings-line-height;
|
||||
}
|
||||
|
||||
h1, .h1 { font-size: $font-size-h1; line-height: 1.2; }
|
||||
h2, .h2 { font-size: $font-size-h2; line-height: 1.225; }
|
||||
h3, .h3 { font-size: $font-size-h3; line-height: 1.43; }
|
||||
h4, .h4 { font-size: $font-size-h4; }
|
||||
h5, .h5 { font-size: $font-size-h5; }
|
||||
h6, .h6 { font-size: $font-size-h6; }
|
||||
h1, .h1 {
|
||||
padding-bottom: .3em;
|
||||
border-bottom: 1px solid $gray-lighter;
|
||||
font-size: $font-size-h1;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1, .h1,
|
||||
h2, .h2 {
|
||||
padding-bottom: .3em;
|
||||
border-bottom: 1px solid $gray-lighter;
|
||||
font-size: $font-size-h2;
|
||||
line-height: 1.225;
|
||||
}
|
||||
|
||||
h3, .h3 {
|
||||
font-size: $font-size-h3;
|
||||
line-height: 1.43;
|
||||
}
|
||||
|
||||
h4, .h4 {
|
||||
font-size: $font-size-h4;
|
||||
}
|
||||
|
||||
h5, .h5 {
|
||||
font-size: $font-size-h5;
|
||||
}
|
||||
|
||||
h6, .h6 {
|
||||
color: $gray;
|
||||
font-size: $font-size-h6;
|
||||
}
|
||||
|
||||
.text-normal {
|
||||
@@ -87,7 +91,24 @@ div.wiki {
|
||||
}
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
> a:target {
|
||||
+ h2,
|
||||
+ h3,
|
||||
+ h4,
|
||||
+ h5,
|
||||
+ h6 {
|
||||
&::before {
|
||||
content: "#";
|
||||
display: inline-block;
|
||||
width: .7em;
|
||||
margin-left: -.7em;
|
||||
color: $headings-anchor-color-active;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@@ -103,7 +124,7 @@ div.wiki {
|
||||
|
||||
.contextual {
|
||||
a {
|
||||
opacity: .4;
|
||||
opacity: .5;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
@@ -111,6 +132,11 @@ div.wiki {
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
word-break: break-all;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
p,
|
||||
ul,
|
||||
ol {
|
||||
@@ -132,7 +158,6 @@ div.wiki {
|
||||
}
|
||||
|
||||
table {
|
||||
// scss-lint:disable DuplicateProperty
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: $line-height-computed;
|
||||
@@ -165,26 +190,22 @@ div.wiki {
|
||||
}
|
||||
|
||||
code {
|
||||
// scss-lint:disable DuplicateProperty
|
||||
padding: .2em .33em;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: #f5f5f5; // IE8 fallback
|
||||
background-color: rgba(#000, .04);
|
||||
font-size: $font-size-small;
|
||||
}
|
||||
|
||||
pre {
|
||||
// scss-lint:disable DuplicateProperty
|
||||
width: auto;
|
||||
margin-bottom: 1.15em;
|
||||
padding: 4px 8px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
border: 1px solid #e7e7e7;
|
||||
border-radius: $border-radius-base;
|
||||
border-color: rgba(#000, .068);
|
||||
background-color: #f7f7f7; // IE8 fallback
|
||||
background-color: rgba(#000, .03);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
font-size: $font-size-small;
|
||||
|
||||
code {
|
||||
@@ -195,6 +216,11 @@ div.wiki {
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.toc {
|
||||
margin-bottom: $line-height-computed;
|
||||
margin-left: 0;
|
||||
@@ -208,8 +234,8 @@ div.wiki {
|
||||
border: 1px solid $highlight-border;
|
||||
border-radius: $border-radius-base;
|
||||
background-color: $highlight-bg;
|
||||
font-size: $font-size-small;
|
||||
box-shadow: $panel-shadow;
|
||||
font-size: $font-size-small;
|
||||
|
||||
a {
|
||||
color: $highlight-text;
|
||||
@@ -250,8 +276,8 @@ div.wiki {
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
list-style-type: disc;
|
||||
margin-left: 1.5em;
|
||||
list-style-type: disc;
|
||||
|
||||
li {
|
||||
list-style-type: circle;
|
||||
@@ -262,11 +288,6 @@ div.wiki {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.toc-active-prev + .toc {
|
||||
@@ -295,9 +316,9 @@ h6 {
|
||||
position: relative;
|
||||
top: -(1em - $font-size-small);
|
||||
margin-left: 5px;
|
||||
color: $gray-lighter !important;
|
||||
color: $headings-anchor-color !important; // scss-lint:disable ImportantRule
|
||||
font-size: $font-size-small;
|
||||
text-decoration: none !important;
|
||||
text-decoration: none !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -316,16 +337,16 @@ h6 {
|
||||
p.footnote {
|
||||
margin-bottom: 5px;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 300px;
|
||||
margin-top: $line-height-computed;
|
||||
padding-top: $line-height-computed / 2;
|
||||
border-top: 1px solid $gray-lighter;
|
||||
content: "";
|
||||
}
|
||||
|
||||
+ p.footnote:before {
|
||||
+ p.footnote::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -347,18 +368,22 @@ p.footnote {
|
||||
border-top: 1px solid $gray-lighter;
|
||||
|
||||
> p {
|
||||
margin-bottom: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#add_attachment_form {
|
||||
> form {
|
||||
padding-top: $line-height-computed;
|
||||
clear: left;
|
||||
}
|
||||
}
|
||||
|
||||
.controller-wiki.action-show {
|
||||
.other-formats {
|
||||
margin-top: 0;
|
||||
float: right;
|
||||
.collapsible & {
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
|
||||
> form {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,10 +392,10 @@ p.footnote {
|
||||
// Custom classes for Bootstrap-like features
|
||||
// --------------------------------------------------
|
||||
|
||||
/**
|
||||
* Pager
|
||||
* see: http://getbootstrap.com/components/#pagination-pager
|
||||
*/
|
||||
|
||||
// Pager
|
||||
// see: http://getbootstrap.com/components/#pagination-pager
|
||||
|
||||
.wiki-pager {
|
||||
> a {
|
||||
display: inline-block;
|
||||
@@ -402,12 +427,13 @@ p.footnote {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Typographic helper classes
|
||||
*/
|
||||
|
||||
//== Typographic helper classes
|
||||
//
|
||||
|
||||
// Lead body copy
|
||||
// see: http://getbootstrap.com/css/#lead-body-copy
|
||||
|
||||
.lead {
|
||||
margin-bottom: $line-height-computed;
|
||||
font-size: floor(($font-size-base * 1.15));
|
||||
@@ -419,24 +445,27 @@ p.footnote {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Alignment
|
||||
// see: http://getbootstrap.com/css/#type-alignment
|
||||
|
||||
.text-left { text-align: left; }
|
||||
.text-right { text-align: right; }
|
||||
.text-center { text-align: center; }
|
||||
.text-justify { text-align: justify; }
|
||||
.text-nowrap { white-space: nowrap; }
|
||||
|
||||
|
||||
// Transformation
|
||||
// see: http://getbootstrap.com/css/#type-transformation
|
||||
|
||||
.text-lowercase { text-transform: lowercase; }
|
||||
.text-uppercase { text-transform: uppercase; }
|
||||
.text-capitalize { text-transform: capitalize; }
|
||||
|
||||
/**
|
||||
* Other helper classes
|
||||
* see: http://getbootstrap.com/css/#helper-classes
|
||||
*/
|
||||
|
||||
// Other helper classes
|
||||
// see: http://getbootstrap.com/css/#helper-classes
|
||||
|
||||
.text-muted { color: $gray-light; }
|
||||
.text-primary { color: $brand-primary; }
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
@if $enable-sidebar-toggler {
|
||||
$toggler-position-v: 1px;
|
||||
$toggler-position-h: 1px;
|
||||
$arrow-right: $fa-var-caret-square-o-right;
|
||||
$arrow-left: $fa-var-caret-square-o-left;
|
||||
|
||||
#main {
|
||||
position: relative;
|
||||
@@ -10,10 +8,12 @@
|
||||
|
||||
#sidebar {
|
||||
@if $fixed-layout {
|
||||
will-change: margin, opacity;
|
||||
transition: margin .5s, opacity .5s;
|
||||
opacity: 1;
|
||||
@include transition(margin .5s, opacity .5s);
|
||||
} @else {
|
||||
@include transition(margin .5s);
|
||||
will-change: margin;
|
||||
transition: margin .5s;
|
||||
}
|
||||
|
||||
&.sidebar-hiding {
|
||||
@@ -33,18 +33,21 @@
|
||||
}
|
||||
|
||||
.sidebar-toggler {
|
||||
@include user-select(none);
|
||||
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: $toggler-position-v;
|
||||
user-select: none;
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@if $use-font-awesome {
|
||||
@extend %fa-icon;
|
||||
color: $gray-light;
|
||||
line-height: 1;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@@ -71,8 +74,8 @@
|
||||
left: $toggler-position-h;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&:before {
|
||||
content: $arrow-left;
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-left;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-left;
|
||||
@@ -81,8 +84,8 @@
|
||||
right: $toggler-position-h;
|
||||
|
||||
@if $use-font-awesome {
|
||||
&:before {
|
||||
content: $arrow-right;
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-right;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-right;
|
||||
@@ -92,16 +95,16 @@
|
||||
&.sidebar-hidden {
|
||||
@if $sidebar-position == "left" {
|
||||
@if $use-font-awesome {
|
||||
&:before {
|
||||
content: $arrow-right;
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-right;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-right;
|
||||
}
|
||||
} @else {
|
||||
@if $use-font-awesome {
|
||||
&:before {
|
||||
content: $arrow-left;
|
||||
&::before {
|
||||
content: $fa-var-caret-square-o-left;
|
||||
}
|
||||
} @else {
|
||||
@extend %image-arrow-left;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*!
|
||||
/**
|
||||
* Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
|
||||
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||
*/
|
||||
|
||||
@@ -116,7 +116,7 @@ abbr[title] {
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -406,7 +406,7 @@ textarea {
|
||||
//
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
// Tables
|
||||
|
||||
16
src/sass/lib/font-awesome/_mixins.scss
vendored
@@ -1,26 +1,10 @@
|
||||
// Mixins
|
||||
// scss-lint:disable VendorPrefixes
|
||||
// --------------------------
|
||||
|
||||
@mixin fa-icon() {
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
|
||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
@mixin fa-icon-rotate($degrees, $rotation) {
|
||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
||||
-webkit-transform: rotate($degrees);
|
||||
-ms-transform: rotate($degrees);
|
||||
transform: rotate($degrees);
|
||||
}
|
||||
|
||||
@mixin fa-icon-flip($horiz, $vert, $rotation) {
|
||||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
|
||||
-webkit-transform: scale($horiz, $vert);
|
||||
-ms-transform: scale($horiz, $vert);
|
||||
transform: scale($horiz, $vert);
|
||||
}
|
||||
|
||||
@@ -7,33 +7,52 @@
|
||||
}
|
||||
|
||||
@mixin button-variant($color, $bg, $border) {
|
||||
$focus-bg: darken($bg, 8%);
|
||||
$focus-border: darken($border, 8%);
|
||||
$active-shadow: inset 0 1px 3px rgba(#000, .3);
|
||||
$correction: 1;
|
||||
@if hue($bg) > 120 and hue($bg) < 160 or lightness($bg) > 90 {
|
||||
$correction: .5;
|
||||
}
|
||||
$normal-shadow: darken($border, 12% * $correction);
|
||||
$focus-bg: darken($bg, 12% * $correction);
|
||||
$focus-border: darken($border, 12% * $correction);
|
||||
$focus-shadow: darken($focus-border, 12% * $correction);
|
||||
$active-bg: darken($bg, 12% * $correction);
|
||||
$active-border: darken($border, 15% * $correction);
|
||||
$active-shadow: inset 0 3px 4px -2px $active-border;
|
||||
|
||||
color: $color;
|
||||
border-color: $border;
|
||||
background-color: $bg;
|
||||
box-shadow: 0 1px 0 $border;
|
||||
|
||||
@if lightness($bg) > 90 {
|
||||
@if lightness($bg) > 98 {
|
||||
$focus-bg: darken($bg, 5%);
|
||||
$focus-border: darken($border, 5%);
|
||||
$active-shadow: inset 0 1px 2px rgba(#000, .1);
|
||||
$normal-shadow: none;
|
||||
$focus-shadow: none;
|
||||
}
|
||||
|
||||
background-color: $bg;
|
||||
color: $color;
|
||||
@if $normal-shadow == "none" {
|
||||
border-color: $border;
|
||||
box-shadow: none;
|
||||
} @else {
|
||||
border-color: $border $border $normal-shadow;
|
||||
box-shadow: 0 1px 0 $normal-shadow;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: $focus-border;
|
||||
background-color: $focus-bg;
|
||||
color: $color;
|
||||
box-shadow: 0 1px 0 $focus-border;
|
||||
@if $focus-shadow == "none" {
|
||||
border-color: $focus-border;
|
||||
box-shadow: none;
|
||||
} @else {
|
||||
border-color: $focus-border $focus-border $focus-shadow;
|
||||
box-shadow: 0 1px 0 $focus-shadow;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
border-color: $border;
|
||||
background-color: $bg;
|
||||
@include translate(0, 1px);
|
||||
transform: translate(0, 1px);
|
||||
border-color: $active-border;
|
||||
background-color: $active-bg;
|
||||
box-shadow: $active-shadow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,34 +1,15 @@
|
||||
// Clearfix
|
||||
//
|
||||
// For modern browsers
|
||||
// 1. The use of `table` rather than `block` is only necessary if using
|
||||
// `:before` to contain the top-margins of child elements.
|
||||
// 2. The space content is one way to avoid an Opera bug when the
|
||||
// contenteditable attribute is included anywhere else in the document.
|
||||
// Otherwise it causes space to appear at the top and bottom of elements
|
||||
// that are clearfixed.
|
||||
//
|
||||
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
||||
// Source: http://cssmojo.com/the-very-latest-clearfix-reloaded/
|
||||
|
||||
@mixin clearfix() {
|
||||
&:before,
|
||||
&:after {
|
||||
display: table; // 1
|
||||
content: " "; // 2
|
||||
}
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Lighter (for output CSS) cleafix with placeholder
|
||||
|
||||
%clearfix {
|
||||
&:after {
|
||||
display: table;
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
@include clearfix;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,18 @@
|
||||
//
|
||||
@mixin form-control-focus($color: $input-border-focus) {
|
||||
&:focus {
|
||||
border-color: $color;
|
||||
border-color: rgba($input-border-focus, $input-border-focus-alpha);
|
||||
outline: 0;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 5px rgba($color, .5);
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 0 2px rgba($input-border-focus, $input-shadow-focus-alpha);
|
||||
}
|
||||
}
|
||||
|
||||
// Placeholder text
|
||||
//
|
||||
@mixin placeholder($color: $input-color-placeholder) {
|
||||
&::placeholder {
|
||||
opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
|
||||
color: $color;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,13 +40,36 @@
|
||||
}
|
||||
}
|
||||
|
||||
@mixin checkbox() {
|
||||
padding-left: 20px;
|
||||
@include user-select(none);
|
||||
@mixin check() {
|
||||
@extend %clearfix;
|
||||
position: relative;
|
||||
padding-left: $check-input-gutter;
|
||||
text-align: left;
|
||||
font-weight: $font-weight-normal;
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin-left: -20px;
|
||||
float: left;
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
position: absolute;
|
||||
width: auto;
|
||||
margin-top: $check-input-margin-vertical;
|
||||
margin-left: -$check-input-gutter;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin check-inline() {
|
||||
@include check;
|
||||
display: inline-block;
|
||||
margin-right: $check-input-margin-horizontal;
|
||||
}
|
||||
|
||||
@mixin check-list() {
|
||||
@include check;
|
||||
display: block;
|
||||
width: auto;
|
||||
margin: $btn-padding-vertical 0;
|
||||
float: none;
|
||||
|
||||
@media screen and (min-width: $screen-sm-min) {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
// Gradients
|
||||
// scss-lint:disable VendorPrefixes
|
||||
|
||||
|
||||
// Horizontal gradient, from left to right
|
||||
//
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||
background-image: -webkit-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: -o-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
||||
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
|
||||
}
|
||||
|
||||
// Vertical gradient, from top to bottom
|
||||
//
|
||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||
// Color stops are not available in IE9 and below.
|
||||
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
||||
background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
|
||||
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
|
||||
}
|
||||
|
||||
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
||||
background-repeat: repeat-x;
|
||||
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
|
||||
background-image: -o-linear-gradient($deg, $start-color, $end-color); // Opera 12
|
||||
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||
}
|
||||
|
||||
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
||||
background-image: -o-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
||||
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
||||
background-repeat: no-repeat;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
|
||||
}
|
||||
|
||||
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||
background-image: -o-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||
background-repeat: no-repeat;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
||||
}
|
||||
|
||||
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
||||
background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
|
||||
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
@mixin gradient-striped($color: rgba(255, 255, 255, .15), $angle: 45deg) {
|
||||
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||
background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||
}
|
||||
15
src/sass/mixins/_image.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
// Retina image
|
||||
//
|
||||
|
||||
@mixin img-retina($file-2x, $width-1x, $height-1x) {
|
||||
@media
|
||||
only screen and (-webkit-min-device-pixel-ratio: 2),
|
||||
only screen and (min--moz-device-pixel-ratio: 2),
|
||||
only screen and (-o-min-device-pixel-ratio: 2/1),
|
||||
only screen and (min-device-pixel-ratio: 2),
|
||||
only screen and (min-resolution: 192dpi),
|
||||
only screen and (min-resolution: 2dppx) {
|
||||
background-image: url("#{$file-2x}");
|
||||
background-size: $width-1x $height-1x;
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,20 @@
|
||||
|
||||
$border-color: darken(desaturate($background, 30%), 13.5%);
|
||||
|
||||
table.list:not(.odd-even) tbody tr#{$parent} {
|
||||
@if $table-list-color-odd-rows {
|
||||
&:nth-child(odd) {
|
||||
background: darken($background, $table-accent-factor * 100%);
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-color-even-rows {
|
||||
&:nth-child(even) {
|
||||
background: darken($background, $table-accent-factor * 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tr#{$parent} {
|
||||
background: $background;
|
||||
|
||||
@@ -16,8 +30,16 @@
|
||||
color: darken($color, 10%);
|
||||
}
|
||||
|
||||
@if $table-list-color-odd-rows {
|
||||
&.odd {
|
||||
background: darken($background, 3%);
|
||||
background: darken($background, $table-accent-factor * 100%);
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-color-even-rows {
|
||||
&.even {
|
||||
background: darken($background, $table-accent-factor * 100%);
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
@@ -33,6 +55,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-highlight-rows {
|
||||
table.list > tbody > tr#{$parent}:hover {
|
||||
background: darken($background, $table-hover-factor * 100%);
|
||||
}
|
||||
|
||||
@if $table-list-color-odd-rows {
|
||||
&.odd {
|
||||
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
|
||||
}
|
||||
}
|
||||
|
||||
@if $table-list-color-even-rows {
|
||||
&.even {
|
||||
background: darken($background, ($table-accent-factor + $table-hover-factor) * 100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@if $colored-issue {
|
||||
.issue.details#{$parent} {
|
||||
color: $color;
|
||||
@@ -128,18 +168,18 @@
|
||||
&.closed {
|
||||
color: mix($color, $background, 75%);
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
border-top-color: rgba($color, .95);
|
||||
}
|
||||
|
||||
&:hover:after {
|
||||
&:hover::after {
|
||||
border-top-color: rgba($color, .25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tr#{$parent} .id > a {
|
||||
&:before {
|
||||
&::before {
|
||||
color: mix($color, $background, 50%);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// Opacity
|
||||
|
||||
@mixin opacity($opacity) {
|
||||
opacity: $opacity;
|
||||
// IE8 filter
|
||||
$opacity-ie: ($opacity * 100);
|
||||
filter: #{alpha(opacity=$opacity-ie)};
|
||||
}
|
||||
19
src/sass/mixins/_shadows.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
// Some really nice looking shadows
|
||||
|
||||
@mixin nice-shadow($depth: 1) {
|
||||
$shadow: none;
|
||||
|
||||
@if ($depth == 1) {
|
||||
$shadow: 0 1px 3px rgba(#000, .12), 0 1px 2px rgba(#000, .24);
|
||||
} @elseif ($depth == 2) {
|
||||
$shadow: 0 3px 6px rgba(#000, .16), 0 3px 6px rgba(#000, .23);
|
||||
} @elseif ($depth == 3) {
|
||||
$shadow: 0 10px 18px rgba(#000, .19), 0 6px 8px rgba(#000, .23);
|
||||
} @elseif ($depth == 4) {
|
||||
$shadow: 0 14px 28px rgba(#000, .25), 0 10px 10px rgba(#000, .22);
|
||||
} @elseif ($depth == 5) {
|
||||
$shadow: 0 19px 38px rgba(#000, .3), 0 15px 12px rgba(#000, .22);
|
||||
}
|
||||
|
||||
box-shadow: $shadow;
|
||||
}
|
||||
@@ -1,236 +0,0 @@
|
||||
// Vendor Prefixes
|
||||
// scss-lint:disable VendorPrefixes
|
||||
//
|
||||
// All vendor mixins are deprecated as of v3.2.0 due to the introduction of
|
||||
// Autoprefixer in our Gruntfile. They will be removed in v4.
|
||||
|
||||
// - Animations
|
||||
// - Backface visibility
|
||||
// - Box shadow
|
||||
// - Box sizing
|
||||
// - Content columns
|
||||
// - Hyphens
|
||||
// - Placeholder text
|
||||
// - Transformations
|
||||
// - Transitions
|
||||
// - User Select
|
||||
|
||||
|
||||
// Animations
|
||||
@mixin animation($animation) {
|
||||
-webkit-animation: $animation;
|
||||
-o-animation: $animation;
|
||||
animation: $animation;
|
||||
}
|
||||
|
||||
@mixin animation-name($name) {
|
||||
-webkit-animation-name: $name;
|
||||
animation-name: $name;
|
||||
}
|
||||
|
||||
@mixin animation-duration($duration) {
|
||||
-webkit-animation-duration: $duration;
|
||||
animation-duration: $duration;
|
||||
}
|
||||
|
||||
@mixin animation-timing-function($timing-function) {
|
||||
-webkit-animation-timing-function: $timing-function;
|
||||
animation-timing-function: $timing-function;
|
||||
}
|
||||
|
||||
@mixin animation-delay($delay) {
|
||||
-webkit-animation-delay: $delay;
|
||||
animation-delay: $delay;
|
||||
}
|
||||
|
||||
@mixin animation-iteration-count($iteration-count) {
|
||||
-webkit-animation-iteration-count: $iteration-count;
|
||||
animation-iteration-count: $iteration-count;
|
||||
}
|
||||
|
||||
@mixin animation-direction($direction) {
|
||||
-webkit-animation-direction: $direction;
|
||||
animation-direction: $direction;
|
||||
}
|
||||
|
||||
@mixin animation-fill-mode($fill-mode) {
|
||||
-webkit-animation-fill-mode: $fill-mode;
|
||||
animation-fill-mode: $fill-mode;
|
||||
}
|
||||
|
||||
// Backface visibility
|
||||
// Prevent browsers from flickering when using CSS 3D transforms.
|
||||
// Default value is `visible`, but can be changed to `hidden`
|
||||
|
||||
@mixin backface-visibility($visibility) {
|
||||
-webkit-backface-visibility: $visibility;
|
||||
-moz-backface-visibility: $visibility;
|
||||
backface-visibility: $visibility;
|
||||
}
|
||||
|
||||
// Box sizing
|
||||
@mixin box-sizing($boxmodel) {
|
||||
-webkit-box-sizing: $boxmodel;
|
||||
-moz-box-sizing: $boxmodel;
|
||||
box-sizing: $boxmodel;
|
||||
}
|
||||
|
||||
// CSS3 Content Columns
|
||||
@mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
|
||||
-webkit-column-count: $column-count;
|
||||
-moz-column-count: $column-count;
|
||||
column-count: $column-count;
|
||||
-webkit-column-gap: $column-gap;
|
||||
-moz-column-gap: $column-gap;
|
||||
column-gap: $column-gap;
|
||||
}
|
||||
|
||||
// Optional hyphenation
|
||||
@mixin hyphens($mode: auto) {
|
||||
word-wrap: break-word;
|
||||
-webkit-hyphens: $mode;
|
||||
-moz-hyphens: $mode;
|
||||
-ms-hyphens: $mode; // IE10+
|
||||
-o-hyphens: $mode;
|
||||
hyphens: $mode;
|
||||
}
|
||||
|
||||
// Placeholder text
|
||||
@mixin placeholder($color: $input-color-placeholder) {
|
||||
// Firefox
|
||||
&::-moz-placeholder {
|
||||
color: $color;
|
||||
opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
|
||||
}
|
||||
|
||||
&:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
|
||||
&::-webkit-input-placeholder { color: $color; } // Safari and Chrome
|
||||
}
|
||||
|
||||
// Transformations
|
||||
@mixin scale($ratio...) {
|
||||
-webkit-transform: scale($ratio);
|
||||
-ms-transform: scale($ratio); // IE9 only
|
||||
-o-transform: scale($ratio);
|
||||
transform: scale($ratio);
|
||||
}
|
||||
|
||||
@mixin scaleX($ratio) {
|
||||
-webkit-transform: scaleX($ratio);
|
||||
-ms-transform: scaleX($ratio); // IE9 only
|
||||
-o-transform: scaleX($ratio);
|
||||
transform: scaleX($ratio);
|
||||
}
|
||||
|
||||
@mixin scaleY($ratio) {
|
||||
-webkit-transform: scaleY($ratio);
|
||||
-ms-transform: scaleY($ratio); // IE9 only
|
||||
-o-transform: scaleY($ratio);
|
||||
transform: scaleY($ratio);
|
||||
}
|
||||
|
||||
@mixin skew($x, $y) {
|
||||
-webkit-transform: skewX($x) skewY($y);
|
||||
-ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
|
||||
-o-transform: skewX($x) skewY($y);
|
||||
transform: skewX($x) skewY($y);
|
||||
}
|
||||
|
||||
@mixin translate($x, $y) {
|
||||
-webkit-transform: translate($x, $y);
|
||||
-ms-transform: translate($x, $y); // IE9 only
|
||||
-o-transform: translate($x, $y);
|
||||
transform: translate($x, $y);
|
||||
}
|
||||
|
||||
@mixin translate3d($x, $y, $z) {
|
||||
-webkit-transform: translate3d($x, $y, $z);
|
||||
transform: translate3d($x, $y, $z);
|
||||
}
|
||||
|
||||
@mixin rotate($degrees) {
|
||||
-webkit-transform: rotate($degrees);
|
||||
-ms-transform: rotate($degrees); // IE9 only
|
||||
-o-transform: rotate($degrees);
|
||||
transform: rotate($degrees);
|
||||
}
|
||||
|
||||
@mixin rotateX($degrees) {
|
||||
-webkit-transform: rotateX($degrees);
|
||||
-ms-transform: rotateX($degrees); // IE9 only
|
||||
-o-transform: rotateX($degrees);
|
||||
transform: rotateX($degrees);
|
||||
}
|
||||
|
||||
@mixin rotateY($degrees) {
|
||||
-webkit-transform: rotateY($degrees);
|
||||
-ms-transform: rotateY($degrees); // IE9 only
|
||||
-o-transform: rotateY($degrees);
|
||||
transform: rotateY($degrees);
|
||||
}
|
||||
|
||||
@mixin perspective($perspective) {
|
||||
-webkit-perspective: $perspective;
|
||||
-moz-perspective: $perspective;
|
||||
perspective: $perspective;
|
||||
}
|
||||
|
||||
@mixin perspective-origin($perspective) {
|
||||
-webkit-perspective-origin: $perspective;
|
||||
-moz-perspective-origin: $perspective;
|
||||
perspective-origin: $perspective;
|
||||
}
|
||||
|
||||
@mixin transform-origin($origin) {
|
||||
-webkit-transform-origin: $origin;
|
||||
-moz-transform-origin: $origin;
|
||||
-ms-transform-origin: $origin; // IE9 only
|
||||
transform-origin: $origin;
|
||||
}
|
||||
|
||||
|
||||
// Transitions
|
||||
|
||||
@mixin transition($transition...) {
|
||||
-webkit-transition: $transition;
|
||||
-o-transition: $transition;
|
||||
transition: $transition;
|
||||
}
|
||||
|
||||
@mixin transition-property($transition-property...) {
|
||||
-webkit-transition-property: $transition-property;
|
||||
transition-property: $transition-property;
|
||||
}
|
||||
|
||||
@mixin transition-delay($transition-delay) {
|
||||
-webkit-transition-delay: $transition-delay;
|
||||
transition-delay: $transition-delay;
|
||||
}
|
||||
|
||||
@mixin transition-duration($transition-duration...) {
|
||||
-webkit-transition-duration: $transition-duration;
|
||||
transition-duration: $transition-duration;
|
||||
}
|
||||
|
||||
@mixin transition-timing-function($timing-function) {
|
||||
-webkit-transition-timing-function: $timing-function;
|
||||
transition-timing-function: $timing-function;
|
||||
}
|
||||
|
||||
@mixin transition-transform($transition...) {
|
||||
-webkit-transition: -webkit-transform $transition;
|
||||
-moz-transition: -moz-transform $transition;
|
||||
-o-transition: -o-transform $transition;
|
||||
transition: transform $transition;
|
||||
}
|
||||
|
||||
|
||||
// User select
|
||||
// For selecting text on the page
|
||||
|
||||
@mixin user-select($select) {
|
||||
-webkit-user-select: $select;
|
||||
-moz-user-select: $select;
|
||||
-ms-user-select: $select; // IE10+
|
||||
user-select: $select;
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
@import "common";
|
||||
|
||||
html {
|
||||
overflow-y: scroll !important;
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -14,6 +14,7 @@ body {
|
||||
color: $text-color;
|
||||
font-family: $font-family-base;
|
||||
font-size: $font-size-base;
|
||||
font-weight: $font-weight-normal;
|
||||
line-height: $line-height-base;
|
||||
}
|
||||
|
||||
@@ -26,34 +27,33 @@ a {
|
||||
color: $link-hover-color;
|
||||
text-decoration: $link-hover-decoration;
|
||||
}
|
||||
}
|
||||
|
||||
&.issue.closed {
|
||||
.issue.closed {
|
||||
color: $link-color-issue-closed;
|
||||
text-decoration: $link-closed-decoration;
|
||||
}
|
||||
|
||||
&.project.closed {
|
||||
.project.closed {
|
||||
color: $link-color-project-closed;
|
||||
}
|
||||
|
||||
&.user.locked {
|
||||
.user.locked {
|
||||
color: $link-color-user-locked;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Form elements
|
||||
*/
|
||||
//== Form elements
|
||||
//
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
font-family: inherit;
|
||||
font-size: $font-size-base;
|
||||
line-height: $line-height-base;
|
||||
@include box-sizing(border-box);
|
||||
}
|
||||
|
||||
select,
|
||||
@@ -63,21 +63,21 @@ input[type="text"],
|
||||
input.name,
|
||||
input.editor,
|
||||
#col_width input {
|
||||
@include form-control-focus;
|
||||
@include placeholder;
|
||||
height: $input-height-base;
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
transition: border-color ease-in-out .1s, box-shadow ease-in-out .1s;
|
||||
border: 1px solid $input-border;
|
||||
border-radius: $input-border-radius;
|
||||
background-color: $input-bg;
|
||||
color: $input-color;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
@include transition(border-color ease-in-out .1s, box-shadow ease-in-out .1s);
|
||||
@include form-control-focus();
|
||||
@include placeholder();
|
||||
color: $input-color;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
height: auto;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
select:-moz-focusring {
|
||||
@@ -86,17 +86,17 @@ select:-moz-focusring {
|
||||
}
|
||||
|
||||
button.ui-multiselect {
|
||||
box-sizing: border-box;
|
||||
height: $input-height-base;
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
overflow: hidden;
|
||||
transition: border-color ease-in-out .1s, box-shadow ease-in-out .1s;
|
||||
border: 1px solid $input-border;
|
||||
background: $input-bg;
|
||||
cursor: default;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
color: $input-color;
|
||||
white-space: nowrap;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
|
||||
overflow: hidden;
|
||||
@include transition(border-color ease-in-out .1s, box-shadow ease-in-out .1s);
|
||||
@include box-sizing(border-box);
|
||||
cursor: default;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@@ -104,7 +104,7 @@ button.ui-multiselect {
|
||||
}
|
||||
|
||||
&:active {
|
||||
@include translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
|
||||
&.ui-state-active {
|
||||
@@ -118,19 +118,18 @@ button.ui-multiselect {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Top toolbar
|
||||
*/
|
||||
//== Top toolbar
|
||||
//
|
||||
|
||||
#toolbar {
|
||||
@include clearfix;
|
||||
display: block;
|
||||
position: relative;
|
||||
z-index: 1000;
|
||||
padding: 10px $padding-side;
|
||||
overflow: hidden;
|
||||
background-color: $main-menu-bg;
|
||||
box-shadow: $panel-shadow;
|
||||
overflow: hidden;
|
||||
z-index: 1000;
|
||||
@include clearfix;
|
||||
|
||||
.breadcrumbs {
|
||||
margin-right: 10px;
|
||||
@@ -142,14 +141,14 @@ button.ui-multiselect {
|
||||
}
|
||||
|
||||
.home {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.separator {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
padding: 0 .2em;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +171,7 @@ button.ui-multiselect {
|
||||
a {
|
||||
padding-left: 5px;
|
||||
cursor: pointer;
|
||||
@include user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,9 +212,8 @@ button.ui-multiselect {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Other elements
|
||||
*/
|
||||
//== Other elements
|
||||
//
|
||||
|
||||
.clearfix {
|
||||
@include clearfix;
|
||||
@@ -233,12 +231,9 @@ button.ui-multiselect {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* .editor is the classname for field editors of sprint,
|
||||
* story, task, impediment. These field editors get created
|
||||
* at runtime whenever any of the above models are edited.
|
||||
*/
|
||||
|
||||
// .editor is the classname for field editors of sprint,
|
||||
// story, task, impediment. These field editors get created
|
||||
// at runtime whenever any of the above models are edited.
|
||||
.ui-dialog .editor {
|
||||
display: block;
|
||||
}
|
||||
@@ -247,9 +242,9 @@ ul.ui-sortable {
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Story tooltip
|
||||
*/
|
||||
//== Story tooltip
|
||||
//
|
||||
|
||||
.ui-tooltip {
|
||||
.ui-tooltip-content {
|
||||
hr {
|
||||
@@ -267,8 +262,8 @@ ul.ui-sortable {
|
||||
.issue-description {
|
||||
max-height: 10em;
|
||||
margin-top: 12px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.issue-field {
|
||||
@@ -284,7 +279,7 @@ ul.ui-sortable {
|
||||
margin-left: -160px;
|
||||
padding-right: 5px;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -293,14 +288,13 @@ ul.ui-sortable {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* drag-drop effect: disabled dropzones are greyed out
|
||||
*/
|
||||
//== drag-drop effect: disabled dropzones are greyed out
|
||||
//
|
||||
|
||||
.rb-sortable-disabled,
|
||||
.ui-sortable-disabled {
|
||||
background-color: $gray-lighter;
|
||||
opacity: .5;
|
||||
background-color: $gray-lighter;
|
||||
}
|
||||
|
||||
.w-rb-header-collapsed {
|
||||
@@ -309,9 +303,8 @@ ul.ui-sortable {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fix jQuery-UI datepicker
|
||||
*/
|
||||
//== Fix jQuery-UI datepicker
|
||||
//
|
||||
|
||||
body {
|
||||
.ui-widget {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// scss-lint:disable Comment
|
||||
@import "../common";
|
||||
|
||||
/*
|
||||
@@ -21,22 +22,22 @@
|
||||
.ui-helper-reset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-size: 100%;
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ui-helper-clearfix {
|
||||
display: inline-block;
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
content: ".";
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
height: 0;
|
||||
clear: both;
|
||||
content: ".";
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +66,7 @@
|
||||
----------------------------------*/
|
||||
|
||||
.ui-state-disabled {
|
||||
cursor: default !important;
|
||||
cursor: default !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
|
||||
/* Icons
|
||||
@@ -75,9 +76,9 @@
|
||||
|
||||
.ui-icon {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
background-repeat: no-repeat;
|
||||
text-indent: -9999px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Misc visuals
|
||||
@@ -121,7 +122,7 @@
|
||||
border: 0 none;
|
||||
background: $header-bg;
|
||||
color: $header-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
|
||||
a {
|
||||
color: $header-text;
|
||||
@@ -155,9 +156,9 @@
|
||||
.ui-widget-header .ui-state-default {
|
||||
border: 1px solid $component-border;
|
||||
background: $component-bg;
|
||||
box-shadow: none;
|
||||
color: $component-color;
|
||||
font-weight: normal;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.ui-state-default a,
|
||||
@@ -211,6 +212,10 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ui-sortable-helper {
|
||||
@include nice-shadow(4);
|
||||
}
|
||||
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
@@ -240,19 +245,19 @@
|
||||
|
||||
.ui-priority-primary,
|
||||
.ui-widget-content .ui-priority-primary {
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.ui-priority-secondary,
|
||||
.ui-widget-content .ui-priority-secondary {
|
||||
font-weight: normal;
|
||||
opacity: .7;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.ui-state-disabled,
|
||||
.ui-widget-content .ui-state-disabled {
|
||||
background-image: none;
|
||||
opacity: .35;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
/* Icons
|
||||
@@ -515,16 +520,16 @@
|
||||
/* Overlays */
|
||||
|
||||
.ui-widget-overlay {
|
||||
opacity: .3;
|
||||
background: #000;
|
||||
opacity: .30;
|
||||
}
|
||||
|
||||
.ui-widget-shadow {
|
||||
margin: -8px 0 0 -8px;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
opacity: .3;
|
||||
background: #aaa;
|
||||
opacity: .30;
|
||||
}
|
||||
|
||||
/* Resizable
|
||||
@@ -537,8 +542,8 @@
|
||||
.ui-resizable-handle {
|
||||
display: block;
|
||||
position: absolute;
|
||||
font-size: .1px;
|
||||
z-index: 9999;
|
||||
font-size: .1px;
|
||||
}
|
||||
|
||||
.ui-resizable-disabled .ui-resizable-handle,
|
||||
@@ -626,7 +631,7 @@
|
||||
}
|
||||
|
||||
.ui-accordion-header-active {
|
||||
border-bottom: 0 !important;
|
||||
border-bottom: 0 !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
|
||||
.ui-accordion-header a {
|
||||
@@ -655,9 +660,9 @@
|
||||
margin-top: -2px;
|
||||
margin-bottom: 2px;
|
||||
padding: 1em 2.2em;
|
||||
border-top: 0;
|
||||
overflow: auto;
|
||||
zoom: 1;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.ui-accordion-content-active {
|
||||
@@ -689,6 +694,7 @@
|
||||
----------------------------------*/
|
||||
|
||||
.ui-menu {
|
||||
@include nice-shadow(2);
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
@@ -725,11 +731,11 @@
|
||||
position: relative;
|
||||
margin-right: .1em;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
text-decoration: none !important;
|
||||
overflow: visible;
|
||||
zoom: 1;
|
||||
text-align: center;
|
||||
text-decoration: none !important; // scss-lint:disable ImportantRule
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* the overflow property removes extra width in IE */
|
||||
@@ -875,10 +881,10 @@ button.ui-button::-moz-focus-inner {
|
||||
.ui-dialog-content {
|
||||
position: relative;
|
||||
padding: .5em 1em;
|
||||
border: 0 none;
|
||||
background: none;
|
||||
overflow: auto;
|
||||
zoom: 1;
|
||||
border: 0 none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.ui-dialog-buttonpane {
|
||||
@@ -893,9 +899,9 @@ button.ui-button::-moz-focus-inner {
|
||||
margin: .5em .4em .5em 0;
|
||||
padding: .2em .6em .3em;
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
line-height: 1.4em;
|
||||
overflow: visible;
|
||||
line-height: 1.4em;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -920,19 +926,19 @@ button.ui-button::-moz-focus-inner {
|
||||
|
||||
.ui-slider-handle {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
cursor: default;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ui-slider-range {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
border: 0 none;
|
||||
background-position: 0 0;
|
||||
font-size: .7em;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1000,8 +1006,8 @@ button.ui-button::-moz-focus-inner {
|
||||
margin: 0 .2em 1px 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
border-bottom: 0 !important;
|
||||
list-style: none;
|
||||
border-bottom: 0 !important; // scss-lint:disable ImportantRule
|
||||
white-space: nowrap;
|
||||
|
||||
a {
|
||||
@@ -1042,7 +1048,7 @@ button.ui-button::-moz-focus-inner {
|
||||
}
|
||||
|
||||
.ui-tabs-hide {
|
||||
display: none !important;
|
||||
display: none !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1054,29 +1060,30 @@ button.ui-button::-moz-focus-inner {
|
||||
----------------------------------*/
|
||||
|
||||
.ui-datepicker {
|
||||
@include nice-shadow(3);
|
||||
width: 16em;
|
||||
padding: 3px;
|
||||
border: 1px solid $panel-border;
|
||||
padding: .3em .6em .6em;
|
||||
border: 0 none;
|
||||
background: $body-bg;
|
||||
color: $text-color;
|
||||
font-size: $font-size-base;
|
||||
box-shadow: $panel-shadow;
|
||||
|
||||
.ui-datepicker-header {
|
||||
position: relative;
|
||||
margin: 0 -.3em;
|
||||
padding: .3em;
|
||||
border: 0 none;
|
||||
background: $header-bg;
|
||||
color: $header-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.ui-state-default {
|
||||
border: 1px solid $body-bg;
|
||||
background: $body-bg;
|
||||
box-shadow: none;
|
||||
color: $component-color;
|
||||
font-weight: normal;
|
||||
box-shadow: none;
|
||||
|
||||
a,
|
||||
a:link,
|
||||
@@ -1162,14 +1169,14 @@ button.ui-button::-moz-focus-inner {
|
||||
table {
|
||||
width: 100%;
|
||||
margin: 0 0 .4em;
|
||||
font-size: .9em;
|
||||
border-collapse: collapse;
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
th {
|
||||
padding: .7em .3em;
|
||||
border: 0 none;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1188,6 +1195,7 @@ button.ui-button::-moz-focus-inner {
|
||||
}
|
||||
|
||||
.ui-datepicker-calendar {
|
||||
margin: 0;
|
||||
table-layout: fixed;
|
||||
|
||||
td {
|
||||
@@ -1212,8 +1220,8 @@ button.ui-button::-moz-focus-inner {
|
||||
margin: .5em .2em .4em;
|
||||
padding: .2em .6em .3em;
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
overflow: visible;
|
||||
cursor: pointer;
|
||||
|
||||
&.ui-datepicker-current {
|
||||
float: left;
|
||||
@@ -1243,8 +1251,13 @@ button.ui-button::-moz-focus-inner {
|
||||
}
|
||||
|
||||
.ui-datepicker-buttonpane {
|
||||
@include clearfix;
|
||||
margin: .6em 0 0;
|
||||
padding: .6em 0 0;
|
||||
|
||||
button {
|
||||
padding: $input-padding-vertical $input-padding-horizontal;
|
||||
margin: 0;
|
||||
padding: $btn-padding-vertical $btn-padding-horizontal;
|
||||
}
|
||||
|
||||
.ui-state-default {
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
|
||||
.ui-multiselect-single .ui-multiselect-checkboxes {
|
||||
input {
|
||||
position: absolute !important;
|
||||
top: auto !important;
|
||||
position: absolute !important; // scss-lint:disable ImportantRule
|
||||
top: auto !important; // scss-lint:disable ImportantRule
|
||||
left: -9999px;
|
||||
}
|
||||
|
||||
label {
|
||||
padding: 5px !important;
|
||||
padding: 5px !important; // scss-lint:disable ImportantRule
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,12 +54,12 @@
|
||||
}
|
||||
|
||||
.ui-multiselect-menu {
|
||||
@include nice-shadow(2);
|
||||
display: none;
|
||||
position: absolute;
|
||||
z-index: 10000;
|
||||
padding: 3px;
|
||||
text-align: left;
|
||||
box-shadow: $panel-shadow;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.ui-multiselect-checkboxes {
|
||||
@@ -83,7 +83,7 @@
|
||||
padding-left: 20px + 6px;
|
||||
border: 1px solid transparent;
|
||||
cursor: default;
|
||||
@include user-select(none);
|
||||
user-select: none;
|
||||
|
||||
input {
|
||||
position: relative;
|
||||
@@ -98,7 +98,7 @@
|
||||
&.ui-multiselect-optgroup-label {
|
||||
margin-bottom: 2px;
|
||||
border-bottom: 1px solid $panel-border;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
@@ -111,8 +111,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* remove label borders in IE6 because IE6 does not support transparency */
|
||||
|
||||
// Remove label borders in IE6 because IE6 does not support transparency
|
||||
* html .ui-multiselect-checkboxes label {
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
}
|
||||
|
||||
.ui-tooltip-content {
|
||||
@include nice-shadow(2);
|
||||
position: relative;
|
||||
padding: 10px;
|
||||
overflow: hidden;
|
||||
border: 1px solid $tooltip-border;
|
||||
background-color: $tooltip-bg;
|
||||
color: $tooltip-text;
|
||||
font-size: $font-size-list;
|
||||
text-align: left;
|
||||
word-wrap: break-word;
|
||||
box-shadow: 0 2px 2px rgba(#000, .2);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ui-tooltip-tip {
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
.ui-tooltip-tip {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
border: 0 none;
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ $story-sp-input-width: 50px;
|
||||
background-color: $background;
|
||||
color: $color;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
color: mix($color, $background, 50%);
|
||||
}
|
||||
|
||||
@@ -37,21 +37,18 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* reserved classes are
|
||||
* .backlog (used in master_backlog.js to initialize all backlogs)
|
||||
* .model (used in backlog.js editable_inplace.js model.js)
|
||||
* .sprint (used in backlog.js
|
||||
* .stories (used in backlog.js for sortable)
|
||||
* .editor
|
||||
* .editable (bind click on)
|
||||
* .close_sprint (bind click on)
|
||||
*/
|
||||
// Reserved classes are
|
||||
// .backlog (used in master_backlog.js to initialize all backlogs)
|
||||
// .model (used in backlog.js editable_inplace.js model.js)
|
||||
// .sprint (used in backlog.js
|
||||
// .stories (used in backlog.js for sortable)
|
||||
// .editor
|
||||
// .editable (bind click on)
|
||||
// .close_sprint (bind click on)
|
||||
|
||||
|
||||
/**
|
||||
* fluid, 2-colum layout
|
||||
*/
|
||||
//== Fluid, 2-colum layout
|
||||
//
|
||||
|
||||
#backlogs_container {
|
||||
padding: ($padding-side / 2) ($padding-side / 4);
|
||||
@@ -91,9 +88,8 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fixed-Fluid-Fixed layout
|
||||
*/
|
||||
//== Fixed-Fluid-Fixed layout
|
||||
//
|
||||
|
||||
.fff-wrapmiddle {
|
||||
width: 100%;
|
||||
@@ -145,28 +141,26 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Just some space at the bottom of the page
|
||||
*/
|
||||
//== Just some space at the bottom of the page
|
||||
//
|
||||
|
||||
#dummy_backlog_container {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Base backlog container
|
||||
*/
|
||||
//== Base backlog container
|
||||
//
|
||||
|
||||
#backlogs_container {
|
||||
.closedbacklog,
|
||||
.backlog {
|
||||
@include nice-shadow(1);
|
||||
display: block;
|
||||
position: relative;
|
||||
margin: 0 0 ($padding-side / 2);
|
||||
border-radius: $border-radius-large $border-radius-large 0 0;
|
||||
background-color: $gray-lightest;
|
||||
box-shadow: $panel-shadow;
|
||||
|
||||
@media screen and (min-width: $screen-md-min) {
|
||||
margin: 0 0 $padding-side;
|
||||
@@ -175,9 +169,8 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Backlog header
|
||||
*/
|
||||
//== Backlog header
|
||||
//
|
||||
|
||||
#backlogs_container {
|
||||
.header {
|
||||
@@ -196,9 +189,9 @@ $story-sp-input-width: 50px;
|
||||
|
||||
&:focus {
|
||||
border-color: lighten($header-bg, 25%);
|
||||
color: $gray-darkest;
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2),
|
||||
0 0 0 1px lighten($header-bg, 25%);
|
||||
color: $gray-darkest;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,8 +203,8 @@ $story-sp-input-width: 50px;
|
||||
|
||||
.name {
|
||||
padding-left: $padding-base-horizontal;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.date {
|
||||
@@ -254,13 +247,13 @@ $story-sp-input-width: 50px;
|
||||
.editors {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding-top: $editor-padding;
|
||||
border-radius: $border-radius-large $border-radius-large 0 0;
|
||||
background-color: $header-bg;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
label,
|
||||
@@ -286,7 +279,7 @@ $story-sp-input-width: 50px;
|
||||
$name-width-minus: $header-right-width-wider + 35px;
|
||||
|
||||
position: relative;
|
||||
width: calc(100% - #{$name-width-minus}) !important;
|
||||
width: calc(100% - #{$name-width-minus}) !important; // scss-lint:disable ImportantRule
|
||||
min-width: 128px;
|
||||
margin-left: $header-line-height - 2px;
|
||||
float: left;
|
||||
@@ -306,20 +299,20 @@ $story-sp-input-width: 50px;
|
||||
.menu {
|
||||
position: relative;
|
||||
height: $header-line-height;
|
||||
overflow: visible;
|
||||
transition: background-color 0s .1s, border-color 0s .1s;
|
||||
border-right: 1px solid #888;
|
||||
border-bottom: 1px solid $header-bg;
|
||||
border-radius: ($border-radius-large - 1px) 0 0;
|
||||
cursor: pointer;
|
||||
font-size: $font-size-small;
|
||||
line-height: $line-height-base;
|
||||
overflow: visible;
|
||||
@include transition(background-color 0s .1s, border-color 0s .1s);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
z-index: 1000;
|
||||
transition: background-color 0s 0s, border-color 0s 0s;
|
||||
border-color: $body-bg;
|
||||
background-color: $body-bg;
|
||||
z-index: 1000;
|
||||
@include transition(background-color 0s 0s, border-color 0s 0s);
|
||||
}
|
||||
|
||||
.icon {
|
||||
@@ -332,20 +325,20 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
ul {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
top: $header-line-height + 1px;
|
||||
left: -1px;
|
||||
margin: 0;
|
||||
padding: $padding-small-vertical 0;
|
||||
list-style: none;
|
||||
transition: visibility 0s .1s;
|
||||
border: 1px solid $header-bg;
|
||||
border-top-width: 0;
|
||||
border-radius: 0 0 $border-radius-base $border-radius-base;
|
||||
background-color: $body-bg;
|
||||
list-style: none;
|
||||
box-shadow: 0 2px 1px rgba(#000, .1);
|
||||
visibility: hidden;
|
||||
z-index: 999;
|
||||
@include transition(visibility 0s .1s);
|
||||
|
||||
a {
|
||||
color: $gray-darker;
|
||||
@@ -354,7 +347,7 @@ $story-sp-input-width: 50px;
|
||||
|
||||
&:hover .items {
|
||||
visibility: visible;
|
||||
@include transition(visibility 0s 0s);
|
||||
transition: visibility 0s 0s;
|
||||
}
|
||||
|
||||
.item {
|
||||
@@ -393,7 +386,7 @@ $story-sp-input-width: 50px;
|
||||
|
||||
ul {
|
||||
visibility: visible;
|
||||
@include transition(visibility 0s 0s);
|
||||
transition: visibility 0s 0s;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -406,9 +399,9 @@ $story-sp-input-width: 50px;
|
||||
|
||||
.close_sprint {
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
color: $header-link;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.closedbacklog {
|
||||
@@ -418,15 +411,13 @@ $story-sp-input-width: 50px;
|
||||
|
||||
.headertext {
|
||||
cursor: default;
|
||||
/*we have model class here, but are not editable*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Backlog items
|
||||
*/
|
||||
//== Backlog items
|
||||
//
|
||||
|
||||
#backlogs_container {
|
||||
.stories {
|
||||
@@ -434,8 +425,8 @@ $story-sp-input-width: 50px;
|
||||
min-height: ($line-height-computed + $table-condensed-cell-padding * 2);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: $font-size-list;
|
||||
list-style: none;
|
||||
font-size: $font-size-list;
|
||||
|
||||
.v {
|
||||
display: none;
|
||||
@@ -497,10 +488,11 @@ $story-sp-input-width: 50px;
|
||||
background-color: darken($gray-lightest, 3%);
|
||||
color: $gray-dark;
|
||||
}
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: right;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
content: "#";
|
||||
margin-left: -1em;
|
||||
@if $color-trackers {
|
||||
color: mix($tracker-default-text, $tracker-default-bg, 50%);
|
||||
@@ -508,7 +500,6 @@ $story-sp-input-width: 50px;
|
||||
color: $gray-light;
|
||||
}
|
||||
font-weight: normal;
|
||||
content: "#";
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -524,7 +515,7 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
.fff-left > .project,
|
||||
.fff-wrapmiddle > .subject,
|
||||
.fff-wrapmiddle > .fff-middle,
|
||||
.fff-right > .status_id,
|
||||
.fff-right > .story_points {
|
||||
min-height: floor(.92 * $font-size-base * $line-height-base);
|
||||
@@ -536,18 +527,21 @@ $story-sp-input-width: 50px;
|
||||
width: $story-project-width;
|
||||
padding: $table-condensed-cell-padding 0 $table-condensed-cell-padding $table-condensed-cell-padding;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
.t {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.fff-middle {
|
||||
padding: $table-condensed-cell-padding 0;
|
||||
}
|
||||
|
||||
.subject {
|
||||
@include text-overflow;
|
||||
padding: $table-condensed-cell-padding 0;
|
||||
}
|
||||
|
||||
&.closed .subject {
|
||||
@@ -598,18 +592,18 @@ $story-sp-input-width: 50px;
|
||||
|
||||
&:focus {
|
||||
border-color: darken($highlight-border, 15%);
|
||||
color: $gray-darkest;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075),
|
||||
0 0 5px rgba(darken($highlight-border, 15%), .5);
|
||||
color: $gray-darkest;
|
||||
}
|
||||
}
|
||||
|
||||
.editors {
|
||||
@include clearfix;
|
||||
display: block;
|
||||
margin-left: $story-tracker-input-width + 5px;
|
||||
padding: $table-condensed-cell-padding 0;
|
||||
text-align: right;
|
||||
@include clearfix;
|
||||
|
||||
label {
|
||||
display: none;
|
||||
@@ -649,11 +643,11 @@ $story-sp-input-width: 50px;
|
||||
&.subject {
|
||||
$subject-width-minus: $story-status-input-width + $story-sp-input-width + 5px * 2;
|
||||
|
||||
width: calc(100% - #{$subject-width-minus}) !important;
|
||||
width: calc(100% - #{$subject-width-minus}) !important; // scss-lint:disable ImportantRule
|
||||
height: 60px;
|
||||
float: left;
|
||||
white-space: normal;
|
||||
overflow: auto;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
&.category_id {
|
||||
@@ -685,14 +679,11 @@ $story-sp-input-width: 50px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* override: display story subject in multiple lines
|
||||
*/
|
||||
|
||||
// Override: display story subject in multiple lines
|
||||
.rb-multilinesubject & .subject {
|
||||
height: auto;
|
||||
white-space: normal;
|
||||
overflow: show;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
@if $color-trackers {
|
||||
@@ -707,9 +698,8 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* dialog
|
||||
*/
|
||||
//== Dialog
|
||||
//
|
||||
|
||||
.ui-dialog {
|
||||
.ui-dialog-titlebar-close {
|
||||
@@ -722,8 +712,8 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
&.ui-widget-content {
|
||||
@include nice-shadow(5);
|
||||
border: 0 none;
|
||||
box-shadow: 2px 2px 5px #777;
|
||||
}
|
||||
|
||||
.ui-dialog-buttonpane.ui-widget-content {
|
||||
@@ -749,9 +739,8 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* In-place Sprint Editor
|
||||
*/
|
||||
//== In-place Sprint Editor
|
||||
//
|
||||
|
||||
#backlogs_container {
|
||||
|
||||
@@ -763,16 +752,18 @@ $story-sp-input-width: 50px;
|
||||
white-space: nowrap;
|
||||
|
||||
a {
|
||||
@include button-size($input-padding-vertical, $input-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
transition: background-color ease-in-out .07s,
|
||||
border-color ease-in-out .07s,
|
||||
box-shadow ease-in-out .07s;
|
||||
border: 1px solid;
|
||||
cursor: pointer;
|
||||
font-weight: $btn-font-weight;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
@include button-size($input-padding-vertical, $input-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
||||
@include user-select(none);
|
||||
@include transition(background-color ease-in-out .07s, border-color ease-in-out .07s, box-shadow ease-in-out .07s);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
&.save {
|
||||
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
||||
@@ -790,17 +781,13 @@ $story-sp-input-width: 50px;
|
||||
&:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: $screen-md-max) {
|
||||
padding: $input-padding-vertical;
|
||||
font-size: $font-size-small-px;
|
||||
line-height: $line-height-computed;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* In-place Story Editor */
|
||||
|
||||
//== In-place Story Editor
|
||||
//
|
||||
|
||||
.debug {
|
||||
.story {
|
||||
@@ -828,18 +815,20 @@ $story-sp-input-width: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Naive but light handling of colors by user stories tracker */
|
||||
|
||||
/* datepicker bugfix: hide until it opens itself */
|
||||
//== Completed sprints
|
||||
//
|
||||
|
||||
#show_completed_sprints {
|
||||
margin-left: $padding-side / 2;
|
||||
color: $gray-darkest;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
//== Datepicker bugfix: hide until it opens itself
|
||||
//
|
||||
|
||||
.ui-datepicker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* show completed sprints */
|
||||
|
||||
#show_completed_sprints {
|
||||
margin-left: $padding-side / 2;
|
||||
cursor: pointer;
|
||||
color: $gray-darkest;
|
||||
}
|
||||
|
||||
@@ -43,14 +43,14 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* swimlane class is used by:
|
||||
* - #board_header
|
||||
* - .board
|
||||
*
|
||||
* Also use by the Column Width preference to determine the unit width of the
|
||||
* swimlanes. See RB.Taskboard.initialize()
|
||||
*/
|
||||
//== Swimlane
|
||||
//
|
||||
// Swimlane class is used by:
|
||||
// - #board_header
|
||||
// - .board
|
||||
// Also use by the Column Width preference to determine the unit width of the
|
||||
// swimlanes. See RB.Taskboard.initialize()
|
||||
//
|
||||
|
||||
.swimlane {
|
||||
width: $swimlane-width;
|
||||
@@ -58,22 +58,24 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* status labels */
|
||||
|
||||
//== Status labels
|
||||
//
|
||||
|
||||
#board_header {
|
||||
position: absolute;
|
||||
z-index: 200;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 0;
|
||||
border: 1px solid darken($header-bg, 5%);
|
||||
background-color: $header-bg;
|
||||
z-index: 200;
|
||||
|
||||
td {
|
||||
height: 20px;
|
||||
border-right: 1px dotted mix($header-bg, $header-text, 70%);
|
||||
background-color: $header-bg;
|
||||
color: $header-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
@@ -144,12 +146,12 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
.id {
|
||||
margin-bottom: 5px;
|
||||
padding: 0 3px;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-base;
|
||||
opacity: .8;
|
||||
background-color: $body-bg;
|
||||
font-size: .9em;
|
||||
line-height: 16px;
|
||||
opacity: .8;
|
||||
overflow: hidden;
|
||||
|
||||
a,
|
||||
.remaininghours {
|
||||
@@ -161,7 +163,7 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
a {
|
||||
color: $gray-darkest;
|
||||
font-size: $font-size-small-px;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.assignee {
|
||||
@@ -172,8 +174,8 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
.subject {
|
||||
height: $issue-height * .6;
|
||||
padding: 2px;
|
||||
line-height: 1.3;
|
||||
overflow: hidden;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
&.closed .subject {
|
||||
@@ -198,7 +200,7 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
border-radius: 50%;
|
||||
background-color: $brand-warning;
|
||||
color: $brand-text;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
|
||||
@@ -208,7 +210,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
}
|
||||
|
||||
/* item styles used by .task and .impediment */
|
||||
|
||||
//== Item styles used by .task and .impediment
|
||||
//
|
||||
|
||||
#taskboard {
|
||||
.issue,
|
||||
@@ -223,10 +227,10 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
border: 0 none;
|
||||
border-radius: $border-radius-large;
|
||||
background-color: $gray-lighter;
|
||||
cursor: move;
|
||||
color: $gray-darker;
|
||||
font-size: 10px;
|
||||
line-height: 1.3;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
@@ -241,14 +245,14 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
.id {
|
||||
margin-bottom: 5px;
|
||||
padding: 0 3px;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-base;
|
||||
opacity: .8;
|
||||
background-color: $body-bg;
|
||||
font-size: $font-size-small-px;
|
||||
font-weight: bold;
|
||||
font-weight: $font-weight-bold;
|
||||
line-height: 16px;
|
||||
text-align: right;
|
||||
opacity: .8;
|
||||
overflow: hidden;
|
||||
|
||||
.v {
|
||||
display: none;
|
||||
@@ -280,9 +284,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
margin-top: 2px;
|
||||
padding: 2px;
|
||||
padding-top: 0;
|
||||
overflow: hidden;
|
||||
font-size: 9px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.v {
|
||||
@@ -361,7 +365,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
}
|
||||
|
||||
/* dialog */
|
||||
|
||||
//== Dialog
|
||||
//
|
||||
|
||||
.rb_editor_dialog.ui-dialog {
|
||||
.ui-dialog-titlebar-close {
|
||||
@@ -369,9 +375,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
|
||||
.ui-widget-header {
|
||||
opacity: .5;
|
||||
background: none;
|
||||
background-color: #fff;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.ui-dialog-title {
|
||||
@@ -380,9 +386,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
|
||||
&.ui-widget-content {
|
||||
@include nice-shadow(5);
|
||||
border: 0 none;
|
||||
background: none;
|
||||
box-shadow: 2px 2px 5px #777;
|
||||
}
|
||||
|
||||
.ui-dialog-buttonpane.ui-widget-content {
|
||||
@@ -392,7 +398,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
}
|
||||
|
||||
/* item editor */
|
||||
|
||||
//== Item editor
|
||||
//
|
||||
|
||||
.rb_editor {
|
||||
label {
|
||||
@@ -432,7 +440,9 @@ $swimlane-width: $issue-width + 2 * ($issue-margin + $issue-paddi
|
||||
}
|
||||
}
|
||||
|
||||
/* others */
|
||||
|
||||
//== Others
|
||||
//
|
||||
|
||||
#impediment_template,
|
||||
#task_template {
|
||||
|
||||