25
2015
Unity Answers Custom CSS Style
Custom CSS style for new Unity Answers website (using Stylish plugin)
Features:
– General cleaning up of clutter
– Add all line numbers to code
– More towards stackoverflow style & fonts
– …
Custom.css: *still work in progress..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("answers.unity3d.com") | |
| { | |
| /* http://unitycoder.com/blog/2015/08/25/unity-answers-custom-css-style/ */ | |
| /* ————— page ————— */ | |
| /* page padding */ | |
| .main{ | |
| padding: 0px !important; | |
| } | |
| /* compact topnavs */ | |
| .header-wrapper { | |
| display: none !important; | |
| } | |
| #section-header { | |
| display: none !important; | |
| } | |
| /* cleanup sidebar */ | |
| .sidebarTwo{ | |
| width: 330px; /*optional */ | |
| font-size-adjust: 0.45 !important; | |
| } | |
| .widget .widget-content { | |
| padding: 0px !important; | |
| } | |
| .sidebarTwo>div:first-child { | |
| display: none !important; | |
| } | |
| /* related questions */ | |
| div.span4.sidebarTwo div div.widget div.widget-content p a | |
| { | |
| float:right !important; | |
| } | |
| /* TODO: number of answers at front, without "answer" */ | |
| /* | |
| div.span4.sidebarTwo div div.widget div.widget-content p:not(a) | |
| { | |
| color:red !important; | |
| }*/ | |
| /* ————— original post ————— */ | |
| /* post fonts */ | |
| .question-body{ | |
| font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | |
| font-size: 15px; | |
| line-height: 1.3; | |
| } | |
| /* topic title */ | |
| .question h1 { | |
| font-size: 20px !important; | |
| padding-bottom: 5px; | |
| } | |
| /* clean up poster info */ | |
| .post-gravatar.question-gravatar{ | |
| display: none !important; | |
| } | |
| /* more space for post */ | |
| .post { | |
| padding-right: 0px !important; | |
| /* TODO: move reply users faces to right, so can set all padding to 0px */ | |
| } | |
| /* display all line numbers */ | |
| li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { | |
| list-style-type:inherit; | |
| } | |
| /* smaller linenums, adjust color */ | |
| .linenums{ | |
| font-size: 10px !important; | |
| color: #aaa; | |
| } | |
| /* code font, border off, rounding off */ | |
| code, pre { | |
| font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif; | |
| border-radius: 0px; | |
| border: none !important; | |
| } | |
| /* no alternate line colors */ | |
| li.L0, li.L2, li.L4, li.L6, li.L8 { | |
| background-color: #eeeeee; | |
| } | |
| /* report button – TODO */ | |
| /*.icon-cog{ | |
| background-image: url("https://www.assetstore.unity3d.com/images/sprites.png"); | |
| background-position: -102px 0px; | |
| opacity: 0.7; | |
| }*/ | |
| /* post answer button to right */ | |
| .form-actions{ | |
| float:right !important; | |
| } | |
| /* smaller hints */ | |
| .help-inline{ | |
| font-size: 10px; | |
| color:#888 !important; | |
| font-style: italic; | |
| } | |
| } |
Related Posts
Leave a comment
Recent posts
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by













