Skip to content

Instantly share code, notes, and snippets.

@luciuschoi
Last active June 27, 2023 20:06
Show Gist options
  • Save luciuschoi/65361b8380f1bc6a649e052f0d15f9bb to your computer and use it in GitHub Desktop.
Save luciuschoi/65361b8380f1bc6a649e052f0d15f9bb to your computer and use it in GitHub Desktop.
[RailsCoop] minimal stylesheet for Ruby on Rails project
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
html {
font-size: 18px;
}
input, textarea, select, button {
padding: .3rem .5rem;
margin: .3rem 0;
}
input[type="submit"], button {
border-radius: .3rem;
}
.field {
margin-bottom: .5rem;
}
.actions {
margin-bottom: 1rem;
}
.notice {
color: green;
background-color: #e0ffe0;
}
.alert {
color: red;
background-color: #ffe0e0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment