Skip to content

[BUG] Use and referencing of different .css files having essentially same CSS code for each webpage #11

@DragonDare

Description

@DragonDare

Describe the bug
rsa.css and affine.css have identical code but are made into two different css files. It is generally considered bad practice to have same code in different css in front-end development when only .css file is enough and can be referenced in the .html files of the required webpages. The aforementioned css files only differ with another css file, caesar.css on one style element "hash", rest all is identical. That particular element can be done via inline css only. Similarly, the other css files in static folder are exactly or almost same (differing by only one or two elements).

To Reproduce
Steps to reproduce the behavior:

  1. Go to static folder where the front-end css files are located.
  2. Open rsa.css, affine.css, caesar.css, keword.css etc.
  3. Scroll and read the code in each of the .css files
  4. Observe the redundancies

Expected behavior
Only one .css files is required instead of four different ones. That one file can be referenced in all the required webpages. The differing one or two elements can be described in inline css in the concerned webpage .html files.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Chrome 93.0.4577.82 (Official Build) (64-bit)
  • Version: 21H1 build 19043.1237

Smartphone (please complete the following information):

  • Device: --
  • OS: --
  • Browser: --
  • Version: --

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions