Loading...
 
Skip to main content

Custom Share Module 0.1dev

History: RecipeRestoreCss

Preview of version: 1

Provide a report on CSS entities used in a stylesheet

Typical Uses

  • to identify missing entities when adapting a theme to a newer release of Tiki
  • to provide a report prior to merging chnages between different themes
  • to help with normalising entites across groups of themes

Sources

bin/stripcomments.pl
Copy to clipboard
#!/usr/bin/perl # From the Perl FAQ # written by Jeffrey Friedl and later modified by Fred Curtis $/ = undef; $_ = <>; s#/\*[^*]*\*+([^/*][^*]*\*+)*/|("(\\.|[^"\\])*"|'(\\.|[^'\\])*'|.[^/"'\\]*)#\$2#gs; print;

bin/stripbraces.pl
Copy to clipboard
#!/usr/bin/perl $/ = undef; $_ = <>; s#{([^{}]*)}##gs; print;

bin/csscheck.sh
Copy to clipboard
#!/bin/bash ./stripbraces.pl \$1 \ | ./stripcomments.pl \ | sed -e "s/,[ ]*/\n/g;" \ | sed -e "s/^[ ]*//g;" \ | sed -e "s/[ ]*$//g;" \ | egrep -v "^[ ]*$" \ | sort \ | uniq

Bugs

  • properties between braces are often important, but csscheck.sh provides no assistance there

Support Requests

See also

TikiTeam

History

Advanced
Information Version
drsassafras Mass search and replace 5
View
drsassafras Mass search and replace 4
View
Gary Cunningham-Lee Content replaced by link to themes.tw.o. 3
View
Michael Davey 2
View
Michael Davey 1
View

Upcoming Events

1)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3) 
Tiki birthday
4)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting