ocmd updates
Updating colors involves editing several .css files. This is not necessarily the best, ‘native’ method of doing so as the site was constructed with sass or less. That being said the following method is not optimal, but without further digging into the actual process used to build this site and all of the processes used to maintain it since it’s original construction, it is the best method we currently have.
On the OCMD server, navigate to:
~/httpdocs/templates/ocmdhotels/ocmdhotels.group/
Most edits will occur in the following files:
- bootstrap.css
- blue.css
- .headline
- header2.css
- header2blue.css
- nav hover state
There is little rhyme or reason why these files are broken into the parts that curretly exist other than different admins using different methods of adding/modifying content over time. One of the primary points to this document is to prevent the same sprawl/fragmentation from occurring moving forward.
Seasonal updates
The edits to colors and files have been loosley documented in place through filenames and comments.
Filenames:
Changing the logo in ~/httpdocs/images/newsite that appears in the header and footer of the ocmd website has had it’s filename changed for the desired effect. That being said, the ‘original’ file is still in the same location and is titled ocmdhotelsLogo-orange.png. This way the logos can be swapped just by changing the names without having to locate the call to the file in one of the many .css files.
Comments:
Comment changes have been documented by duplicating a line and committing a change. Again this will be effective in that the line that gets commented out just need to be switched in order to change color values. //Summer is one instance that exists in some of the stylesheet files denoting the ‘original’ value and an identical line either follows or precedes it with the current active value.
Javascript
Adding ‘affix’ plugin (auto included via bootstrap) for sticky top navbar
-
header.html
- added data attribute (data-spy) to top bar
-
header2.css
- .top-v1
sidebar repair (tabs)
- style.css
- reduced horiz padding
- reduced font size to 13px
mysql
- backup database
This would be run directly from the command line (notmysql>prompt)
mysqldump -u jerm -p ocmdhotels > ~/dump/filename-date.sql