Skip to content

Commit

Permalink
added ability to style row border color
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadjimbob committed May 3, 2024
1 parent 73aa59d commit 123b7c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ If the plugin is installed, the **Template Styles Settings** page will be expand
- **_2024-03-05_**
- Fixed incorrect style file names. Thanks Wolfram.
- Table cell padding now adjustable through the style config page. Thanks Hakker.
-
- Added ability to style row border color through the style config page. Thanks Elanndelh.

- **_2024-02-09_**
- Added support for DokuWiki Kaos
Expand Down
4 changes: 4 additions & 0 deletions assets/mikio.less
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
--table-header-row-background-color: @ini_table_header_row_background_color;
--table-header-row-text-color: @ini_table_header_row_text_color;
--table-row-border-color: @ini_table_row_border_color;
--table-col-border-color: @ini_table_col_border_color;
--table-odd-row-background-color: @ini_table_odd_row_background_color;
--table-odd-row-text-color: @ini_table_odd_row_text_color;
--table-even-row-background-color: @ini_table_even_row_background_color;
Expand Down Expand Up @@ -225,6 +226,7 @@
--table-header-row-background-color: @ini_darkmode_table_header_row_background_color;
--table-header-row-text-color: @ini_darkmode_table_header_row_text_color;
--table-row-border-color: @ini_darkmode_table_row_border_color;
--table-col-border-color: @ini_darkmode_table_col_border_color;
--table-odd-row-background-color: @ini_darkmode_table_odd_row_background_color;
--table-odd-row-text-color: @ini_darkmode_table_odd_row_text_color;
--table-even-row-background-color: @ini_darkmode_table_even_row_background_color;
Expand Down Expand Up @@ -1420,6 +1422,8 @@ body {
padding-top: @ini_table_vertical_padding;
padding-bottom: @ini_table_vertical_padding;
text-align: left;
border-left: 1px solid var(--table-col-border-color);
border-right: 1px solid var(--table-col-border-color);
}

thead tr {
Expand Down
3 changes: 2 additions & 1 deletion lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
$lang['__footer_background_color__'] = 'The background color for the footer';

$lang['__table_font_size__'] = 'The font size for tables';
$lang['__table_row_border_color__'] = 'The border color for tables';
$lang['__table_row_border_color__'] = 'The row border color for tables';
$lang['__table_col_border_color__'] = 'The column border color for tables';
$lang['__table_header_row_background_color__'] = 'The background color for table heading rows';
$lang['__table_header_row_text_color__'] = 'The font color for table heading rows';
$lang['__table_odd_row_text_color__'] = 'The font color for table odd rows';
Expand Down
2 changes: 2 additions & 0 deletions style.ini
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ __footer_background_color__ = "#ccc"
; Table
__table_font_size__ = "90%"
__table_row_border_color__ = "#e5e5e5"
__table_col_border_color__ = "transparent"
__table_header_row_background_color__ = "#ddd"
__table_header_row_text_color__ = "#000"
__table_odd_row_background_color__ = "#fff"
Expand Down Expand Up @@ -310,6 +311,7 @@ __darkmode_footer_background_color__ = "#111"

; Table
__darkmode_table_row_border_color__ = "#444"
__darkmode_table_col_border_color__ = "transparent"
__darkmode_table_header_row_background_color__ = "#00bc8c"
__darkmode_table_header_row_text_color__ = "#fff"
__darkmode_table_odd_row_background_color__ = "#222"
Expand Down

0 comments on commit 123b7c9

Please sign in to comment.